Re: ADO
- From: "Dennis Landi" <nada@xxxxxxxx>
- Date: Mon, 4 Sep 2006 13:43:12 +0530
"Jonathan Neve[Microtec]" <jonathan@xxxxxxxxxxx> wrote in message
news:xn0eqthec4bm64003jmn_microtec@xxxxxxxxxxxxxxxxxxxxx
Dennis Landi wrote:
"Jonathan Neve[Microtec]" <jonathan@xxxxxxxxxxx> wrote in message
This SQL runs fine from an SQL tool, but not in my application.
Does it perhaps not accept scripts, but only single SQL statements?
If my memory serves, that's correct. Put the Transact SQL in a
function or stored proc and then call that from a normal query i.e.
"call MyStoredProc()"
Well, actually, the bit of SQL I was trying to execute was designed to
do precisely that: call a stored procedure and retreive values from it.
So if I make another stored procedure to call the first one, I will
have the same problems... Is there really no one-line way, with MS SQL
Server, of returning data from a stored procedure?
I suppose I'm going to have to make three separate queries, one for
each statement... What a daft syntax! :)
Get the Stored Proc to run, stand-alone in you MS SQL Editor.
I.E. does "call MyStoredProc()" work in your editor?
If so, then why not use a tADOStoredProc to call it directly?
I would have to go back to look at my old ADO code to help you further. I
think there is an ADO forum here isn't there? Don't remember.
-d
.
- Follow-Ups:
- Re: ADO
- From: Jonathan Neve[Microtec]
- Re: ADO
- References:
- Prev by Date: Re: Recommendations for reliable web hosting and email service
- Next by Date: Re: Recommendations for reliable web hosting and email service
- Previous by thread: Re: ADO
- Next by thread: Re: ADO
- Index(es):
Relevant Pages
|