473,324 Members | 2,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Errore su transazione con trigger??

Ciao a tutti, devo eseguire una INSERT su un db in remoto...visto che non lo
uso frequentemente utilizzo la funzione OPENDATASOURCE invece di linkare il
server. Tutto funziona alla perfezione..ma quando sposto il codice
all'interno di un Trigger (che lancio dopo l'inserimento in un altra tabella
su un altro db) mi dice che non puù aggiungere un'altra transazione alla
code (Errore 7391).....

Che può essere?? Il servizio DTC è avviato su entrambi i server....AIUTO!!!

P.S.: premetto che non sono un grande esperto di transact-sql....

Jul 20 '05 #1
1 3272
Grazie mille....comunque ho dato un occhio alla documentazione ed
effettivamente non è possibile perchè avendo già una transazione aperta non
posso aprirne una in remoto...

Grazie ancora....

"Erland Sommarskog" <so****@algonet.se> ha scritto nel messaggio
news:Xn*********************@127.0.0.1...
[posted and mailed, per favore respondere in news]

Andrea Canegrati (ac********@enter.it) writes:
Ciao a tutti, devo eseguire una INSERT su un db in remoto...visto che
non lo uso frequentemente utilizzo la funzione OPENDATASOURCE invece di
linkare il server. Tutto funziona alla perfezione..ma quando sposto il
codice all'interno di un Trigger (che lancio dopo l'inserimento in un
altra tabella su un altro db) mi dice che non puù aggiungere un'altra
transazione alla code (Errore 7391).....

Che può essere?? Il servizio DTC è avviato su entrambi i
server....AIUTO!!!


In Books Online, cerca per 7391, e troverai un articolo de questa
errore. Questa è il testo in inglese:

Message Text
The operation could not be performed because the OLE DB provider '%ls'
was unable to begin a distributed transaction.

Explanation
This error can occur while processing an INSERT, UPDATE, or DELETE
statement inside an explicit or implicit transaction. This indicates
that the OLE DB provider does not support distributed transactions,
which is needed for data modification statements inside an explicit or
implicit transaction. A data modification statement can be executed
against such a provider only in the case where the statement is a
transaction by itself.

Action
Verify that the OLE DB provider specified supports distributed
transactions. If the provider does not support distributed
transactions, rewrite the data modification statement not to use
distributed transactions.

Sembra che non è possibilie per te di usare un trigger in
questo caso. (Quando sei in un trigger, c'è sempre un tranazione.)
--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: giancaMI | last post by:
Salve a tutti, la mia configurazione è la seguente: win 2k sp4 dreamweaver MX 2004 MySql ver. 4.1 su pc locale IIS Microsoft installato dunque, dopo avere installato MySql (che funziona...
1
by: leo | last post by:
all'improvviso quando utilizzo istruzioni tipo: server.mappath("..\db") o nell'include uso il percorso scritto '..\file.inc' ho il seguente errore: Tipo di errore: Server.MapPath(), ASP...
0
by: JohnO | last post by:
Thanks to Serge and MarkB for recent tips and suggestions. Ive rolled together a few stored procedures to assist with creating audit triggers automagically. Hope someone finds this as useful as...
0
by: Giuseppe Esposito | last post by:
"The state information is invalid for this page and might be corrupted" Non è che non abbia già cercato... ma è che tutto quello che è venuto fuori dalla ricerca non è stato utile. Succede...
0
by: and251076 | last post by:
Buongiorno, da pochi giorno ho installato la versione 2005 di Visual Studio, ma ahi mè non funziona tutto perfettamente. Infatti non riesco ad eseguite le miei applicazioni web in localhost. Se...
1
by: mg | last post by:
Errore: uncaught exception: Permesso negato per ottenere la proprietà HTMLDivElement.parentNode qualcuno puo' rispondermi in italiano????? grazie
5
by: ra7l | last post by:
Hi All .. First Thanks to All For Help Me .. ok ..This Code it Move Train but one errore small.. Where Correct Cods Thanks All .. :)
9
by: Ots | last post by:
I'm using SQL 2000, which is integrated with a VB.NET 2003 app. I have an Audit trigger that logs changes to tables. I want to apply this trigger to many different tables. It's the same trigger,...
1
by: michele.binetti | last post by:
Ciao a tutti, accedendo, per la prima volta, ad una pagina contenuta in un iframe non ho problemi. se riaccedo alla stessa, per la seconda volta, Internet Explorer mi da questa segnalazione:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.