Click here to Skip to main content
15,895,799 members
Home / Discussions / Database
   

Database

 
QuestionHiring home based workers (2449) Pin
usman777723-Apr-09 8:02
usman777723-Apr-09 8:02 
AnswerRe: Hiring home based workers (2449) Pin
Le centriste23-Apr-09 9:26
Le centriste23-Apr-09 9:26 
AnswerRe: Hiring home based workers (2449) Pin
SayreCC23-Apr-09 15:01
SayreCC23-Apr-09 15:01 
QuestionTrigger Firing in multiple database,sql server 2005 Pin
Sujit Mandal23-Apr-09 0:39
Sujit Mandal23-Apr-09 0:39 
AnswerRe: Trigger Firing in multiple database,sql server 2005 Pin
Giorgi Dalakishvili23-Apr-09 6:59
mentorGiorgi Dalakishvili23-Apr-09 6:59 
QuestionSQL server Express is not installed after uninstall Pin
Rupesh Kumar Swami22-Apr-09 23:23
Rupesh Kumar Swami22-Apr-09 23:23 
QuestionHow to create database diagram in MYSQL Pin
vishal naik22-Apr-09 17:29
vishal naik22-Apr-09 17:29 
QuestionError handling in sql 2000 trigger Pin
codemunch22-Apr-09 10:10
codemunch22-Apr-09 10:10 
Hello All,

I've been googling and based on many articles I belive what I'm asking of sql2000 triggers is not possible for the particular type of error i'm getting.

I am trying to integrate with an existing application on sql 2000 without affecting it's behaviour. When it inserts/updates/deletes in a few tables I need to perform an I/U/D in a sql 2005 DB through a DB link. This is all set up fine, as well as the trigger to do the insert. I need to be able to put error handling in the trigger so that it does not affect I/U/D of the existing product.

Right now, MSDTC is having a fit because I don't have it configured properly on purpose. I did configure it correctly and then reverted so it would raise errors so I could test error handling.

Nothing I've tried so far will let me handle this error in an insert trigger on sql 2000:
Server: Msg 7391, Level 16, State 1, Line 2
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction. OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. 


Execution stops immediately so I can't even get to an "IF @@ERROR" statement and the transaction is rolled back. I know how to fix this error but I need to be able to handle this type of error so I can use xp_logevent or something similar to monitor. Is it possible - Any ideas?

Does anyone know of a way in sql 2000 to handle this type of error in a trigger on sql 2000?
QuestionSQL SCRIPT Pin
kibromg22-Apr-09 5:25
kibromg22-Apr-09 5:25 
AnswerRe: SQL SCRIPT Pin
David Mujica22-Apr-09 5:43
David Mujica22-Apr-09 5:43 
GeneralRe: SQL SCRIPT Pin
kibromg22-Apr-09 6:44
kibromg22-Apr-09 6:44 
QuestionUPDATE statement using a view Pin
Shrimpersfan22-Apr-09 4:19
Shrimpersfan22-Apr-09 4:19 
AnswerRe: UPDATE statement using a view Pin
Eddy Vluggen22-Apr-09 5:17
professionalEddy Vluggen22-Apr-09 5:17 
QuestionCreating a temporary table Pin
fly90422-Apr-09 4:04
fly90422-Apr-09 4:04 
AnswerRe: Creating a temporary table Pin
Syed Mehroz Alam22-Apr-09 6:49
Syed Mehroz Alam22-Apr-09 6:49 
GeneralRe: Creating a temporary table [SOLVED] Pin
fly90422-Apr-09 8:03
fly90422-Apr-09 8:03 
QuestionStored procedure with XML as it paramter Pin
ONeil Tomlinson22-Apr-09 3:40
ONeil Tomlinson22-Apr-09 3:40 
QuestionError when I run my C# program that work's with Oracle Pin
E_Gold22-Apr-09 1:20
E_Gold22-Apr-09 1:20 
AnswerRe: Error when I run my C# program that work's with Oracle Pin
SeMartens22-Apr-09 4:05
SeMartens22-Apr-09 4:05 
GeneralRe: Error when I run my C# program that work's with Oracle Pin
E_Gold22-Apr-09 19:12
E_Gold22-Apr-09 19:12 
GeneralRe: Error when I run my C# program that work's with Oracle Pin
SeMartens22-Apr-09 21:12
SeMartens22-Apr-09 21:12 
GeneralRe: Error when I run my C# program that work's with Oracle Pin
E_Gold23-Apr-09 4:44
E_Gold23-Apr-09 4:44 
GeneralRe: Error when I run my C# program that work's with Oracle Pin
SeMartens23-Apr-09 5:03
SeMartens23-Apr-09 5:03 
QuestionConnecting MS-ACCESS via asp.net c# Pin
sachees12321-Apr-09 23:14
sachees12321-Apr-09 23:14 
AnswerRe: Connecting MS-ACCESS via asp.net c# Pin
Eddy Vluggen21-Apr-09 23:19
professionalEddy Vluggen21-Apr-09 23: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.