Lookback connection inside an Extended Proc using ADO
From: Tom Olson (tomo_at_tomo.com)
Date: 10/23/04
- Next message: Hans: "Re: Reading large Foxpro tables( with ODBC?)????"
- Previous message: Brian Bushay TeamB: "Re: Finding Required Fields in a dataset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 23 Oct 2004 05:34:22 -0500
I am trying to do a loopback connection to Sql Server from inside an
Extended Stored Procedure that uses the TAdo... components to make the
connection. When the data set is retrieved the SQL looks like this:
exec master.dbo.sp_bindsession %s
select *
from [test_table]
where [id] = 1
Note '%s' is replaced by the actual bind token received from the client. I
have also tried the srv_getbindtoken method and both yield the same result.
Unfortunately if a bound session is requested any changes made to the
dataset, inside the call to the extended proc are saved even if a rollback
is executed after the call to the extended proc.
Has anyone had any luck with this?
Thanks,
Tom
- Next message: Hans: "Re: Reading large Foxpro tables( with ODBC?)????"
- Previous message: Brian Bushay TeamB: "Re: Finding Required Fields in a dataset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|