Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Roll back Datavalues

Author  Topic 

BK
Starting Member

2 Posts

Posted - 2004-08-26 : 05:29:58
i need to test a Delete function in a SQL table.
how do i get back all the datavalues if i delete anyother row by mistake.
can it be done in anyway with enterprise manager.
please let me know.
thanks

mr_mist
Grunnio

1870 Posts

Posted - 2004-08-26 : 05:36:18
1. Test the query as a SELECT first

2. Use a transaction

BEGIN TRAN
DELETE FROM yourtable
ROLLBACK

-------
Moo. :)
Go to Top of Page
   

- Advertisement -