Hey guys,
Im having a problem and its drivin me crazy. Im using Web Dev 2005 express and SQL 2005 express. For some reason when the database dosent always update. When I step through, it works every time, but not always when I simply run it inside a browser. There also dosent seem to be a pattern as to when it updates. Has anyone run into this? Any help would be a great help.
heres my code...
SqlConnection SqlCon = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["pingDB"].ToString());
SqlCommand SqlCmd = new SqlCommand(sql, SqlCon);
SqlCon.Open();
SqlCmd.BeginExecuteNonQuery();
SqlCon.Close();
Thanks guys.
Im having a problem and its drivin me crazy. Im using Web Dev 2005 express and SQL 2005 express. For some reason when the database dosent always update. When I step through, it works every time, but not always when I simply run it inside a browser. There also dosent seem to be a pattern as to when it updates. Has anyone run into this? Any help would be a great help.
heres my code...
SqlConnection SqlCon = new System.Data.SqlClient.SqlConnection(ConfigurationManager.ConnectionStrings["pingDB"].ToString());
SqlCommand SqlCmd = new SqlCommand(sql, SqlCon);
SqlCon.Open();
SqlCmd.BeginExecuteNonQuery();
SqlCon.Close();
Thanks guys.