Solved

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

Posted on 2011-03-08
6
1,484 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Viewers will learn how the fundamental information of how to create a table.

803 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