aderes Posted January 1, 2006 Posted January 1, 2006 Hey guys, I'm having a problem and it's drivin me crazy. I'm using Web Dev 2005 express and SQL 2005 express. For some reason when the database dosen't always update. When I step through, it works every time, but not always when I simply run it inside a browser. There also dosen't seem to be a pattern as to when it updates. Has anyone run into this? Any help would be a great help. here's 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. Quote
aderes Posted January 1, 2006 Author Posted January 1, 2006 Never mind. I fixed it. Hey guys, I'm having a problem and it's drivin me crazy. I'm using Web Dev 2005 express and SQL 2005 express. For some reason when the database dosen't always update. When I step through, it works every time, but not always when I simply run it inside a browser. There also dosen't seem to be a pattern as to when it updates. Has anyone run into this? Any help would be a great help. here's 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. Quote
Administrators PlausiblyDamp Posted January 1, 2006 Administrators Posted January 1, 2006 Does it give any errors? What is the SQL doing? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.