Click here to Skip to main content
16,009,407 members
Home / Discussions / Database
   

Database

 
QuestionT-SQL: How to force rows insertion ignoring transactions? Pin
Yuval Naveh19-Jan-10 8:36
Yuval Naveh19-Jan-10 8:36 
Hi,

I have a logger written in T-SQL (Stored Procs) writing to a log table.
When there are exceptions a log row is written, but then when the outer transaction rolls back it also rolls back the log entry.
I would like to have the log entry (i.e. row) to be inserted and persisted regardless of what the outer (nested) transactions are doing. The log entry should never roll back

Could someone point me to a solution using T-SQL?

Thanks
Yuval

"The true sign of intelligence is not knowledge but imagination." - Albert Einstein

AnswerRe: T-SQL: How to force rows insertion ignoring transactions? [modified] Pin
Eddy Vluggen19-Jan-10 10:20
professionalEddy Vluggen19-Jan-10 10:20 
GeneralRe: T-SQL: How to force rows insertion ignoring transactions? Pin
Yuval Naveh20-Jan-10 2:58
Yuval Naveh20-Jan-10 2:58 
AnswerRe: T-SQL: How to force rows insertion ignoring transactions? Pin
debrah.h4819-Jan-10 19:00
debrah.h4819-Jan-10 19:00 
GeneralRe: T-SQL: How to force rows insertion ignoring transactions? Pin
Yuval Naveh20-Jan-10 2:59
Yuval Naveh20-Jan-10 2:59 
QuestionCentralized Query Optimization Pin
AmbiguousName19-Jan-10 6:34
AmbiguousName19-Jan-10 6:34 
AnswerRe: Centralized Query Optimization Pin
Eddy Vluggen19-Jan-10 9:43
professionalEddy Vluggen19-Jan-10 9:43 
GeneralRe: Centralized Query Optimization Pin
AmbiguousName19-Jan-10 21:14
AmbiguousName19-Jan-10 21:14 
GeneralRe: Centralized Query Optimization Pin
Eddy Vluggen20-Jan-10 0:15
professionalEddy Vluggen20-Jan-10 0:15 
QuestionBULK INSERT problem with SQL Server 2008 DATE format Pin
Gawiz19-Jan-10 6:16
professionalGawiz19-Jan-10 6:16 
AnswerRe: BULK INSERT problem with SQL Server 2008 DATE format Pin
Eddy Vluggen19-Jan-10 11:04
professionalEddy Vluggen19-Jan-10 11:04 
QuestionOpening A Database Connection [SOLVED] Pin
#realJSOP19-Jan-10 4:24
professional#realJSOP19-Jan-10 4:24 
AnswerRe: Opening A Database Connection Pin
loyal ginger19-Jan-10 4:34
loyal ginger19-Jan-10 4:34 
GeneralRe: Opening A Database Connection [modified] Pin
#realJSOP19-Jan-10 4:57
professional#realJSOP19-Jan-10 4:57 
GeneralRe: Opening A Database Connection Pin
Eddy Vluggen19-Jan-10 5:08
professionalEddy Vluggen19-Jan-10 5:08 
GeneralRe: Opening A Database Connection Pin
#realJSOP19-Jan-10 5:26
professional#realJSOP19-Jan-10 5:26 
AnswerRe: Opening A Database Connection Pin
Luc Pattyn19-Jan-10 5:52
sitebuilderLuc Pattyn19-Jan-10 5:52 
GeneralRe: Opening A Database Connection Pin
#realJSOP19-Jan-10 6:18
professional#realJSOP19-Jan-10 6:18 
GeneralRe: Opening A Database Connection Pin
#realJSOP19-Jan-10 7:15
professional#realJSOP19-Jan-10 7:15 
GeneralRe: Opening A Database Connection Pin
#realJSOP19-Jan-10 8:37
professional#realJSOP19-Jan-10 8:37 
AnswerRe: Opening A Database Connection Pin
Shameel19-Jan-10 8:04
professionalShameel19-Jan-10 8:04 
GeneralRe: Opening A Database Connection [modified] Pin
#realJSOP19-Jan-10 8:25
professional#realJSOP19-Jan-10 8:25 
QuestionConsuming a web service using a stored procedure Pin
Mohammad Al Hoss19-Jan-10 3:10
Mohammad Al Hoss19-Jan-10 3:10 
AnswerRe: Consuming a web service using a stored procedure Pin
Eddy Vluggen19-Jan-10 5:06
professionalEddy Vluggen19-Jan-10 5:06 
QuestionFloating Point Numbers Stored as Text with Integration Services Pin
moon_stick19-Jan-10 2:22
moon_stick19-Jan-10 2:22 

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.