Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I have a problem connecting to an sql server through ip address, here are the symptoms.
1) try to connect to managment studio with ip 127.0.0.1 and windows authentication error "login is from an untrusted domain..."
2) try to connect to managment studio with ip 127.0.0.1 and user sa and pass login success
The same behaviour when I try to connect from VB .Net with adoconnection,
I have windows 7 pro 64 bit, in my win xp pro sp3 machine can connect without errors.

(notice try to change the permissions of the user in sql managment studio but failed to give permission to user supervisor, only user sa has permissions.
Posted
Comments
ZurdoDev 6-Dec-12 14:02pm    
Your DBA needs to make a configuration change, it sounds like.
RedDk 2-Jan-13 19:23pm    
In addition to finding out what exactly the connection string might be, as r mentions, you could test in a scenario such as creation of a SQL project using Visual Studio (I see VB.NET). Or failing an info gained about possible Server being offline, checking your antivirus Block/Allow list for instance running discrepancy. In other words tell us that something related to SQL Server on this machine actually runs.

Ok, you did that. Also try switching the login from Server to Windows default user where no password other than operator is required.

1 solution

I had to add to the hosts file the line "127.0.0.1 localhost"
 
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