Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Brian Bushay TeamB <BBushay@xxxxxxxxx>
- Date: Fri, 29 Apr 2005 21:13:36 -0500
>When I tried using the parameter.refresh as you had suggested so that I
>didn't have to createparameters, just assign values.. all seemed well until
>I call 'open' and I got an exception on sqloledb.dll... any suggestions
>there?
It works for me.
Try it like this. This example uses the Northwind sample database with SQL
server
with ADODataSet1 do begin
close;
CommandText := 'Sales by Year';
Parameters.refresh;
Parameters.ParamByName('@Beginning_Date').Value := strToDateTime('01/01/1996');
Parameters.ParamByName('@ending_date').Value := strToDateTime('01/01/2004');
open;
end;
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- References:
- stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Betsy
- Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Betsy
- Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Ron
- Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Betsy
- Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Brian Bushay TeamB
- Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- From: Betsy
- stored proc RETURN_VALUE.... there it is, I want to use it !!!
- Prev by Date: trying to get a friendly error message from a SQL 2000 constraint
- Next by Date: Re: Emptying Table in ADO
- Previous by thread: Re: stored proc RETURN_VALUE.... there it is, I want to use it !!!
- Next by thread: MySQL, ADO and ODBC
- Index(es):
Relevant Pages
|