Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...