Khaledinho
Active member
- Joined
- Jun 22, 2005
- Messages
- 25
Hi all
In ADO.NET I use the SqlDataAdapter to update the database.
The primay key is an autonumber colums (Identity in SQL Server).
When inserting new rows to the dataset I generate unique values for them.
When Updating the database with the data adpater.update method the primary values will be different from the ones i have in the dataset because they autonumber in the database.
How do i return the newly generated ID number (in the sql server or access) to the column i have in the dataset.
Is this could be done with SQL Or OleDB Parameters
Thanks to all
In ADO.NET I use the SqlDataAdapter to update the database.
The primay key is an autonumber colums (Identity in SQL Server).
When inserting new rows to the dataset I generate unique values for them.
When Updating the database with the data adpater.update method the primary values will be different from the ones i have in the dataset because they autonumber in the database.
How do i return the newly generated ID number (in the sql server or access) to the column i have in the dataset.
Is this could be done with SQL Or OleDB Parameters
Thanks to all