Using sp_run_xml_proc inside transaction
From: Mark Wilden (mark_at_mwilden.com)
Date: 11/17/04
- Next message: Michael C: "Re: RADiest Client for SQL Server"
- Previous message: MarkS: "Re: Efficient Trigger Placement"
- Next in thread: Ken Henderson: "Re: Using sp_run_xml_proc inside transaction"
- Reply: Ken Henderson: "Re: Using sp_run_xml_proc inside transaction"
- Maybe reply: Mark Wilden: "Re: Using sp_run_xml_proc inside transaction"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Nov 2004 15:14:36 -0800
I'm trying to use Ken Henderson's sp_run_xml_proc to get the XML results of
a stored procedure. (If you're not familiar with it and want to be, google.)
The sproc creates a SQL Server COM object basically to provide client-side
capabilities to T-SQL.
My problem is in trying to call this procedure inside a transaction, and I
have a feeling that this isn't possible. I'm trying to unit test some code,
wherein I start a transaction, call a few sprocs, call another sproc via
sp_run_xml_proc to get some XML to see if things worked, then rollback the
transaction to set the test bed back to a known state.
However, it seems that this creates a block, whereby the transaction creates
locks, then waits on the sp_run_xml_proc's process to complete, which it
can't because it's waiting for the transaction locks to clear. (Obviously,
I'm not an expert at this stuff!!)
Can I just forget about accessing database objects both from within a trx
and from another connection that the trx waits on? (Think I just answered my
own question!). Given that, is there another way to write tests so as to
interrogate the results of sprocs that return XML?
- Next message: Michael C: "Re: RADiest Client for SQL Server"
- Previous message: MarkS: "Re: Efficient Trigger Placement"
- Next in thread: Ken Henderson: "Re: Using sp_run_xml_proc inside transaction"
- Reply: Ken Henderson: "Re: Using sp_run_xml_proc inside transaction"
- Maybe reply: Mark Wilden: "Re: Using sp_run_xml_proc inside transaction"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|