V
venkateswarag
Hi,
I am trying to connect SQL Server 2000 from Pocket PC emulator using
"Smart Device Applications".
I am keep getting the error "SQL Server does not exist or access denied
"
code snippet as follows
SqlConnection consql2000 = new SqlConnection("User
ID=sa;Password=xxxx;Initial Catalog=DotNetCF;Data Source=taknev;");
SqlCommand cmd = new SqlCommand("SELECT * FROM test", consql2000);
SqlDataReader dr;
try
{
consql2000.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
listBox1.Items.Add(dr.GetString(1));
}
dr.Close();
consql2000.Close();
}
catch (SqlException ex)
{
MessageBox.Show(ex.Message);
}
Any help??? Thanks in advance
-Venki
I am trying to connect SQL Server 2000 from Pocket PC emulator using
"Smart Device Applications".
I am keep getting the error "SQL Server does not exist or access denied
"
code snippet as follows
SqlConnection consql2000 = new SqlConnection("User
ID=sa;Password=xxxx;Initial Catalog=DotNetCF;Data Source=taknev;");
SqlCommand cmd = new SqlCommand("SELECT * FROM test", consql2000);
SqlDataReader dr;
try
{
consql2000.Open();
dr = cmd.ExecuteReader();
while (dr.Read())
{
listBox1.Items.Add(dr.GetString(1));
}
dr.Close();
consql2000.Close();
}
catch (SqlException ex)
{
MessageBox.Show(ex.Message);
}
Any help??? Thanks in advance
-Venki