|
|
|
SSChasing Mays
      
Group: General Forum Members
Last Login: Saturday, April 06, 2013 12:20 AM
Points: 649,
Visits: 263
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Monday, May 13, 2013 11:21 AM
Points: 2,163,
Visits: 2,148
|
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 12:56 AM
Points: 1,972,
Visits: 1,822
|
|
| Some operations have no sense inside a transaction. I surprise to see so many wrong answers.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Friday, May 17, 2013 9:52 AM
Points: 1,356,
Visits: 4,761
|
|
I guessed wrongly that because it makes no sense to do a backup within a transactiobn, then the transaction would be ignored and it would work.
I'm not sure what the question was supposed to teach us though - would anybody really try doing a backup inside a transaction?!
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 7:27 AM
Points: 1,259,
Visits: 4,260
|
|
| Had to read through the BACKUP item in Books Online to be sure what would happen here, because it certainly makes no sense to put a backup inside a transaction and I had no idea what SQL would actually do if you tried!
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, April 11, 2013 12:58 AM
Points: 174,
Visits: 555
|
|
| I thought this was on error then rollback. I remember you could test a backup without anything really happening, just a test to see if the wirings, pipes and screws are correct.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 24, 2013 9:59 PM
Points: 1,354,
Visits: 1,299
|
|
Toreador (9/22/2010) I guessed wrongly that because it makes no sense to do a backup within a transactiobn, then the transaction would be ignored and it would work.
I'm not sure what the question was supposed to teach us though - would anybody really try doing a backup inside a transaction?!
Woo hoo, I finally got one right.
Believe it or not, a simple Google search reveals people did try to run a backup within a transaction:
http://www.sqlnewsgroups.net/sqlserver/t10622-commit-rollback.aspx
What were they thinking?
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 9:09 AM
Points: 2,114,
Visits: 1,073
|
|
I learned something. I thought that the backup would be OK, but the there would be no history for the backup in msdb.
Good question.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 1:10 PM
Points: 2,673,
Visits: 2,418
|
|
Toreador (9/22/2010) I guessed wrongly that because it makes no sense to do a backup within a transactiobn, then the transaction would be ignored and it would work.
My logic as well. Tough question.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Yesterday @ 7:42 AM
Points: 1,501,
Visits: 1,514
|
|
I think the proper way to "rollback" a backup is to do a restore.
|
|
|
|