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
 General SQL Server Forums
 New to SQL Server Programming
 Release Savepoint in SQL SERVER

Author  Topic 

cheesecake
Starting Member

11 Posts

Posted - 2010-10-21 : 16:04:02
Hi, Can anyone tell me how to release a savepoint in MS SQL SERVER

BEGIN TRAN SAVEPOINT_CREATION
INSERT INTO YEAR
VALUES (2500, 2500)
SELECT * FROM YEAR
SAVE TRANSACTION B4
RELEASE TRANSACTION B4

The "release" statement is giving the following error:

"Incorrect syntax near the keyword 'TRANSACTION'."

Kristen
Test

22859 Posts

Posted - 2010-10-21 : 17:57:07
COMMIT or ROLLBACK the transaction (or the Savepoint)
Go to Top of Page
   

- Advertisement -