Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection String with SqlCeConnection
Message
 
To
08/08/2003 12:12:39
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
General information
Forum:
ASP.NET
Category:
.NET Compact Framework
Miscellaneous
Thread ID:
00817896
Message ID:
00818302
Views:
16
This worked for me:
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "Data Source=XXX.XXX.XXX.XXX,1433;uid=sa;pwd=;Initial Catalog=DPITEST;";
conn.Open();
this.button1.Text = "Open!";
conn.Close();
DataSet ds = new DataSet();
SqlDataAdapter da = new SqlDataAdapter("select * from client",conn);
da.Fill(ds);
this.dataGrid1.DataSource = ds.Tables[0];
Use the ip address.

>David,
>
>This is too weird. The connection string seems to work perfectly is any other solution except for the Smart Device Application.
>
>The error:
>
>System.Data.SqlClient.SqlException: SqlException
>
>
>very, very informative...
>
>I will try to find a workaround.
>Thanks for all your help.
>
>Regards,
>
>Alvin
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform