Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
dmilam
Posting Yak Master
185 Posts |
Posted - 2011-01-20 : 20:29:52
|
I'm not whether setting a session handle within or without a TRY block is best, or if it matters.If I set it at the beginning of my script, will it 'persist' throughout, everywhere, or should I include it, as here:BEGIN TRY SET XACT_ABORT ON; EXEC sp_executesql @sql;END TRY |
|
|
|
|