.NET / SQL Server Connection Issue Win 7
.NET / SQL Server Connection Issue Win 7
(OP)
Hi,
I have a .Net app, written in VS2008 that connects to a SQL 2005 back end, on Win 7.
Everything works fine on XP.
However, on Win 7, unless the user is in an Admin AD Group, the connection fails with the error message:
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)
I've read through countless other posts that suggest checking that TCP/IP etc is enabled, which it is, and if it wasn't then why would the user connect OK when he is put into an AD Group with more permissions?!
Anyone got any ideas?
Apologies if this is the wrong forum.
I have a .Net app, written in VS2008 that connects to a SQL 2005 back end, on Win 7.
Everything works fine on XP.
However, on Win 7, unless the user is in an Admin AD Group, the connection fails with the error message:
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)
I've read through countless other posts that suggest checking that TCP/IP etc is enabled, which it is, and if it wasn't then why would the user connect OK when he is put into an AD Group with more permissions?!
Anyone got any ideas?
Apologies if this is the wrong forum.
RE: .NET / SQL Server Connection Issue Win 7
RE: .NET / SQL Server Connection Issue Win 7
Yes I can ping the SQL Server and other apps can connect to the database.
RE: .NET / SQL Server Connection Issue Win 7
RE: .NET / SQL Server Connection Issue Win 7
I dont know what UAC is I'm afraid.
Sorry to be vague.
RE: .NET / SQL Server Connection Issue Win 7
If you are finding your troubles while debugging in VS, then you will want to start VS as administrator.
Ralph
RE: .NET / SQL Server Connection Issue Win 7
It must be the app as they can see SQL Server otherwise.
I'm wondering if they're connecting to DEV somehow, as everything seems to be pointing in that direction.
RE: .NET / SQL Server Connection Issue Win 7
It may be worth asking an admin to enter his credentials just to get it out.
RE: .NET / SQL Server Connection Issue Win 7
RE: .NET / SQL Server Connection Issue Win 7
I'm not using a DSN - I'm using a hard-coded connection string within the app itself.
Hope this makes sense.
RE: .NET / SQL Server Connection Issue Win 7
Also, what platform are you compiling to (any, x86 or x64)?
Thanks,
Ralph