Cannot connect ODBC to SQL 2008 on one PC - sql

I am trying to set up an ODBC connection to our SQL 2008 server.
So far i have set up 4 windows XP machines and 3 windows 7 machines.
However, the last XP machine isnt playing ball. I use all the same settings as i did on the other computers but i keep getting "SQL Server does not exist or access is denied".
Also, i cannot telnet to the SQL server on 1433. The windows firewall on the computer is OFF and there are no other security products.
Any ideas?

Related

Cannot login to SQL Server 2008

I recently upgraded from windows 7 to windows 10. But since the update I cannot connect to the SQL SERVER 2008.
I've already checked:
The services, they are all running.
Windows firewall exceptions, 1433 is already added. Also the application added.
I've ping the server, and it works.
I've no problem with local connection
**The error message **

Connect to SQL Server 2000 without installing connectivity tools

I am using 2 machines.
Windows server 2003 with SQL Server 2005 (default instance) MySrvName" and with SQL Server 2000 (named instance) MySrvName\SQL2000
Windows 7 with VS 2010
LAN (works fine)
When I connect to SQL Server 2005 it works fine from win7 and win 2003 but when I try to connect to SQL Server 2000 via win7 it says
The server was not found or was not accessible
This instance (SQL2000) is working fine from Windows server machine. I have tried disabling all firewalls (default of windows).
In 2002-3 I used to have same issue which I used to resolve by installing MSDE/connectivity tools. Is there a way to resolve without installing anything? Or any single file to install these connectivity tools from?

Connecting to SQL Server Express 2008 from a CE device

I've developing a .NET Compact Framework app that needs to connect to SQL Server 2008 Express on another machine (Windows 7 x64).
I'm tearing my hair out here - I can ping both ways from the device to the machine etc (although I lose some packets - presumably because at the moment the wireless router is miles away and we don't get much signal down here), but when I try and debug the application on the CE machine it always fails to find SQL Server.
I've tried a variety of different connection strings with no joy.
Here's the connection string I've got at the moment:
Data Source=10.0.0.12;Initial Catalog=EMS_Main;User ID=sa;Password=password;
Firewall is off.
Thanks
Do you have your SQL Express instance set up to accept remote connections? Do you have WIndows Firewall turned off, or allowing the port access for SQL Server?

SQL 2005 Express on SBS2008 connection issues from Vista x32 SP2 machines

I have a VB6.0 application running at a client's site on Vista SP2. When attempting to connect to a SQL 2005 Express database on a named instance ([edit]running in Mixed Mode - not Windows Authentication Only), on a SBS2008 server, from THREE OF THE FOUR Vista workstations in the office I receive the following errors:
"SQL Server does not exist or access denied"
(Using either the sqloledb provider or SQL-DMO)
Of course, the fourth Vista Workstation connects without a problem.
I've tried;
1) Creating a UDL (data link) file in order to "triple" check my connect strings and even when attempting to connect here (selecting the Microsoft OLE DB Provider) I receive the same error when it attempt to refresh the list of available databases
2) I have checked firewall exceptions on the server and even tried the tests, with the firewall turned off.
3) I have added outbound exceptions for my application to the firewall on the Vista machines.
4) I have installed the SQL2005 Backwards compatibility objects.
5) I have installed SQL Server Management Studio on one of the offending Vista machines and this errors in the same way.
6) I have also simulated the test environment in our offices on virtual machines and of course, no problems...
I guess my question is, how to I find out what is different about the one Vista PC that does connect, as opposed to the three that do not?
(Update) Also:
A Virtual Server has been added to the SBS 2008 Server, running SBS 2003 and all those offending Vista Workstations connect without a hitch??
Can you telnet from the offending workstations to the TCP port that the SQL Server is listening on? (Check the ERRORLOG file to get the dynamic port number.)
Is the SQL Browser service on the server running (required that it is).

Connecting to SQL server from Virtual PC

I have VS 2008 and SQL Server 2005 Developer edition installed on my desktop. I have a instance of XP running in Virtual PC and want to connect to the dev instance. I am logged on as a domain user on both the desktop and the Virtual instance of XP. When I try to connect I get a message saying "Server does not exist or access denied". What do I need to do to connect. I am using trusted connection and the userid has privileges on the DB.
Paul
Make sure that the VPC is not using NAT for its network connection.
Also check your configuration to be sure remote connections are allowed. Remote connection is turned off by default.
Have you tried pinging your desktop from the virtual instance? I had the same problem and figured out that the firewall was preventing any kind of communication between both machines.
I found out that you have to go into the SQL Server Surface Area Configuration tool and set "Remote Connections" to "Local and remote connections". Apparently the default is "Local connections only".
I encountered the same thing, sort of - MS Server 2003 and SQLServer 2008 Ent running on VMWare, and get the "Server does not exist or access denied" when trying to connect from host machine (on Vista x64).
SO, do you reckon changing to "Local and remote connections" via the SQL Server Surface Area Configuration tool will do the trick?
For me despite configuring the SQL server for Remote Connections also, I could not access the sql server from Win XP VM.
So when I disabled the windows firewall from host machine, it worked fine!!