sql server connection
-
hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...
SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
SqlCommand cmd = con.CreateCommand();
try
{
con.Open();
}
catch (Exception f)
{
MessageBox.Show(f.Message);
}sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1
-
hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...
SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
SqlCommand cmd = con.CreateCommand();
try
{
con.Open();
}
catch (Exception f)
{
MessageBox.Show(f.Message);
}sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1
-
hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...
SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
SqlCommand cmd = con.CreateCommand();
try
{
con.Open();
}
catch (Exception f)
{
MessageBox.Show(f.Message);
}sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1
please clear your question to justify it what is error in this code and what about exception. Mention it then we can solved it. :)