Wednesday, October 22, 2014

SQL insert Query

Posted by Unknown  |  3 comments


 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  

 SQL insert Query  
 txtNam = getRequestString("CustomerName");  
 txtAdd = getRequestString("Address");  
 txtCit = getRequestString("City");  
 txtSQL = "INSERT INTO Customers (CustomerName,Address,City) Values(@0,@1,@2)";  
 command = new SqlCommand(txtSQL);  
 command.Parameters.AddWithValue("@0",txtNam);  
 command.Parameters.AddWithValue("@1",txtAdd);  
 command.Parameters.AddWithValue("@2",txtCit);  
 command.ExecuteNonQuery();  

 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  


2:31 AM Share:

3 comments:

Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top