SQL Server does not exist or access denied

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?
 
A

Andre Prins

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?
 
A

Andre Prins

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top