NewFromMattel
Programmer
Here's my delimma. I have a demo database that needs to have "seeded" data in it that can be manipulated daily during demos. But at night I want to return to the default seeded version.
What I'm doing is:
killing the spids for this db.
detaching the db
moving the 2 files (mdf and ldf) to an archive folder
copying 2 default seeded files to the database folder
attaching the new files.
However the transactions are being rolled forward upon attaching! How can I prevent this??
Thanks
And I am calling this from a .exe file (written in C#)
What I'm doing is:
killing the spids for this db.
detaching the db
moving the 2 files (mdf and ldf) to an archive folder
copying 2 default seeded files to the database folder
attaching the new files.
However the transactions are being rolled forward upon attaching! How can I prevent this??
Thanks
And I am calling this from a .exe file (written in C#)