SqlDataAdapter a = new SqlDataAdapter(); a.InsertCommand= new SqlCommand("INSERT INTO TheTable (column1, column2) VALUES (@param1, @param2)", connection); a.InsertCommand.Parameters.Add("@param1", SqlDbType.NVarChar, 50, "column1"); a.InsertCommand.Parameters.Add("@param2", SqlDbType.NVarChar, 50, "column2"); a.Update(yourDataTable);
Sunday, April 11, 2010
SqlDataAdapter To Retrieve Multiple Rows
-
The following article discusses the WPF command binding feature with relation to Mouse clicks. One of WPF powerful features is the bindin...
-
SQL Server has never been short of ways to read from and write to files and it is always better to use the standard techniques provided b...
-
In this article we will look at the basics of Angular.Js. This is the first part of an article series. The main objective of this series i...