Click here to Skip to main content
16,005,125 members
Home / Discussions / Database
   

Database

 
AnswerRe: Copy data from datatable to SqlServer table Pin
ednrgc18-Jan-07 2:17
ednrgc18-Jan-07 2:17 
QuestionANY operator in SQL Server Pin
Uma Kameswari17-Jan-07 23:23
Uma Kameswari17-Jan-07 23:23 
AnswerRe: ANY operator in SQL Server Pin
Pete O'Hanlon18-Jan-07 0:22
mvePete O'Hanlon18-Jan-07 0:22 
Questionhandling database records Pin
rahulpasupuleti17-Jan-07 22:16
rahulpasupuleti17-Jan-07 22:16 
AnswerRe: handling database records Pin
Vinay Dornala17-Jan-07 22:45
Vinay Dornala17-Jan-07 22:45 
GeneralRe: handling database records Pin
rahulpasupuleti18-Jan-07 0:29
rahulpasupuleti18-Jan-07 0:29 
Questionabout Transactions Pin
Vinay Dornala17-Jan-07 18:15
Vinay Dornala17-Jan-07 18:15 
AnswerRe: about Transactions Pin
Pete O'Hanlon18-Jan-07 0:29
mvePete O'Hanlon18-Jan-07 0:29 
You can nest transactions and roll them back using ROLLBACK TRANSACTION. ROLLBACK WORK rolls the transaction back to the top (and sets the transaction count back to 0) regardless of which level of nested transaction you are in.

begin transaction TopTransaction
update table1 where tblid = @id
save transaction innerTransaction
update table2 where tblid = @id
rollback transaction innerTransaction
commit transaction


In this example, the changes to table1 are saved and table2 changes are rolled back.

begin transaction TopTransaction
update table1 where tblid = @id
save transaction innerTransaction
update table2 where tblid = @id
rollback work


In this example, both transactions are rolled back because the rollback work command has been issued.


the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer

Deja View - the feeling that you've seen this post before.

GeneralRe: about Transactions Pin
Vinay Dornala18-Jan-07 0:55
Vinay Dornala18-Jan-07 0:55 
GeneralRe: about Transactions Pin
Pete O'Hanlon18-Jan-07 1:14
mvePete O'Hanlon18-Jan-07 1:14 
QuestionSQL2005 Licensing (Boring) Pin
thedom217-Jan-07 14:15
thedom217-Jan-07 14:15 
QuestionSQL Distinct Pin
nlindley717-Jan-07 9:59
nlindley717-Jan-07 9:59 
AnswerRe: SQL Distinct Pin
Drew McGhie17-Jan-07 11:31
Drew McGhie17-Jan-07 11:31 
GeneralRe: SQL Distinct Pin
nlindley718-Jan-07 3:20
nlindley718-Jan-07 3:20 
AnswerRe: SQL Distinct Pin
ednrgc18-Jan-07 2:19
ednrgc18-Jan-07 2:19 
GeneralRe: SQL Distinct Pin
nlindley718-Jan-07 3:34
nlindley718-Jan-07 3:34 
GeneralRe: SQL Distinct Pin
ednrgc18-Jan-07 3:41
ednrgc18-Jan-07 3:41 
GeneralRe: SQL Distinct Pin
nlindley718-Jan-07 4:30
nlindley718-Jan-07 4:30 
GeneralRe: SQL Distinct Pin
ednrgc18-Jan-07 4:37
ednrgc18-Jan-07 4:37 
GeneralRe: SQL Distinct Pin
nlindley718-Jan-07 4:56
nlindley718-Jan-07 4:56 
QuestionSQL server2000 installation Problem Pin
sanaziuse17-Jan-07 8:04
sanaziuse17-Jan-07 8:04 
AnswerRe: SQL server2000 installation Problem Pin
Bassam Saoud17-Jan-07 8:51
Bassam Saoud17-Jan-07 8:51 
QuestionRe: SQL server2000 installation Problem Pin
sanaziuse17-Jan-07 10:16
sanaziuse17-Jan-07 10:16 
Questionasp/sql result looping problems Pin
bbinto17-Jan-07 5:44
bbinto17-Jan-07 5:44 
AnswerRe: asp/sql result looping problems Pin
andyharman17-Jan-07 6:32
professionalandyharman17-Jan-07 6:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.