Search found 135 matches: openadoconnection

Return to advanced search

Re: New FTDN April 2024 (FWH 24.04)

Marzo-Abril 2024 ================ * Nuevo: Soporte para Inteligencia Artificial local de LLM (modelos grandes de lenguaje) usando llama.cpp que ha sido incluido en FWH. Por favor, revisa samples\llm.prg. Para probarlo tienes que descargar tinyLlama.gguf desde aquí: https://huggingface.co/fivetech/ti...
by Antonio Linares
Wed May 01, 2024 7:04 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April 2024 (FWH 24.04)
Replies: 1
Views: 437

New FTDN April 2024 (FWH 24.04)

March-April 2024 ================ * New: Support for local AI LLM (large language models) using llama.cpp that has been included in FWH. Please review samples\llm.prg. In order to test it you have to download tinyLlama.gguf from here: https://huggingface.co/fivetech/tinyLlama/blob/main/tinyLlama.ggu...
by Antonio Linares
Wed Apr 24, 2024 7:14 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April 2024 (FWH 24.04)
Replies: 1
Views: 437

Error con FW_OpenRecordSet

Hola gente, me pueden decir que estoy haciendo mal: xdrive := curdrive() + ":\" + curdir()+"\esp" oCn := FW_OpenAdoConnection( { "FOXPRO", xdrive}, .T.) cSQL := "select top 10 Cliente, Fecha, licita, descrip, cantidad, devol from detlici where codigo = '00024' orde...
by jpcavagnaro
Sat Mar 09, 2024 11:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error con FW_OpenRecordSet
Replies: 1
Views: 113

Re: MySql vs Oracle

Si, es mas reciente que la mia
La que yo tengo la function Fw_OpenAdoConnection( cConnStr, lShowError, oErr ) acepta esto tres valores, cadena, mostrar o no error, y el error obtenido (para pasar como referencia)
Fijate en sources\function\adofuncs.prg si tiene otros parametros
by cmsoft
Thu Feb 01, 2024 8:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: MySql vs Oracle
Replies: 33
Views: 1751

Re: Error con FW_OpenRecordSet

Mr. Rao, sigue el mismo error Error description: Error ADODB.Connection/0 S_OK: EXECUTE Args: [ 1] = C INSERT INTO prueba (cliente,Numero) VALUES ( 0, 21) Stack Calls =========== Called from: => TOLEAUTO:EXECUTE( 0 ) Called from: abd4.prg => MAIN( 58 ) en el dbf prudbt inserta el registro sin ...
by jpcavagnaro
Wed Dec 20, 2023 12:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error con FW_OpenRecordSet
Replies: 2
Views: 306

Error con FW_OpenRecordSet

Hola, tengo este programa y no entiendo porque me da error el segundo insert: #include "FiveWin.ch" REQUEST HB_LANG_ES function Main() local oCn, oCnM, oRs, aStates LOCAL lShowError := .t. /* dbcreate( ".\prudbt", { { "id" , "n", 8, 0 }, ; { "Cliente &quo...
by jpcavagnaro
Tue Dec 19, 2023 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error con FW_OpenRecordSet
Replies: 2
Views: 306

Re: FW_OpenAdoConnection reconnect

Thank you Rao
by Maurizio
Thu Dec 14, 2023 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

Re: FW_OpenAdoConnection reconnect

"ServerAddress:port"

eg:
Code: Select all  Expand view
190.30.20.20:3306
by nageswaragunupudi
Thu Dec 14, 2023 10:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

Re: FW_OpenAdoConnection reconnect

Hello Rao
how to specify the port with FW_OpenAdoConnection() ?

Maurizio
by Maurizio
Thu Dec 14, 2023 7:53 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

Re: FW_OpenAdoConnection reconnect

Code: Select all  Expand view
oCn := FW_OpenAdoConnection( "MSSQL,"+xSOURCE+","+xDATABASE2+","+xUSERID+","+XPASSWORD, .T. )


We can also write like this:

Code: Select all  Expand view
oCn := FW_OpenAdoConnection( { "MSSQL", xSOURCE, xDATABASE2, xUSERID, XPASSWORD }, .T. )
by nageswaragunupudi
Thu Dec 14, 2023 4:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

Re: FW_OpenAdoConnection reconnect

Thank you Rao
by cdmmaui
Thu Dec 14, 2023 4:00 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

Re: FW_OpenAdoConnection reconnect

Please check the value of oCn:State. If the value is 0, the connection is closed. If the value >= 1 the connection is open and the actual value depends on the current activity. If oCn is closed we can try reconnect by oCn:Open() This is a sample code to check the connection status and try to reco...
by nageswaragunupudi
Thu Dec 14, 2023 3:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

FW_OpenAdoConnection reconnect

Hello Everyone, Is it possible to determine if FW_OpenAdoConnection is still alive before a FW_OpenRecordSet call and if it is NOT, is there a way to reestablish connection? Here is my sample code establishing connection. oCn := FW_OpenAdoConnection( "MSSQL,"+xSOURCE+","+xDATABAS...
by cdmmaui
Wed Dec 13, 2023 10:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FW_OpenAdoConnection reconnect
Replies: 6
Views: 548

Error al leer dbf con FW_OpenRecordSet

Hola gente, tengo una dbf generada con la estructura así: dbcreate( ".\auditado", { { "id" , "n", 8, 0 }, ; { "Cliente " , "n", 6, 0 }, ; { "Nro_Audit" , "n", 6, 0 }, ; { "Numero " , "n", 6, 0 }, ; { "Lide...
by jpcavagnaro
Thu Nov 02, 2023 7:27 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error al leer dbf con FW_OpenRecordSet
Replies: 2
Views: 227

Re: Sql Filter between two dates - ADO

If you are working with MSACCESS oRs:Filter := "LDATE >= #2023-01-01# AND HDATE < #2023-02-01#" If you are working with Microsoft SQL oRs:Filter := "LDATE >= '2023-01-01' AND HDATE < '2023-02-01'" Note: It is safer to use "HDATE < (date + 1 )" than "...
by nageswaragunupudi
Sun Jun 25, 2023 3:36 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Sql Filter between two dates - ADO
Replies: 3
Views: 351
Next

Return to advanced search