Question : How to make trusted connection via Windows 7 and SQL Server ?

Hi experts!

I’m developing application WinForm on NETFramework 2 with C# and I use trusted connection to connect to SQL Server 2005 locally. Till now, I’m using WInXp and Windows 2008 server and it work OK. But after I change my OS to Win 7 on my developer computer whit same this connection string
"Data Source=127.0.0.1,4996;Initial Catalog=VP_VideoPlayerEU;Integrated Security=SSPI;Persist Security Info=True;MultipleActiveResultSets=True;Connection Timeout=5;Application Name=Reg Ads Cust;"

I gete error:

Login failed for user ''. The user is not associated with a trusted SQL Server connection.

It is clear that is somethink with SQL server, but what ? It is in mixed mode, Admin account is computer administartors, I give permmison of BultIn\Adminstrators to my databsese, but not help.  I use this connection string in many many computers. But now, under Win 7 somethink is changed, what I suould do ?

Answer : How to make trusted connection via Windows 7 and SQL Server ?

Hi
In order to connect to SQL SERVER only with 127.0.0.1 you the SQL need to listen in port  1433
Did you set the SQL SERVER to listen in port 1433?

please make sure by running;
start -> run-> cmd
netstat -na |find /I "list"
Do you see this line?
TCP    0.0.0.0:1433           0.0.0.0:0              LISTENING

tell me if not and i will tel you how to configure it.

Good luck!
Guy H
Random Solutions  
 
programming4us programming4us