SQLConnection cn = New SQLConnection(strConnectionString);
SQLDataAdapter adp = New SQLDataAdapter;
adp.InsertCommand = New SQLCommand("ADDItem", cn);
adp.InsertCommand.Parameters.Add("@Param1", SQLDbType.VarChar, 10).Value = strValue;
... repeat 3 times ...
cn.Open();
adp.InsertCommand.ExecuteNonQuery();
cn.Close();
Something like that.
Brian
|