Hi guys!!
Im new at this wonderful world, im triying to connect a pocket pc to a sql
express server, but i cant do it =(
And when i try to connect to a sql 2000 standar it was successful, is it a
limitation of sql express? or there is specifit way to do it?
in my code i use this connection string an it works with pocket pc
SqlConnection cnn = new SqlConnection("Data Source=192.168.1.40;Initial
Catalog=mydb;User ID=sa;Packet Size=4096;Password=123");
SqlCommand cmd = new SqlCommand();
SqlDataReader rdr;
cmd.Connection = cnn;
cmd.CommandText = "select * from arearesp";
cnn.Open();
rdr = cmd.ExecuteReader();
while (rdr.Read())
{
comboBox1.Items.Add(rdr["ds_arearesp"].ToString());
}
rdr.Close();
cnn.Close();
using C# and this connection string works but using windows
SqlConnection cnn = new SqlConnection("Data
Source=192.168.1.40\\sqlexpress;Initial Catalog=mydb;User ID=sa;Packet
Size=4096;Password=123");
i've tried it with pocket pc but when try to open connection it fails i got
an error
Regards.
Rick.