Solved

can't connect from Query Analyzer

Posted on 2004-04-26
14
229 Views
Last Modified: 2012-08-14
I get this error while connecting through Query Analyzer:
[Microsoft][ODBC SQL Server Driver] Timeout Expired

                                [OK]

The weird thing is that I can connect through the Enterprise Manager!
I tried setting the Login time-out in query analyzer to zero. but the error still occurs!

Please advise on how to resolve this. :D







0
Comment
Question by:killer5
  • 6
  • 2
  • 2
  • +2
14 Comments
 
LVL 3

Expert Comment

by:Frostbyte_Zero
ID: 10918693
If you are using Trusted Connection, try using SQL Server Authentication instead. If this resolves the problem, then the issue is probably due to the Domain Controller in your network.
0
 
LVL 6

Expert Comment

by:jchopde
ID: 10918742
You should use the "Client Network Utility" to setup your connection correctly (whether TCP/IP or Named Pipes or ...). SEM uses Named Pipes I think and QA may be using TCP/IP to spit out the Timtout Expired message. Regardless, using the client network utility should fix the issue.
0
 
LVL 1

Author Comment

by:killer5
ID: 10926220
i tried using the client network utility... but it didn't work.

before this problem, i had this issue:
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20953323.html

0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 1

Author Comment

by:killer5
ID: 10927301
i tried using the client network utility... but it didn't work.

before this problem, i had this issue:
http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20953323.html

after the issue above, everything worked fine. but after several days... i couldn't connect using query analyzer
0
 
LVL 1

Author Comment

by:killer5
ID: 10927303
i've already tried reinstalling SQL client
0
 
LVL 6

Expert Comment

by:jchopde
ID: 10927519
Have you tried SQL Auth via QA as Frostbyte had suggested ? If you are using TCP/IP for connectivity, can you ping the IP address of your SQL server ? (go to command prompt, type "ping <<ip address>>" and press ENTER) If you are using named pipes for connectivity, can you ping using the server name ?
0
 
LVL 1

Author Comment

by:killer5
ID: 10927678
yup... i've tried SQL Auth via QA.
i can ping it using the server name.

I got it working already... i connected to the server using the IP address instead of the server name.

but what's the logic behind that?
0
 
LVL 8

Expert Comment

by:plq
ID: 10930746
turn off named pipes so you just connect through tcpip. Do that on the server and the client

tcpip is faster anyway
0
 
LVL 3

Expert Comment

by:Frostbyte_Zero
ID: 10930843
Actually plq, NetBEUI ( the protocol used for NamedPipes ) is actually a smaller, but less routable protocol than TCP/IP.

The fact that your Windows OS can see the server by name does not necessarily mean that SQL Server can. Usually, if you enter an alias in the Client Config Utility using TCP/IP instead of NamedPipes you should get connected.

For instance, your workstation casn have an LMHOSTS file with the entry in it. SQL Server will not use the LMHOSTS entry to resolve the IP address.

So are you connecting to SQL Server now?
0
 
LVL 1

Author Comment

by:killer5
ID: 10957926
I got it working already... i connected to the server using the IP address instead of the server name.

but what's the logic behind that?
0
 
LVL 1

Author Comment

by:killer5
ID: 10957937
yup I can connect to the SQL Server now.
THANKS GUYS!
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10990076
Closed, 125 points refunded.

modulo
Community Support Moderator
Experts Exchange
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
convert in derived column 7 31
VB.net and sql server 4 36
Update a text value in another table 10 42
SQL Server syntax 4 23
When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

832 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