Possible Duplicate:
Is it possible to run multiple DDL statements inside a transaction (within SQL Server)?
If I have following script:
BEGIN TRAN
GO
ALTER TABLE [dbo].[Table1] CHECK CONSTRAINT [FK_1]
GO
ALTER TABLE [dbo].[Users] CHECK CONSTRAINT [FK_2]
GO
COMMIT TRAN
Transcation is not working. It is still on transaction one statement. For example, if statement 1 failed, statement 2 still is done when running the script.
How to enable Transaction for DDL?