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
 Trans & Rollback with DDL or DML?

Author  Topic 

jooorj
Posting Yak Master

126 Posts

Posted - 2011-04-26 : 11:17:14
can I use Trans & Rollback with DDL or DML or TCL ?
or with all
?

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2011-04-26 : 11:21:33
do you mean TRANSACTION, COMMIT and ROLLBACK ?? ro ROLLUP which we use to summarize data ??

--------------------------
http://connectsql.blogspot.com/
Go to Top of Page

lionofdezert
Aged Yak Warrior

885 Posts

Posted - 2011-04-26 : 11:23:28
if you are talking about usage of BEGIN TRANSACTION , ROLLBACK OR COMMIT. YES you can use both of DDL and DML. NOT for TCL (i think). Unlik oracle where DDL are committed autmatically and cann't be rollback.

--------------------------
http://connectsql.blogspot.com/
Go to Top of Page
   

- Advertisement -