Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
User had some test code connecting to a non production SQL Express database on a remote server, it was running fine but now they get a connection error 26

The connection string is fine

VB
Dim SQLstr As String = "server=testserver\SQLEXPRESS;uid=testuser;pwd=testpassword;database=test"


What I have tried:

After a lot of testing I've determined if the user is in the Domain Administrators group the code works as intended and the connection is made, I've even went as far as attaching the database to a new server with a new instance of SQL Express

Baffled with this one
Posted
Updated 25-Jan-18 20:24pm
Comments
ZurdoDev 25-Jan-18 16:29pm    
The full error should tell you what the problem is.

I have Googled it, like I said in OP it was running without issues and then it just stopped working, the code only works for Domain admins (The code runs for me) But not for domain users
I've tried removing GPO's to see if was a recent change but nothing, nothing was changed as far as I know on the SQL server instance.

I even tried a new server, maybe it's something to do with not being domain joined

Port query says everything is fine, all services are running - it's in mixed mode, TCPIP is enabled

No idea what it is, hence me posting here :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900