Página 1 de 1
Execute method in tadodatasource
Publicado: Mar Jun 28, 2011 4:52 pm
por Guest
Should Xailer's implementation of the the ADO Execute method, be able to
execute SELECTs?
For example,
This returns the expected data, in an arry:
aSQLReturnedRows := ::oSQLServerADODS:QueryArray( "SELECT * FROM
ETL.PEOPLE" )
, and this returns a true, but the dataset oSQLServerDataSet is nil:
xResult := ::oSQLServerADODS:Execute( "SELECT * FROM ETL.PEOPLE", , ,
@oSQLServerDataSet )
Yes, I understand that the Query() method is a better way to return
results of SELECTs, but I'm just trying to figure out how to use
Execute() in general.
Execute method in tadodatasource
Publicado: Mié Jun 29, 2011 10:55 pm
por DC
Does anyone have any information about this?
On 6/28/2011 10:52 AM, DC wrote:
> Should Xailer's implementation of the the ADO Execute method, be able to
> execute SELECTs?
>
> For example,
>
> This returns the expected data, in an arry:
>
> aSQLReturnedRows := ::oSQLServerADODS:QueryArray( "SELECT * FROM
> ETL.PEOPLE" )
>
>
> , and this returns a true, but the dataset oSQLServerDataSet is nil:
>
> xResult := ::oSQLServerADODS:Execute( "SELECT * FROM ETL.PEOPLE", , ,
> @oSQLServerDataSet )
>
>
>
> Yes, I understand that the Query() method is a better way to return
> results of SELECTs, but I'm just trying to figure out how to use
> Execute() in general.
>
>
Execute method in tadodatasource
Publicado: Jue Jun 30, 2011 9:57 am
por ignacio
Childers escribió el mar, 28 junio 2011 16:52Should Xailer's implementation of the the ADO Execute method, be able to
execute SELECTs?
For example,
This returns the expected data, in an arry:
aSQLReturnedRows := ::oSQLServerADODS:QueryArray( "SELECT * FROM
ETL.PEOPLE" )
, and this returns a true, but the dataset oSQLServerDataSet is nil:
xResult := ::oSQLServerADODS:Execute( "SELECT * FROM ETL.PEOPLE", , ,
@oSQLServerDataSet )
Yes, I understand that the Query() method is a better way to return
results of SELECTs, but I'm just trying to figure out how to use
Execute() in general.
The third parameter nOptions should be set to adCmdText (1) in order to let ADO connection return a record set. BTW, It will be the default value on next release.
Regards,
Execute method in tadodatasource
Publicado: Jue Jun 30, 2011 6:39 pm
por DC
Yep, that's it, thanks Ignacio.
On 6/30/2011 3:57 AM, Ignacio Ortiz de Zúñiga wrote:
> Childers escribió el mar, 28 junio 2011 16:52
>> Should Xailer's implementation of the the ADO Execute
>> method, be able to execute SELECTs?
>>
>> For example,
>>
>> This returns the expected data, in an arry:
>>
>> aSQLReturnedRows := ::oSQLServerADODS:QueryArray(
>> "SELECT * FROM ETL.PEOPLE" )
>>
>>
>> , and this returns a true, but the dataset
>> oSQLServerDataSet is nil:
>>
>> xResult := ::oSQLServerADODS:Execute( "SELECT * FROM
>> ETL.PEOPLE", , , @oSQLServerDataSet )
>>
>>
>>
>> Yes, I understand that the Query() method is a better
>> way to return results of SELECTs, but I'm just trying to figure out
>> how to use Execute() in general.
>
>
> The third parameter nOptions should be set to adCmdText (1)
> in order to let ADO connection return a record set. BTW, It
> will be the default value on next release.
>
> Regards,