Solved

SQL SERVER 2005: Unable to complete login process due to delay in opening server connection??

Posted on 2011-03-08
6
1,457 Views
Last Modified: 2012-06-27
Hello,

I've just completed a database migration between servers and now I can't run basic commands on the sql server. The migration is for our AV database and was carried out using a simple backup from one server, then copy to the other server and restore the database there. Both are running SQL Server 2005 and neither are newly installed servers. The AV management service on the AV server is not restarting correctly so following their advice I'm trying some sql commands to troubleshoot.

 I haven't personally ran the below commands myself before this migration so I'm not sure if the migration has had an adverse affect or if the command would always have returned the same errors.

Upon running the following from the command line(where mssqlserver is the instance name) I get the below error

OSQL -E -S .\\mssqlserver -Q "SELECT NAME FROM SYSDATABASES"

[SQL Native Client]Unable to complete login process due to delay in opening
server connection


I've been researching various remedies and I've tried all the below but I'm still getting the same error:

Checked TCP/IP is enabled
Started the Server Browser Service
Ensured Windows Firewall is disabled.
Ensured I have full permissions on the DB
Set the DatabaseConnection MS for the particular database to Provider=SQLOLEDB;Integrated Security=SSPI;Initial Catalog=DBname;Data Source=SQLServer\instancename;

and also below without the servername so as to try both

Provider=SQLOLEDB;Integrated Security=SSPI;Initial Catalog=DBname;Data Source=instancename;

Any helpful ideas would be greatly appreciated.

Thanks in advance,

Brian
 
0
Comment
Question by:Greythorn
  • 3
  • 3
6 Comments
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35076809
mssqlserver is usally what is referred to as the "Default" instance.  Are you sure that your server is running in an instance.  Typically you would see (INSTANCE NAME) in the services list in the control panel.

You most likely are running the default instance which doesn't have a name.
0
 
LVL 1

Author Comment

by:Greythorn
ID: 35077008
I've checked the services and MSSQLSERVER is listed on 4 of the SQL services there. Its also listed under the SQL Server Configuration Manager under Network Configuration so I'm assuming it is running that instance.

thanks
0
 
LVL 39

Accepted Solution

by:
BrandonGalderisi earned 250 total points
ID: 35077570
So those are the default instances most likely.

try this from the local server:


OSQL -E -Q "SELECT NAME FROM SYSDATABASES"

Without -S i will attempt to attach to the default instance on the local server.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 1

Author Closing Comment

by:Greythorn
ID: 35078256
The initial and follow up responses were very quick and easy to follow.
0
 
LVL 1

Author Comment

by:Greythorn
ID: 35078269
That worked straight away and listed the required database. I guess it just couldn't connect to the default database with the earlier command.

Thanks a lot for you help Brandon.
0
 
LVL 39

Expert Comment

by:BrandonGalderisi
ID: 35078447
It's not the default database, it's the default, non-named instance.

I'd recommend reading over this article I wrote.  Hopefully it will clear things up.

http://www.sqlservernation.com/home/what-are-instances.html
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now