Click here to Skip to main content
15,896,063 members
Home / Discussions / Database
   

Database

 
GeneralRe: Sql qstn(bit) Pin
Mycroft Holmes5-Apr-08 18:16
professionalMycroft Holmes5-Apr-08 18:16 
GeneralMSSQL 2000 trigger on update [modified] Pin
Ronni Marker4-Apr-08 23:12
Ronni Marker4-Apr-08 23:12 
GeneralRe: MSSQL 2000 trigger on update Pin
Ronni Marker5-Apr-08 1:24
Ronni Marker5-Apr-08 1:24 
GeneralI have an Interesting Problem Pin
keencomputer4-Apr-08 20:43
keencomputer4-Apr-08 20:43 
GeneralRe: I have an Interesting Problem Pin
Rami Said Abd Alhalim5-Apr-08 23:44
Rami Said Abd Alhalim5-Apr-08 23:44 
GeneralConcurrency violation on update command. Pin
msx234-Apr-08 14:11
msx234-Apr-08 14:11 
GeneralRe: Concurrency violation on update command. Pin
Rami Said Abd Alhalim5-Apr-08 23:49
Rami Said Abd Alhalim5-Apr-08 23:49 
QuestionStored-Procedure (SP) - Executed as single transaction? Pin
Adeel Chaudhry4-Apr-08 9:26
Adeel Chaudhry4-Apr-08 9:26 
Hello!

I will like to know following in context of SQL Server 2005:

1. Is 1 SP executed as 1 transaction?
2. In case of BEGIN TRAN/TRY/CATCH blocks, what happens if the following scenario occurs:

create proc...
declare x....
BEGIN TRAN
BEGIN TRY
....
COMMIT TRAN
END TRY
BEGIN CATCH
....
ROLLBACK TRAN
END CATCH
....
<some exception="" occurs="" here="">
....
end

will the SP be rolled back till start? or just the part after END CATCH? or just the statement causing exception?

Tried playing with SP, but seriously confused myself!!!

If anyone could provide useful link related to the problem, it will be great! Tried googling but could'nt find anything useful. Frown | :(

Regards,

Adeel

Do rate the reply, if it helps or even if it doesnot, because it helps the members to know, what solved the issue. Thanks.

AnswerRe: Stored-Procedure (SP) - Executed as single transaction? Pin
Mark J. Miller4-Apr-08 12:03
Mark J. Miller4-Apr-08 12:03 
GeneralRe: Stored-Procedure (SP) - Executed as single transaction? Pin
Adeel Chaudhry5-Apr-08 4:50
Adeel Chaudhry5-Apr-08 4:50 
GeneralRe: Stored-Procedure (SP) - Executed as single transaction? Pin
Mark J. Miller6-Apr-08 4:31
Mark J. Miller6-Apr-08 4:31 
QuestionHelp in understanding a simple query result Pin
Snowman584-Apr-08 8:17
Snowman584-Apr-08 8:17 
GeneralRe: Help in understanding a simple query result Pin
A Wong4-Apr-08 9:02
A Wong4-Apr-08 9:02 
GeneralRe: Help in understanding a simple query result Pin
Snowman584-Apr-08 9:10
Snowman584-Apr-08 9:10 
GeneralRe: Help in understanding a simple query result Pin
A Wong4-Apr-08 9:54
A Wong4-Apr-08 9:54 
GeneralRe: Help in understanding a simple query result Pin
Snowman584-Apr-08 10:00
Snowman584-Apr-08 10:00 
GeneralRe: Help in understanding a simple query result Pin
suppaman5-Apr-08 4:24
suppaman5-Apr-08 4:24 
GeneralRe: Help in understanding a simple query result Pin
Snowman586-Apr-08 16:17
Snowman586-Apr-08 16:17 
GeneralRe: Help in understanding a simple query result Pin
suppaman10-Apr-08 13:11
suppaman10-Apr-08 13:11 
QuestionSQL 2000 Problem Pin
hrrty4-Apr-08 1:48
hrrty4-Apr-08 1:48 
GeneralRe: SQL 2000 Problem Pin
GuyThiebaut4-Apr-08 11:30
professionalGuyThiebaut4-Apr-08 11:30 
GeneralHown to select the telephone number that is most dialled Pin
Daniel_Logan3-Apr-08 23:52
Daniel_Logan3-Apr-08 23:52 
GeneralRe: Hown to select the telephone number that is most dialled Pin
Colin Angus Mackay4-Apr-08 0:25
Colin Angus Mackay4-Apr-08 0:25 
GeneralDifference between Correlated and Simple Subqueries Pin
.NET- India 3-Apr-08 23:50
.NET- India 3-Apr-08 23:50 
GeneralRe: Difference between Correlated and Simple Subqueries Pin
pmarfleet4-Apr-08 0:03
pmarfleet4-Apr-08 0:03 

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.