D
Devesh Aggarwal
Hi,
I have a backup and restore module in my project. The backup uses a typed
dataset object (XSD) to get the data from database and creates a xml file as
the backup file (using the WriteXml method of dataset). When doing the
restore i have to overwrite the data from xml back to database.
these are the steps that i follow.
1. get the data from database.
2. delete the data of step 1.
3. load the xml data.
4. transfer the xml data back on database.
The problem is the master tables have primary key as identity. How do i get
the next identity for a table?
database has over 100 tables with the relation ship created.
all the above four action will happen in transaction.
XSD is created from server explorer in Visual studio.NET.
Database used is SQL 7.
Regards.
Devesh Aggarwal / Hafeez
I have a backup and restore module in my project. The backup uses a typed
dataset object (XSD) to get the data from database and creates a xml file as
the backup file (using the WriteXml method of dataset). When doing the
restore i have to overwrite the data from xml back to database.
these are the steps that i follow.
1. get the data from database.
2. delete the data of step 1.
3. load the xml data.
4. transfer the xml data back on database.
The problem is the master tables have primary key as identity. How do i get
the next identity for a table?
database has over 100 tables with the relation ship created.
all the above four action will happen in transaction.
XSD is created from server explorer in Visual studio.NET.
Database used is SQL 7.
Regards.
Devesh Aggarwal / Hafeez