abdrabaa

abdrabaa

  • NA
  • 11
  • 0

insert and update statment problem (sql express)

Jul 14 2007 8:53 AM

Hi,

 

I created a table after adding .mdf file to my project. I wrote insert and update query and execute the queries but nothing happed. There is no data added to the table and there is no update action. I did not get any errors.

 

So please can anybody guide me how to insert and update to sql express using c#

 

The code I wrote is:

 

strSql=”update tbl set fldName=’AAA’”;

cmd=new sqlCommand(strSql, conn);

conn.Open();

cmd.ExecuteNonQuery();

conn.Close()

  


Answers (2)