Re: TAdoDataSet - "CommandText does not return a result set" error
- From: "Keith G Hicks" <krh@xxxxxxxxxxx>
- Date: Thu, 9 Jun 2005 01:21:10 -0400
Yes it returns a record set. It's the data source of a report.
I did what you suggested and used refresh and not clear. Also needed to do
"ParamByName" rather than "CreateParameter" and all is good so far.
Keith
"Brian Bushay TeamB" <BBushay@xxxxxxxxx> wrote in message
news:9fbfa1tucr6847pfgq9a7ajhqfkmh0r4dm@xxxxxxxxxx
>Everything runs fine until the last line where I get an error "dstRptTemp:
>CommandText does not return a result set."
>
>Now this does work if I set it all up manually in the properties. If I set
>up the paraemters and set Active = true I can view the report from the
>design environment. So I know my stored procedure is fine. The only
>difference I can see is that there is another parameter "@RETURN_VALUE"
that
>is automatically put in when I do it manually. I have no need for this and
>do not have one set up in the stored procedure itself.
>
>Any ideas as to what would cause this error?
Does you stored procedure return a recordset? If not you should be using
TadoCommand.
Otherwise try just
Adodataset1.Parameters.refresh;
instead of clearing and creating your parameters
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: TAdoDataSet - "CommandText does not return a result set" error
- From: Brian Bushay TeamB
- Re: TAdoDataSet - "CommandText does not return a result set" error
- References:
- TAdoDataSet - "CommandText does not return a result set" error
- From: Keith G Hicks
- Re: TAdoDataSet - "CommandText does not return a result set" error
- From: Brian Bushay TeamB
- TAdoDataSet - "CommandText does not return a result set" error
- Prev by Date: creating TadoDatsets variables dynamically
- Next by Date: Re: creating TadoDatsets variables dynamically
- Previous by thread: Re: TAdoDataSet - "CommandText does not return a result set" error
- Next by thread: Re: TAdoDataSet - "CommandText does not return a result set" error
- Index(es):
Relevant Pages
|