![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
[posted and mailed, per favore respondere in news] Andrea Canegrati (acanegrati (AT) enter (DOT) 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, sommar (AT) algonet (DOT) se Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp |
![]() |
| Thread Tools | |
| Display Modes | |
| |