We help IT Professionals succeed at work.

SQL Server 2005 - SQL Server does not exist or access denied.

Mark
Mark asked
on
101 Views
Last Modified: 2016-02-16
I am attempting to relocate our SQL Server 2005 to a different host. The old host/instance was server\traverse105. The new host/instance is traverse\traverse105.

Local use on the actual server 'traverse' works fine. However, attempting to connect from a Windows 7 client gives me the message, "SQL Server does not exist or access denied." I am attempting the connection with a specific login ID, not a "Trusted Connection" (although that gives me the same error).

I've checked the SQL Server Configuration Manager > Protocols for TRAVERSE105 and the IPAll is set to port 1433; named pipes is enabled and set to \\.\pipe\MSSQL$TRAVERSE105\sql\query

I can connect from a Linux host to port 1433 and the same user ID I specified in the Windows 7 client and can connect just fine, so I don't think it's a port or firewall issue.

This same Windows 7 client connected to the other server, SERVER, without problem. If I switch back to "SERVER/TRAVERSE105" it connects OK. I can see no Config Mgr difference between the Config Mgr settings on host TRAVERSE and host SERVER.

Need ideas on what's wrong!
Comment
Watch Question

David ToddSenior Database Administrator
CERTIFIED EXPERT

Commented:
Hi,

Check the Configuration Manager, look at the SQL Server Network configuration, and check that TCP/IP is enabled.

Check the servers that the SQL Server browser is running.

HTH
  David

Commented:
Hope you tried the below step during renaming the instance.

sp_dropserver <old_name\instancename>;
GO
sp_addserver <new_name\instancename>, local;
GO

Post which, have you tried executing the below query?
SELECT @@SERVERNAME AS 'Server Name';

Did you get the correct instance name on executing the above query?

Author

Commented:
Thanks for the feedback. David Todd: yes, TCP/IP is enabled and the browser is running. As mentioned, I can query this database from linux using the configured port, but I get the described error on the Windows computers. One thing to note, the Windows computers are trying to access this database using ADP/ADE files which are part of a package, Traverse. There is no problem with access from the server hosting the SQL Server database, just from other WIN7 workstations -- and yes, they access the old SQL Server just fine.

geek_vj: No, I did not do the sp_dropserver/sp_addserver procedures.

When I do the query SELECT @@SERVERNAME AS 'Server Name';  on the server itself I do get the correct name: TRAVERSE\TRAVERSE105. I also get this name correctly when I run the same query on the Linux computer.

Further note, when I run the TravPa.ade program on a client Windows workstation I get the error, "Access is unable to connect to 'OSH2011' database on the 'traverse\traverse105' server. Make sure that the database still exists and that the server is running."

Even if I use the sa user, I get the "Server does not exist ..." message.
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I figured it out.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.