Showing posts with label sql2005. Show all posts
Showing posts with label sql2005. Show all posts

Tuesday, March 20, 2012

Cannot Debug SQL 2005 Stored Procedures in VS 2005

I am having trouble in consistently debugging T-SQL stored procedures in SQL
2005 using VS 2005 Pro. I have enabled debugging on the connection in the
Server Explorer and enable CLR Integration in the Surface Area Configuration
tool. At one point I could step into the sproc but now I cannot. What has
gone wrong. How can I be able to consistently debug T-SQL sprocs?
Any input would be appreciated."=?Utf-8?B? RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==
?="
<EagleRedHighFlyingBirdscom@.discussions.microsoft.com> wrote in
news:2EC86A08-79A4-44CC-ABDF-72DAE46D1BF0@.microsoft.com:

> I am having trouble in consistently debugging T-SQL stored procedures
> in SQL 2005 using VS 2005 Pro. I have enabled debugging on the
> connection in the Server Explorer and enable CLR Integration in the
> Surface Area Configuration tool. At one point I could step into the
> sproc but now I cannot. What has gone wrong. How can I be able to
> consistently debug T-SQL sprocs?
>
Hmm, in order to debug T-SQL proc's you should not have to do any
enabling at all.
1. Open VS 2005
2. Open Server Explorer
3. Create a connection to the database the proc is in
4. Expand the database and drill down to Stored Procedures, expand.
5. Right click on the proc and choose "Step Into Stored Procedure".
6. Debug
What happens for you when you try the above?
Niels
****************************************
**********
* Niels Berglund
* http://staff.develop.com/nielsb
* nielsb@.no-spam.develop.com
* "A First Look at SQL Server 2005 for Developers"
* http://www.awprofessional.com/title/0321180593
****************************************
**********|||The debugger starts but when I either step into or step to the next statemen
t
in the proc the proc runs to completion. I have set a breakpoint in the pro
c
only to have it disabled when debugging starts.
"EagleRed@.HighFlyingBirds.com" wrote:

> I am having trouble in consistently debugging T-SQL stored procedures in S
QL
> 2005 using VS 2005 Pro. I have enabled debugging on the connection in the
> Server Explorer and enable CLR Integration in the Surface Area Configurati
on
> tool. At one point I could step into the sproc but now I cannot. What ha
s
> gone wrong. How can I be able to consistently debug T-SQL sprocs?
> Any input would be appreciated.|||Here's some additional information. The disabled breakpoint displays a
tooltip that says the breakpoint will not be hit because the object
containing the breakpoint has not been loaded. What's going on? I have bee
n
able to debug and hit breakpoints, but I cannot do it consistently and right
now it simply isn't working.
"Niels Berglund" wrote:

> "=?Utf-8?B? RWFnbGVSZWRASGlnaEZseWluZ0JpcmRzLmNvbQ==
?="
> <EagleRedHighFlyingBirdscom@.discussions.microsoft.com> wrote in
> news:2EC86A08-79A4-44CC-ABDF-72DAE46D1BF0@.microsoft.com:
>
> Hmm, in order to debug T-SQL proc's you should not have to do any
> enabling at all.
> 1. Open VS 2005
> 2. Open Server Explorer
> 3. Create a connection to the database the proc is in
> 4. Expand the database and drill down to Stored Procedures, expand.
> 5. Right click on the proc and choose "Step Into Stored Procedure".
> 6. Debug
> What happens for you when you try the above?
> Niels
> --
> ****************************************
**********
> * Niels Berglund
> * http://staff.develop.com/nielsb
> * nielsb@.no-spam.develop.com
> * "A First Look at SQL Server 2005 for Developers"
> * http://www.awprofessional.com/title/0321180593
> ****************************************
**********
>

Cannot create Recurring backup

I am not able to create a recurring backup job on sql2005. There is no
schedule option when you right click on database then tasks-->backup, also
when I try to do it thru maintenance plan I am not able to see my databases.
Can someone tell me how to resolve this problem?
Thanks in advance for any help-RobRob wrote:
> I am not able to create a recurring backup job on sql2005. There is no
> schedule option when you right click on database then tasks-->backup, al
so
> when I try to do it thru maintenance plan I am not able to see my database
s.
> Can someone tell me how to resolve this problem?
> Thanks in advance for any help-Rob
Don't use the pointy-clicky interface, instead script your backups.
Create a SQL Agent job that uses the BACKUP DATABASE/BACKUP LOG commands.
http://realsqlguy.com/twiki/bin/vie...realsqlguy.com|||Rob wrote on Wed, 12 Jul 2006 13:39:02 -0700:

> I am not able to create a recurring backup job on sql2005. There is no
> schedule option when you right click on database then tasks-->backup,
> also when I try to do it thru maintenance plan I am not able to see my
> databases. Can someone tell me how to resolve this problem?
> Thanks in advance for any help-Rob
Did you restore these databases from a SQL2000 or older server? If so, they
have compatibility set to 80 or lower, and the Maintenance Plan will ignore
them. Change each database to compatibility 90 and they'll then be
selectable in the GUI maintenance plan.
Dan

Cannot create Recurring backup

I am not able to create a recurring backup job on sql2005. There is no
schedule option when you right click on database then tasks-->backup, also
when I try to do it thru maintenance plan I am not able to see my databases.
Can someone tell me how to resolve this problem?
Thanks in advance for any help-RobRob wrote:
> I am not able to create a recurring backup job on sql2005. There is no
> schedule option when you right click on database then tasks-->backup, also
> when I try to do it thru maintenance plan I am not able to see my databases.
> Can someone tell me how to resolve this problem?
> Thanks in advance for any help-Rob
Don't use the pointy-clicky interface, instead script your backups.
Create a SQL Agent job that uses the BACKUP DATABASE/BACKUP LOG commands.
http://realsqlguy.com/twiki/bin/view/RealSQLGuy/AutomaticBackupOfAllDatabases
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||Rob wrote on Wed, 12 Jul 2006 13:39:02 -0700:
> I am not able to create a recurring backup job on sql2005. There is no
> schedule option when you right click on database then tasks-->backup,
> also when I try to do it thru maintenance plan I am not able to see my
> databases. Can someone tell me how to resolve this problem?
> Thanks in advance for any help-Rob
Did you restore these databases from a SQL2000 or older server? If so, they
have compatibility set to 80 or lower, and the Maintenance Plan will ignore
them. Change each database to compatibility 90 and they'll then be
selectable in the GUI maintenance plan.
Dan

Saturday, February 25, 2012

Cannot connect to SQLServer 2005

After several attempts to install SQL2005 I finally got Microsoft SQL Server Management Studio installed.
But now I get the error below:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)

The sa account username/password are correct and don't work, windows authentication does not work, I have stopped/started all the services, I have all Protocols enabled correctly, I have my Firewall turned off.

Is there anything else I can try? Anything!

After 24 hours of looking at this, I just figured out the answer!!! ServerName\instance is needed for logging on!!

Cannot connect to SQL2005 Express from PHP

Hello,
I have php 5.0.2 on Apache2/WinXP and database on MS SQL 2005 express.
I cannot connect to server:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
server: TESTSERVER\SQLEXPRESS in C:\xxx\test.php on line 11
My source code test.php:
...
$connectstring = mssql_connect("TESTSERVER/SQLEXPRESS","sa","xx");
if ($connectstring == FALSE)
echo "ERROR!";
else
echo "OK!";
...
This example with MSDE2000 work ok, but with SQL2005 Express not. Help
me, please.
J.R.I use new version ntwdblib.dll and all is OK!
http://support.microsoft.com/dllhel...2548&l=55&det=1
Jan Rok napsal(a):
> Hello,
> I have php 5.0.2 on Apache2/WinXP and database on MS SQL 2005 express.
> I cannot connect to server:
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect t
o
> server: TESTSERVER\SQLEXPRESS in C:\xxx\test.php on line 11
> My source code test.php:
> ...
> $connectstring = mssql_connect("TESTSERVER/SQLEXPRESS","sa","xx");
> if ($connectstring == FALSE)
> echo "ERROR!";
> else
> echo "OK!";
> ...
> This example with MSDE2000 work ok, but with SQL2005 Express not. Help
> me, please.
> J.R.|||What happens if you change TESTSERVER/SQLEXPRESS to TESTSERVER\SQLEXPRESS in
your connection string? Did you setup SQL Express for mixed mode access
when you installed it? By default it is Windows authentication only.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jan Rok" <jan.rok@.email.cz> wrote in message
news:e2Z4SUXLGHA.420@.tk2msftngp13.phx.gbl...
> Hello,
> I have php 5.0.2 on Apache2/WinXP and database on MS SQL 2005 express.
> I cannot connect to server:
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect t
o
> server: TESTSERVER\SQLEXPRESS in C:\xxx\test.php on line 11
> My source code test.php:
> ...
> $connectstring = mssql_connect("TESTSERVER/SQLEXPRESS","sa","xx");
> if ($connectstring == FALSE)
> echo "ERROR!";
> else
> echo "OK!";
> ...
> This example with MSDE2000 work ok, but with SQL2005 Express not. Help me,
> please.
> J.R.

Cannot connect to SQL2005 Express from PHP

Hello,
I have PHP 5.0.2 on Apache2/WinXP and database on MS SQL 2005 express.
I cannot connect to server:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
server: TESTSERVER\SQLEXPRESS in C:\xxx\test.php on line 11
My source code test.php:
...
$connectstring = mssql_connect("TESTSERVER/SQLEXPRESS","sa","xx");
if ($connectstring == FALSE)
echo "ERROR!";
else
echo "OK!";
...
This example with MSDE2000 work ok, but with SQL2005 Express not. Help
me, please.
J.R.
I use new version ntwdblib.dll and all is OK!
http://support.microsoft.com/dllhelp...548&l=55&det=1
Jan Rok napsal(a):
> Hello,
> I have PHP 5.0.2 on Apache2/WinXP and database on MS SQL 2005 express.
> I cannot connect to server:
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
> server: TESTSERVER\SQLEXPRESS in C:\xxx\test.php on line 11
> My source code test.php:
> ...
> $connectstring = mssql_connect("TESTSERVER/SQLEXPRESS","sa","xx");
> if ($connectstring == FALSE)
> echo "ERROR!";
> else
> echo "OK!";
> ...
> This example with MSDE2000 work ok, but with SQL2005 Express not. Help
> me, please.
> J.R.
|||What happens if you change TESTSERVER/SQLEXPRESS to TESTSERVER\SQLEXPRESS in
your connection string? Did you setup SQL Express for mixed mode access
when you installed it? By default it is Windows authentication only.
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jan Rok" <jan.rok@.email.cz> wrote in message
news:e2Z4SUXLGHA.420@.tk2msftngp13.phx.gbl...
> Hello,
> I have PHP 5.0.2 on Apache2/WinXP and database on MS SQL 2005 express.
> I cannot connect to server:
> Warning: mssql_connect() [function.mssql-connect]: Unable to connect to
> server: TESTSERVER\SQLEXPRESS in C:\xxx\test.php on line 11
> My source code test.php:
> ...
> $connectstring = mssql_connect("TESTSERVER/SQLEXPRESS","sa","xx");
> if ($connectstring == FALSE)
> echo "ERROR!";
> else
> echo "OK!";
> ...
> This example with MSDE2000 work ok, but with SQL2005 Express not. Help me,
> please.
> J.R.

Cannot connect to SQL2005

Hi,

This is the error I am getting - HELP

A connection was successfully established with the server, but an error occured during the login process(provider: TCP Provider - error 0 an existing connection was forcibily closed by the remote host. (Microsoft SQL server error: 10054).

I have checked the error code 10054 - at this link

http://support.microsoft.com/default.aspx?scid=kb;en-us;Q303120

it says it applies to SQL2000
Regards
SahilFor a faster response I suggest you post this to the SQL Server Data Access forum.

Dan

Thursday, February 16, 2012

Cannot connect to second cluster node w/instance name

I have an active/active SQL2005 cluster. Node1 has a default instance of
SQL 2005 installed (i.e. no named instance). Node2 has a named instance of
SQL 2005 (i.e. node2\sqlb). I can connect remotely to node1 SQL 2005
without problem. When I attempt to connect to node2 remotely I get an error
basically stating "An error has occurred while establishing a connection to
the server. When connecting to SQL Server 2005, this failure may be caused
by the fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)".
When I connect I am using node2\sqlb as the connection name--this should
give me access to the named instance. I can however access node2\sqlb from
node2 directly (locally on the server). Yes, I have made sure named pipes
and tcp/ip are enabled. Made sure no firewalls, etc. The weird thing is
that I was able to make a remote connection for a short time (like two
hours) and then I couldn't anymore.
I am using a Windows Vista Ultimate RTM machine with SQL 2005 management
console installed locally. Any information would be greatly appreciated.
Is the SQL Server Browser Service running to provide the tcp port number for
the named instance?
If not, what port is the named instance listening on? Can you connect to
node2,<port number> ?
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"JPerkins" <joshp@.CUIAB.LOCAL> wrote in message
news:DBDEDBC3-AEF7-48E0-91D7-25977A8AEBB9@.microsoft.com...
>I have an active/active SQL2005 cluster. Node1 has a default instance of
>SQL 2005 installed (i.e. no named instance). Node2 has a named instance of
>SQL 2005 (i.e. node2\sqlb). I can connect remotely to node1 SQL 2005
>without problem. When I attempt to connect to node2 remotely I get an
>error basically stating "An error has occurred while establishing a
>connection to the server. When connecting to SQL Server 2005, this failure
>may be caused by the fact that under the default settings SQL Server does
>not allow remote connections. (provider: SQL Network Interfaces, error:
>26 - Error Locating Server/Instance Specified)".
> When I connect I am using node2\sqlb as the connection name--this should
> give me access to the named instance. I can however access node2\sqlb
> from node2 directly (locally on the server). Yes, I have made sure named
> pipes and tcp/ip are enabled. Made sure no firewalls, etc. The weird
> thing is that I was able to make a remote connection for a short time
> (like two hours) and then I couldn't anymore.
> I am using a Windows Vista Ultimate RTM machine with SQL 2005 management
> console installed locally. Any information would be greatly appreciated.

Cannot connect to second cluster node w/instance name

I have an active/active SQL2005 cluster. Node1 has a default instance of
SQL 2005 installed (i.e. no named instance). Node2 has a named instance of
SQL 2005 (i.e. node2\sqlb). I can connect remotely to node1 SQL 2005
without problem. When I attempt to connect to node2 remotely I get an error
basically stating "An error has occurred while establishing a connection to
the server. When connecting to SQL Server 2005, this failure may be caused
by the fact that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces, error: 26 - Error Locating
Server/Instance Specified)".
When I connect I am using node2\sqlb as the connection name--this should
give me access to the named instance. I can however access node2\sqlb from
node2 directly (locally on the server). Yes, I have made sure named pipes
and tcp/ip are enabled. Made sure no firewalls, etc. The weird thing is
that I was able to make a remote connection for a short time (like two
hours) and then I couldn't anymore.
I am using a Windows Vista Ultimate RTM machine with SQL 2005 management
console installed locally. Any information would be greatly appreciated.Is the SQL Server Browser Service running to provide the tcp port number for
the named instance?
If not, what port is the named instance listening on? Can you connect to
node2,<port number> ?
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.
"JPerkins" <joshp@.CUIAB.LOCAL> wrote in message
news:DBDEDBC3-AEF7-48E0-91D7-25977A8AEBB9@.microsoft.com...
>I have an active/active SQL2005 cluster. Node1 has a default instance of
>SQL 2005 installed (i.e. no named instance). Node2 has a named instance of
>SQL 2005 (i.e. node2\sqlb). I can connect remotely to node1 SQL 2005
>without problem. When I attempt to connect to node2 remotely I get an
>error basically stating "An error has occurred while establishing a
>connection to the server. When connecting to SQL Server 2005, this failure
>may be caused by the fact that under the default settings SQL Server does
>not allow remote connections. (provider: SQL Network Interfaces, error:
>26 - Error Locating Server/Instance Specified)".
> When I connect I am using node2\sqlb as the connection name--this should
> give me access to the named instance. I can however access node2\sqlb
> from node2 directly (locally on the server). Yes, I have made sure named
> pipes and tcp/ip are enabled. Made sure no firewalls, etc. The weird
> thing is that I was able to make a remote connection for a short time
> (like two hours) and then I couldn't anymore.
> I am using a Windows Vista Ultimate RTM machine with SQL 2005 management
> console installed locally. Any information would be greatly appreciated.

Tuesday, February 14, 2012

Cannot connect to MSSAS 2005 Standard on local machine

I have installed SQL2005 completely, including Service Pack 1. Using Mgt Studio, I can connect to the relational db. I am not able to connect to analysis services though! The error message I receive is :"A connection cannot be made. Ensure that the server is running. (Microsoft.AnalysisServices.AdomdClient". The additional information says: "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.(System)."

The service is certainly running (I see this in the Mgt Studio).

I am able to connect to the service on another machine. However, once I try to browse a cube on another machine, I get the error message "Error HRESULT E_FAIL has been returned from a call to a COM component". I do not know whether these 2 problems are related or not.

Thanks a lot for your answer!

Joos

These two problems are probably unrelated.

Try and see if your "SQL Server Analysis Services(MSSQLSERVER)" service is running?

Try using "localhost" as a name when connecting to your local Analysis Server.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

|||Analysis Services is running. I can see this under my registered servers and in services. I tried both localhost as machine name, without any luck. It is the standard edition on my XP laptop.|||What antivirus do you have? I have the same problem and it is because the antivirus is making some kind of blockage|||

I have panda running on my laptop. I also have a server (2003) with panda and SQL Enterprise installed. There it works fine...What do you suggest?

Thanks!

|||

Try uninstalling your untivirus software.

It has been reported (http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=384104&SiteID=1) Panda will cause connection problems in some cases.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights

|||

No more thinking about it!!!!

You have panda

I have panda

You have the problem

I have the problem

MICROOOOOOOOOOSOOOOOOOOOOOOOOOFFFFFFFTTTTTT!!!!!!!!! AND PANDAAAAAAAAAAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

REAAAAAAAAAAADDDDDDDDDDDDDDDD!!!!!!!!!!!!!!!!!!!!!!!!!!

DOOOOOOO SOMENTHINGGGGGGGGGGGGGGGGGGGGG!!!!!

|||

Jose is absolutely right!!! SQL2005 Standard edition on Windows XP with Panda Antivirus is a bad idea if you want to use Analysis Services!!!!

I removed Panda, restarted the pc and then it worked!

Thanks a lot Jose!

|||

You are very lucky because you can remove panda!!

I can't because i work for a big company and i can't remove panda antivirus

Please!!!!!!!!! Microsoft !!!!!!!! are you reading?

Please do something!!!

Panda!!!! this is not a good idea to block a Microsoft aplicattion!!! do something!!

fix it!!!

is it posible? the best supposed antivirus in the world blocking an aplication of Microsoft? Didn't you speak each other before making your products or wath?

to all people with the same problem (there are at least 10 questions posted whit this problem): try to uninstall your antivirus (specially if it's panda) and try again

|||

I'm running latest Panda Antivirus build "Titanium 2006 Antivirus + Antispyware " with no issue on my XPSP2 with AS 2005 SP1.

Which build do you use?

thx

Aus99

|||

I'm not sure. What i know is that it's a corporate version with true prevent.

Anybody with the same problem?