|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, June 04, 2013 12:26 AM
Points: 164,
Visits: 895
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Wednesday, April 24, 2013 5:02 AM
Points: 2,365,
Visits: 1,825
|
|
learnt something new.
"Keep Trying"
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 8:26 AM
Points: 3,164,
Visits: 4,344
|
|
very interesting....
____________________________________________ Space, the final frontier? not any more... All limits henceforth are self-imposed. “libera tute vulgaris ex”
|
|
|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Thursday, May 02, 2013 12:25 PM
Points: 525,
Visits: 215
|
|
Learned something today... Good question and keep them coming.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Today @ 1:00 PM
Points: 802,
Visits: 2,013
|
|
Wouldn't the backup fail because of a corrupt table?
Gaby ________________________________________________________________ "In theory, theory and practice are the same. In practice, they are not." - Albert Einstein
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Tuesday, June 04, 2013 12:26 AM
Points: 164,
Visits: 895
|
|
| I actually tested the script out before I submitted it and the backup will happen. I used a corrupted database as the sample.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 1:35 AM
Points: 357,
Visits: 706
|
|
IMHO, the backup will happen regardless of whether or not the CATCH block is executed (i.e. regardless of DBCC raising an error). That is because the BACKUP command comes AFTER the END CATCH .... What is the purpose of the TRY/CATCH block if not to avoid crashing an execution sequence?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 1:35 AM
Points: 357,
Visits: 706
|
|
IMHO, the backup will happen regardless of whether or not the CATCH block is executed (i.e. regardless of DBCC raising an error). That is because the BACKUP command comes AFTER the END CATCH .... What is the purpose of the TRY/CATCH block if not to avoid crashing an execution sequence?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 1:35 AM
Points: 357,
Visits: 706
|
|
IMHO, the backup will happen regardless of whether or not the CATCH block is executed (i.e. regardless of DBCC raising an error). That is because the BACKUP command comes AFTER the END CATCH .... What is the purpose of the TRY/CATCH block if not to avoid crashing an execution sequence?
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, June 10, 2013 1:35 AM
Points: 357,
Visits: 706
|
|
IMHO, the backup will happen regardless of whether or not the CATCH block is executed (i.e. regardless of DBCC raising an error). That is because the BACKUP command comes AFTER the END CATCH .... What is the purpose of the TRY/CATCH block if not to avoid crashing an execution sequence?
|
|
|
|