PC Review


Reply
Thread Tools Rate Thread

Can't connect to SqlServer anymore!

 
 
Lloyd Dupont
Guest
Posts: n/a
 
      20th Sep 2004
I think it might be realted to XP SP2, but I have disabled the firewall
already!

Anyway I do some very simple code like that:
//------- OpenConnection ---------
SqlConnection sqlc = new SqlConnection();
sqlc.ConnectionString = "Server=172.16.0.115;Database=Northwind;User
ID=sa;Password=pwd;Trusted_Connection=False";
sqlc.Open();
sqlc.Close();
//-------------------------------

it used to work alright.
I didn't change anything in this code (but I did install SP2)
now when I try to connect to my SqlServer I get:

a SqlException with the message
"General network error. Check your network documentation."

I disabled the windows firewall already (from Control Panel) what else could
I do?

I read on a newsgroup that someone changed the dirver and it worked....
I don't quite understand, I just use the System.Data.SqlSclient.dll library
shiped with the compact framework, how could I change it ?


--
Lloyd Dupont, Software Architect
Get Your Data Mobile
http://www.ihookdb.com


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect PDA To SqlServer Paul Microsoft C# .NET 8 13th Mar 2009 05:36 PM
not able to connect to sqlserver yoshitha Microsoft ASP .NET 0 5th Jan 2006 05:28 AM
Can't connect to SqlServer anymore! (from PocketPC) Lloyd Dupont Microsoft Dot NET Compact Framework 4 21st Sep 2004 08:53 PM
Can't connect to SqlServer anymore! (from PocketPC) Lloyd Dupont Microsoft ADO .NET 4 21st Sep 2004 08:53 PM
connect to sqlserver? Papa_K Microsoft ASP .NET 1 20th Oct 2003 01:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:05 AM.