Connection to SQL server?

T

Tomer

I'm trying to connect to a sql server using this code:
Conn = new SqlConnection("Data Source=192.168.223.52; user id=sa;
password=sa; initial catalog=DBTest;Connect Timeout=30");
Conn.Open();

Also tried:
Conn = new SqlConnection("Server=P1000; user id=sa; password=sa; initial
catalog=DBTest");

but I always get the same exception:
'PlatformNotSupportedException'

I use symbol 8100/2846/mc9050 and the emulator. same result.

what to do?


Tomer
 
G

Guest

Add a reference to System.Data.SQLClient then try the followin

Dim oConn as new SQLClient.SQLConnectio

oConn.ConnectionString = "packet size=4096;user id=sa;password=sa;data source=192.168.223.52;persist security info=False;initial catalog=DBTest;Connect Timeout=30;

oConn.Open(

I use this to connect to to SQL2000 works just fine
 

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