F
fantavir
Hi,
I'm trying to insert a new record in a Table (the field ID is numeric,
counter and primary key) and get the value of the field ID, using
ADO.NET.
Accessing recordset (rst below) by ADO I can do:
rst.addnew
rst("Name")="Joe"
rst("Surname")="Smith"
rst.update
myID = rst("ID")
Then I use 'myID' to insert a new record in another table.
How can I do the same thing using ADO.NET (example, with DataReader,
DataTable, DataSet)?
Thanks,
Francesco
I'm trying to insert a new record in a Table (the field ID is numeric,
counter and primary key) and get the value of the field ID, using
ADO.NET.
Accessing recordset (rst below) by ADO I can do:
rst.addnew
rst("Name")="Joe"
rst("Surname")="Smith"
rst.update
myID = rst("ID")
Then I use 'myID' to insert a new record in another table.
How can I do the same thing using ADO.NET (example, with DataReader,
DataTable, DataSet)?
Thanks,
Francesco