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

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).

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 **

Unable to connect to SQL Server 2005 installed on Win7 virtual machine

I am not able to connect to a SQL Server 2005 hosted on a Win7 virtual machine. I am new to VM, can someone help me locate the problem?
I am able to connect another SQL server which is installed on the local machine.
When you say you can't connect - that can mean a lot of things - really you need to be much more specific.
In addition to the comments and answers already here - If you're having trouble connecting to it in Sql Server Management Studio - you should open Configuration Manager on the VM itself and make sure that Shared Memory and Named Pipes are enabled (open the SQL Server Network Configuration node in the tree).
For example, SQL Server Express instances are configured by default to reject the kind of remote connection that SSMS wants to open by default.
first of all check your connection string (for reference):
http://www.connectionstrings.com/
Second you need to add an exception in the guest machine firewall or completely disable it (port 1433 is for sql tcp/ip access).
this works fine for me:
SQLConn.ConnectionString = "Network Library=DBMSSOCN; Data Source=xxx.xxx.xxx.xxx,1433;
Initial Catalog=mySQLServerDBName; User ID=myUsername;Password=myPassword"
good luck

Cannot connect to SQL server - client side issue

I might be the million'th person posting about this, but others' solutions haven't helped me. I have a database on Microsoft SQL Azure. I an trying to connect to it using the Visual Studio 2010's "Connect to Database" Tool.
From my Windows 7 machine, I can connect to it very easily. But from my Windows Server 2008R2 machine i am getting the classic error -
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
All the posts around the web seem to be focussing on the problems on the server side, no one cares if the client goes rogue. :(
Thanks for the replies.
I have seen similar problems with VS2010 DB Tool and Windows Server so I would not suggest try using SSMS 2008 R2 (must be R2). Once you have download SSMS 2008 R2 and configured properly to work on Windows Server it sure will work. In most of the case you really need to open SSMS settings to get it workon on Windows Server.
Next a few points to check:
Verify that the telnet is working from your Windows Server Machine:
c:>telnet _your_sqlazure_database_name.database.windows.net 1433
Disable your real time security and the try again
Finally following the link to keep applying settings in your Windows Server and SSMS which are applicable and I am sure it will work:
http://www.mssqltips.com/sqlservertip/2340/resolving-could-not-open-a-connection-to-sql-server-errors/
One issue is that you need to connect via tcp, not named pipes (per your error message).
Are both servers behind the same firewall (e.g. the same external IP address)? The SQL Azure firewall needs to be configured to allow access from remote IP addresses.

Cannot connect ODBC to SQL 2008 on one PC

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?

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!!