Click here to Skip to main content
15,900,362 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Rafferty Uy22-Apr-10 18:38
Rafferty Uy22-Apr-10 18:38 
This is for SQL Server 2008:

Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation?

This is the idea:
- stored proc spTest contains 2 insert statements
- exec spTest
- spTest executes 1st insert statement
- stored procedure still running... but server gets some problem that's unrelated to this stored procedure, which causes the stored proc to stop (e.g. server crash)


Will the data in the 1st insert statement be rolled back?


Thanks in advance!
Rafferty

AnswerRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
PIEBALDconsult22-Apr-10 18:47
mvePIEBALDconsult22-Apr-10 18:47 
GeneralRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Rafferty Uy22-Apr-10 18:55
Rafferty Uy22-Apr-10 18:55 
AnswerRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Eddy Vluggen22-Apr-10 22:25
professionalEddy Vluggen22-Apr-10 22:25 
GeneralRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Rafferty Uy23-Apr-10 0:22
Rafferty Uy23-Apr-10 0:22 
GeneralRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Eddy Vluggen23-Apr-10 0:39
professionalEddy Vluggen23-Apr-10 0:39 
GeneralRe: SQL Server 2008: Will the stored procedure be rolled back if the db server gets an error (server crash or performance problem) in the middle of it's operation? Pin
Rafferty Uy23-Apr-10 4:49
Rafferty Uy23-Apr-10 4:49 
QuestionSSIS failed with error 43% in Windows scheduler but no problem manually running the batch file... Pin
nataliedw22-Apr-10 14:44
nataliedw22-Apr-10 14:44 
NewsNew SQL Azure features now available Pin
GoAzure22-Apr-10 9:29
GoAzure22-Apr-10 9:29 
NewsNew OData Service for SQL Azure Uses AppFabric Pin
GoAzure22-Apr-10 9:19
GoAzure22-Apr-10 9:19 
Question"Connecting to sql server files" error Pin
#realJSOP21-Apr-10 5:17
professional#realJSOP21-Apr-10 5:17 
AnswerRe: "Connecting to sql server files" error Pin
Tim Carmichael21-Apr-10 5:44
Tim Carmichael21-Apr-10 5:44 
AnswerRe: "Connecting to sql server files" error Pin
Luc Pattyn21-Apr-10 6:08
sitebuilderLuc Pattyn21-Apr-10 6:08 
GeneralRe: "Connecting to sql server files" error Pin
#realJSOP21-Apr-10 7:02
professional#realJSOP21-Apr-10 7:02 
AnswerRe: "Connecting to sql server files" error Pin
dan!sh 22-Apr-10 5:03
professional dan!sh 22-Apr-10 5:03 
GeneralRe: "Connecting to sql server files" error Pin
Luc Pattyn22-Apr-10 5:30
sitebuilderLuc Pattyn22-Apr-10 5:30 
GeneralRe: "Connecting to sql server files" error Pin
dan!sh 22-Apr-10 8:55
professional dan!sh 22-Apr-10 8:55 
GeneralRe: "Connecting to sql server files" error Pin
Luc Pattyn22-Apr-10 9:04
sitebuilderLuc Pattyn22-Apr-10 9:04 
Questionstoring only single value in primary key table and storing multiple values in foreign key table Pin
developerit21-Apr-10 4:06
developerit21-Apr-10 4:06 
AnswerRe: storing only single value in primary key table and storing multiple values in foreign key table Pin
Corporal Agarn21-Apr-10 4:41
professionalCorporal Agarn21-Apr-10 4:41 
AnswerRe: storing only single value in primary key table and storing multiple values in foreign key table Pin
Ashfield21-Apr-10 5:21
Ashfield21-Apr-10 5:21 
QuestionReturning 2 output parameters in Stored Procedure Pin
Dayekh21-Apr-10 1:17
Dayekh21-Apr-10 1:17 
AnswerRe: Returning 2 output parameters in Stored Procedure Pin
Ashfield21-Apr-10 2:36
Ashfield21-Apr-10 2:36 
GeneralRe: Returning 2 output parameters in Stored Procedure Pin
Dayekh21-Apr-10 4:15
Dayekh21-Apr-10 4:15 
GeneralRe: Returning 2 output parameters in Stored Procedure Pin
Ashfield21-Apr-10 5:19
Ashfield21-Apr-10 5:19 

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.