|
-
June 18th, 2002, 05:12 AM
#1
Add Data in Database
How do u add a new record using the dataset in vb.net?
Not thro the insert command but using dataset.
Thnx
-
July 17th, 2002, 04:21 AM
#2
DataRow NewRow;
NewRow = dataset.Tables["MyTable"].NewRow();
NewRow["MyColumn1"] = "blabla";
dataset.Tables["MyTable"].Rows.Add ( NewRow );
(through dataset... ofcourse you have to call also
sqlDataAdapter.Update(dataset.Tables["MyTable"]) to actually write the difference to a database table... (this goes through INSERT, UPDATE, DELETE statements in sqlDataAdapter... )
regars
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|