SQL Server does not exist or access denied

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've been running a mobile app for ten months with no problem on three
different servers. When I installed the new netframework 2.0 It stopped
working on two servers that the new framework was installed on. The program
still works on the one the framework was not installed on. I receive the
error,

"SQL Server does not exist or access denied"

cn.Open();

Which is in code,

string conTest = "Server=username;uid=sa;pwd=apassword;database=TestDatabase";

string conTestCommand= "Select * From stable Where Username=@username";

SqlConnection cn = new SqlConnection();
cn.ConnectionString = conTest;
cn.Open()

Anyone know what the problem is?
 
Dave said:
"SQL Server does not exist or access denied"
Anyone know what the problem is?

Have you checked using the SQL Server Network Utility (svrnetcn.exe) if
the protocol you're using is still enabled?
 
Dave said:
"SQL Server does not exist or access denied"

Anyone know what the problem is?

Check, using the SQL Server Network Utility (svrnetcn.exe), if the
protocol you're using is still enabled.

HTH
 
Yes the protocol is still enabled.

The username is not the name of my server, but
that was just a typo while I was changing things so I wouldn't announce to
everyone what my computer name was.
 
Back
Top