Search found 19 matches: commandtext

Searched query: commandtext

by jacgsoft
Mon Oct 03, 2022 9:56 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Procedimiento almacenado adolib
Replies: 1
Views: 509

Re: Procedimiento almacenado adolib

... Fe1_,_Fe2_)
Local _oCmd_,_oPar_

_oCmd_:=TOleAuto():New("ADODB.Command")
_oCmd_:ActiveConnection:=_Cnx_
_oCmd_:CommandType:=4
_oCmd_:CommandText:="dbo.PA_get_detalle"
_oCmd_:CommandTimeout:=0

_oPar_:=_oCmd_:CreateParameter("Fecini",3,1,8,_Fe1_)
_oCmd_:Parameters:Append(_oPar ...
by jacgsoft
Wed Jul 31, 2019 9:35 pm
Forum: FiveWin para Harbour/xHarbour
Topic: invocar funciones sql con ado
Replies: 4
Views: 1004

Re: invocar funciones sql con ado

... Connect_sql(@_Cnx_,G_sql_u,G_sql_c)

_oCmd_:=TOleAuto():New("ADODB.Command")
_oCmd_:ActiveConnection:=_Cnx_
_oCmd_:CommandType:=4
_oCmd_:CommandText:="CalcSaldo"
_oCmd_:CommandTimeout:=0

_oPar_:=_oCmd_:CreateParameter("Codigo",129,1,8,_Cod_)
_oCmd_:Parameters:Append(_oPar_)
_oPar ...
by jbrita
Tue Apr 28, 2015 3:46 pm
Forum: FiveWin para Harbour/xHarbour
Topic: HACER MAS RAPIDO UN PROCESO
Replies: 13
Views: 3336

HACER MAS RAPIDO UN PROCESO

... cSql,cExi_Det
Local totini,totent,totsal
Local oCmd,oRsCmd
Local nCount:=0
nActual := 0
nTotal := 0


oCmd:=TOleAuto():New("ADODB.Command")
oCmd:CommandText :="select count(*) from exi_suc WHERE sto_ok='"+"1'"
oCmd:CommandType :=adCmdText
oCmd:ActiveConnection:=oConexion
oRsCmd:=oCmd:Execute()
nCount ...
by lafug
Tue Apr 29, 2014 11:37 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con ADO
Replies: 2
Views: 712

Ayuda con ADO

... ALLTRIM(cHost)+";Port=3306;Database="+ALLTRIM(cDataBase)+";User="+ALLTRIM(cUser)+"; Password="+ALLTRIM(cPassword)+";Option=3;")
oComando:ActiveConnection(oConexionAdo)
oComando:CommandText := "SELECT * from AFP"
oRecordSet := oComando:Execute() <------- Aqui me da el error
? oRecordSet
return nil
by softruz
Mon Jan 14, 2013 11:53 am
Forum: FiveWin para Harbour/xHarbour
Topic: FWh SQLITE
Replies: 3
Views: 1456

Re: FWh SQLITE

... FIN ERROR


#define adSchemaColumns 4
#define adCmdUnspecified -1 // Does not specify the command type argument.
#define adCmdText 1 //Evaluates CommandText as a textual definition of a command or stored procedure call.
#define adCmdTable 2 //Evaluates CommandText as a table name whose columns are ...
by Adolfo
Wed Dec 09, 2009 9:31 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Mysql & Busqueda Incremental xBrowse
Replies: 12
Views: 4271

Re: Mysql & Busqueda Incremental xBrowse

... CODIGO) }
.....


Function RefrescaStock(codigobusca)
Local nStock:=0
Local oCmd
Local oRsCmd

oCmd:=TOleAuto():New("ADODB.Command")
oCmd:CommandText := "select STOCK from productos where CODIGO ='" + codigoBusca + "' limit 1"
oCmd:CommandType := adCmdText
oCmd:ActiveConnection:=oCn ...
by Laurel
Thu Jul 02, 2009 7:23 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Creación de tablas MYSQL
Replies: 4
Views: 1214

Re: Creación de tablas MYSQL

... por sus comentarios que me ayudaron a solucionarlo me faltaba indicarle al objeto que le estaba enviando un texto... quedo asi:

oComando:CommandText:= "DROP TABLE IF EXISTS `MITABLA` "

TRY
oApp := oComando:Execute()
CATCH oErr
MsgInfo("No se puede borrar",oErr:Description )
END TRY


Y ...
by nageswaragunupudi
Tue May 05, 2009 1:40 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem in ADODB.Command
Replies: 20
Views: 3862

Re: Problem in ADODB.Command

your procedure name is yy.`Sp_Job1
why a space and single quote after yy. ?
if the name is yy.Sp_Job1, then try assigning commandtext as "yy.Sp_Job1"
Make sure your login has rights to execute it.

Can you try creating another procedure as dbo.testproc ? then you can use 'testproc' as command text
by nageswaragunupudi
Tue May 05, 2009 10:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: Problem in ADODB.Command
Replies: 20
Views: 3862

Re: Problem in ADODB.Command

TRY
oCommand:=CreateObject("ADODB.Command")
oCommand:ActiveConnection:=oCon
oCommand:CommandType:=adCmdStoredProc
oCommand:CommandText:="Sp_Job1"
CATCH
.. Show ,,,
END
May be the command object is not initialized properly
by mchumpitazv
Tue Apr 28, 2009 11:24 pm
Forum: FiveWin para Harbour/xHarbour
Topic: !Ayuda! recordset.BookMark
Replies: 0
Views: 348

!Ayuda! recordset.BookMark

... User ID=Martin;Initial Catalog=APPLOCAL;Data Source=PERLIM_SYS_LCH")
oComando:ActiveConnection(oConexionAdo)
oComando:CommandType:= 4
oComando:CommandText := "sp_Menu"
oRs := TOleAuto():New( "ADODB.Recordset" )
oRs:CursorType := adOpenKeyset
oRs:CursorLocation := adUseClient
oRs:LockType ...
by mchumpitazv
Tue Apr 28, 2009 5:12 pm
Forum: FiveWin para Harbour/xHarbour
Topic: error de ADO consultando XBrowse
Replies: 5
Views: 1392

Re: error de ADO consultando XBrowse

... User ID=Martin;Initial Catalog=APPLOCAL;Data Source=PERLIM_SYS_LCH")
oComando:ActiveConnection(oConexionAdo)
oComando:CommandType:= 4
oComando:CommandText := "sp_Menu"
oRs := TOleAuto():New( "ADODB.Recordset" )
oRs:CursorType := adOpenKeyset
oRs:CursorLocation := adUseClient
oRs:LockType ...
by mchumpitazv
Mon Apr 27, 2009 10:55 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con error ADO:BookMark
Replies: 2
Views: 581

Ayuda con error ADO:BookMark

... User ID=Martin;Initial Catalog=APPLOCAL;Data Source=PERLIM_SYS_LCH")
oComando:ActiveConnection(oConexionAdo)
oComando:CommandType:= 4
oComando:CommandText := "sp_Menu"
oRs := TOleAuto():New( "ADODB.Recordset" )
oRs:CursorType := adOpenKeyset
oRs:CursorLocation := adUseClient
oRs:LockType ...
by mchumpitazv
Mon Apr 27, 2009 2:47 pm
Forum: FiveWin para Harbour/xHarbour
Topic: !AYUDA!..Stored procedures SQL 2000 con FWH 8.10
Replies: 0
Views: 382

!AYUDA!..Stored procedures SQL 2000 con FWH 8.10

... adUseClient
oRs:LockType := adLockOptimistic
oCmd:= TOleAuto():New( "ADODB.Command" )
oCmd:CommandType := adCmdStoredProc
oCmd:CommandText:= "sp_Menu"
oCmd:Activeconnection:=oConnection
oRs:Open(oCmd:Execute())
MsgAlert(oRs:RecordCount())

y el resultado que me muestra la ultima ...
by mchumpitazv
Sun Apr 26, 2009 3:47 am
Forum: FiveWin para Harbour/xHarbour
Topic: ¿Asi se trabaja con Procedimientos Almacedos SQL-Server?
Replies: 0
Views: 596

¿Asi se trabaja con Procedimientos Almacedos SQL-Server?

... adUseClient
oRs:LockType := adLockOptimistic
oCmd:= TOleAuto():New( "ADODB.Command" )
oCmd:CommandType := adCmdStoredProc
oCmd:CommandText:= "sp_Menu"
oCmd:Activeconnection:=oConnection
oRs:Open(oCmd:Execute())
MsgAlert(oRs:RecordCount())

y el resultado que me muestra la ultima ...
by Antonio Linares
Wed Aug 27, 2008 7:29 am
Forum: Utilities / Utilidades
Topic: Boris Pekic - NG's archive
Replies: 27
Views: 103924

ADO

... use the Connection object, which returns a recordset with a read-only forward-only cursor. The syntax would be:

Set rsObj = connObj.Execute (CommandText,RecordsEffected,Options)

CommandText is the SQL statement you send to the database, RecordsEffected returns the value of how many record(s ...