topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
ADO update() error | wzaf...
did you verify if the SELECT return some value, i means
the select is not empty... |
ADO update() error | Daniel :
Correct ! the select is not empty....
Wzaf |
ADO update() error | kzaf..
test this samples... work fine to me...
download test.mdb
[url:35zsehuw]http://www.sitasoft.net/fivewin/samples/testado.rar[/url:35zsehuw]
[code=fw:35zsehuw]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff00... |
ADO update() error | Daniel,
your code works fine in my environment.
I tried also to recompile and link , and it works!
The only difference is that I use Mysql with "MySQL ODBC 5.1 Driver" and connection string is :
[i:1y25b885]cConnectionString := "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=mydb; User=myuser;Password... |
ADO update() error | Try this,
ConnectionString := "Driver={MySQL ODBC 5.1 Driver};Server=127.0.0.1;Port=3306;Database=mydb;User=myuser;Password=mypassw;Option=3;"
The below given code to update a recordset is working fine for me
[code=fw:2ris8h0j]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">T... |
ADO update() error | Tank you Anser
I tried your code , but now when I try the following :
[code=fw:1ftzl9x1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />RecSet:<span style="color: #000000;">Source</span> :=cSQL<br />oRecSet:<span style="color: #000000;">ActiveConnection</span><span style="color: #000000;">(</span>o... |
ADO update() error | wzaf...
try change to this line
[code=fw:24tacsxr]<div class="fw" id="{CB}" style="font-family: monospace;">oRecordSet:<span style="color: #000000;">Open</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"SELECT iddoc, filename FROM testi WHERE iddoc = 217 "</span> , oConnection <span st... |
ADO update() error | Tank you very mutch, Daniel.
Now the update works!
It seems that ADO wants in RecordSet the primary key , otherwise it fails when update the DB.
Not only, but when I tried to update (and getting errors), the table where [b:1fpthbet]modified [/b:1fpthbet]in more than one row, not only the row holding the '217' key... |
ADO with DBF (accentuation) | hi guys!
I'm use select in a table DBF with ADO, and the accentuation in RecordSet is wrong. Anyone know how to fix?
[code=fw:uwmg8qnm]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> U_Teste<span style="color: #000000;">(</span><span style="color: #000... |
ADO with DBF (accentuation) | I found!
Is just change de register in windows: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\xBase, DataCodePage=OEM to DataCodePage=ANSI
Thanks |
ADO with DBF (accentuation) | Great!!! Thanks for sharing it. |
ADO with DBF (accentuation) | I have the same problem with MS SQL .
It is fine with xharbour and Fivewin 9.11 but with Harbour and Fivewin 2012 not .
What is the register key for Ms SQL .
Thanks. |
ADO with DBF (accentuation) | Jack, look in the provider string connection, something like charset=ISOXXXX.
[quote="Jack":r9wa4zwj]I have the same problem with MS SQL .
It is fine with xharbour and Fivewin 9.11 but with Harbour and Fivewin 2012 not .
What is the register key for Ms SQL .
Thanks.[/quote:r9wa4zwj] |
ADO with Oracle | Hi All...
can someone help me....? <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( -->
I try to migration database file from a DBF to Oracle database file.
but i cannot execute query : Insert and Update.
my code like this:
#include "fivewin.ch"
static oRs, oErr
func main
local... |
ADO with Oracle | [code=fw:qguwkxlf]<div class="fw" id="{CB}" style="font-family: monospace;">oCn := FW_OpenAdoConnection<span style="color: #000000;">(</span> cConnStr <span style="color: #000000;">)</span><br />cSql := <span style="color: #ff0000;">"INSERT INTO MyTable (KODE,KET) VALUE( '"</span> + txtKode + <span style="color... |
ADO with Oracle | Just curious .. I was never a fan or used sucessfully the oledb provider MSDAORA.1 <!-- s:| --><img src="{SMILIES_PATH}/icon_neutral.gif" alt=":|" title="Neutral" /><!-- s:| --> With Oracle, I found the best success using the Oracle OLEDB provider directly from Oracle and since I had to use a 3rd party Oledb client (... |
ADO with Oracle | [quote:2iz1walg]Oracle OLEDB provider[/quote:2iz1walg]
Microsofts Oracle OLEDB provider works better than even the one provided by Oracle. |
ADO with Oracle | Halo... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
I try sample code from mr.nageswaragunupudi like :
oCn:Execute( cSql )
result : Error description: Error BASE/1004 Class: 'NIL' has no exported method: EXECUTE
Why...? <!-- s:( --><img src="{SMILIES_PATH}... |
ADO with Oracle | Try the connection either way with MSDAORA.1 .. it should work..
[code=fw:1nd8g6fz]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cConnStr := <span style="color: #ff0000;">'Provider=MSDAORA.1;Data Source=dblocal;User ID=mulyadi;Password=1234'</span><br /><br />oCn := CREATEOBJECT<span style="color: #0... |
ADO with Oracle | To: Mr Rick Lipkin,
Sorry with my English... <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
My complete file like this:
table: MYTABLE in Mulyadi schema
--> now i try connect with 'SYSTEM' user previlage 'SYSDBA'
tnsnames.ora
------------
DBLOCAL =
(DESCRIPTION =
... |
ADO with Oracle | Since you made it through the initial connection without it breaking .. I think your .ora files are correct.
Try this Sql Statement ( added s to the word Value ) and added a space after VALUES
cSql := "INSERT INTO mulyadi.MyTable (KODE,KET) VALUES ( '" + txtKode + "','" + txtKet + "')"
Sample Insert statement
<!-- m... |
ADO with Oracle | Oke mr, my struc table is so simple, : )
KODE VARCHAR2 (20)
KET VARCHAR2 (50)
thanks for answer my question, to next time i try again.. <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) -->
if found any idea for solution or other trick, can your give me a simple code to the c... |
ADO with Oracle | Mulyadi
Try your insert code with this statement:
[code=fw:2igvl4px]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSql := <span style="color: #ff0000;">"INSERT INTO mulyadi.MyTable (KODE,KET) VALUES ( '"</span> + txtKode + <span style="color: #ff0000;">"','"</span> + txtKet + <span style="color: #ff... |
ADO with Oracle | Mr Rick Lipkin.
its works fine... <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
to now, I understand with the case statement at:
Original me : ...VALUES ('" // result --> No action
your solution : ...VALUES ( '" // result --> working fine
Thanks for... |
ADO with Oracle | Glad it is working ..
Rick |
ADO y ""DATETIME"" como obtener SOLUCIONADO | Que tal a todos, buen dia
Estoy trabajando con una MDB de ACCES de un reloj checador
y tienes una tabla de checadas
Esta tabla tiene un campo tipo DATETIME
quiero obtener este campo para saber fecha y hora
peroooooooooooooo
sale en blanco
La conexion a la MDB ya lo tengo
LA creacion del Recor ya esta , pero al ver lo q... |
ADO y ""DATETIME"" como obtener SOLUCIONADO | Intenta así para que puedas mirar si la consulta trae información
[code=fw:143of9u2]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GetRecSet<span style="color: #000000;">(</span>cQuery<span style="color: #000... |
ADO y ""DATETIME"" como obtener SOLUCIONADO | Que tal Leandro
Pues resulta que ha de ser la version de FWH
por que no me funciona FW_OPENRECORDSET
me marca error al compilar. |
ADO y ""DATETIME"" como obtener SOLUCIONADO | Leandro.
Al ver si trae datos el recordset
lo marco asi : oRs:RecordCount() -> 527,456
?oRs:Fields( "CHECKTIME" ):Value -> VACIO
?Dtoc(oRs:Fields( "CHECKTIME" ):Value) -> 10/02/2021 == Aqui solo me faltaría ver la hora pero no se como
jajajajajaja es una locura, |
ADO y ""DATETIME"" como obtener SOLUCIONADO | Asi :
[code=fw:1bxqfiir]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> uData := oRs:<span style="color: #000000;">Fields</span><span style="color: #000000;">(</span> <span style="color: #ff0000;">"CHECKTIME"</span> <span style="color: #000000;">)</span>:<span style="color: #000000;">Val... |
ADO y ""DATETIME"" como obtener SOLUCIONADO | Javier:
Muchas gracias.
Saludos |
ADO y Access apertura de bases de datos | Hola amigos...
El tema de consulta es este, tengo una aplicacion con una base de datos de access que recibe actualizaciones permanentes via FTP desde distintos lugares.
Lo que hago actualmente es abrir la comunicacion con la base con oCon:= tOleAuto():new('ADODB.Connection') cada vez que alguien envia datos nuevos y ce... |
ADO y Access apertura de bases de datos | Hola,
No trabajo con ADO, pero se me ocurre que en vez de cerrar la conexion, podrias "refrescar" el objeto cada cierto tiempo con un TIMER
oRs:Source:Refresh() o algo asi,,,
Salu2 |
ADO y Access apertura de bases de datos | Estimado rterraz
No he trabajado con ftp, y tampoco tengo claro si usas rcordsets . Aunque según veo usas ftp para subir archivos. En mi caso uso adostream para subir cualquier archivo binario al servidor MySql.
De todas formas lo que si es seguro que puedes mantener abierta la conexión durante el uso de la aplicació... |
ADO y Access apertura de bases de datos | Hola Marcelo, gracias por tu respuesta
yo lo que hago es subir a un servidor via ftp desde distintos lugares un archivo XML que se procesa en el servidor.
Hace una cantidad importante de verificaciones y dependiendo del resultado de las mismas va llenando diferentes tablas de una base de access a la que accedo desde m... |
ADO y Access apertura de bases de datos | Raúl,
Puedes tener abierta tu base todo el tiempo en que tu aplicativo está en ejecución.
Cargas tus datos con RecordSet al inicio. No hace falta que lo cierres. Simplemente, con un Timer, cada cierto tiempo haces un oRecordSet:Requery() y a continuación un oRecordSet:Refresh().
Saludos,
Carlos Gallego |
ADO y Access apertura de bases de datos | Raúl,
En el proceso que sea invocado por el Timer, no olvides, antes del oRecordSet:Requery(), verificar que no se haya caído la conexión a tu servidor.
Carlos Gallego |
ADO y FiveWin | Hola amigos
Donde puedo encontrar la manera de usar ADO con FiveWin Harbour.
Y si esta tecnologia es compatible con FiveLinux.
Gracias. |
ADO y FiveWin | Arturo,
En <!-- w --><a class="postlink" href="http://www.capelblog.com">www.capelblog.com</a><!-- w --> hay dos artículos que hablan sobre ADO. Tambien vas a encontrar dos clases básicas para acceso a bases de datos con ADO y tOleauto. En linux creo que va a ser complicado que funcionen. ADO solo funciona bajo Win... |
ADO y FiveWin | Gracias por la informacion, entonces que tecnologia puedo usar para accesar las Bases de Datos tanto en Guindows y Linux, para no tener que reprogramar al pasar de un SO al otro. |
ADO y XBROWSE (Solucionado) | Un saludo a todosEstoy tratando de usar el recordset con xbrowse. Me funciona muy bien con el wbrowse de Hernán, pero siempre hay algunas cosillas que éste no tiene implentado lo que el xbrose si. Me he guiado con los ejemplos que aparecen en el foro, pero tengo el siguiente problema:Yo uso harbour, pero uno de los eje... |
ADO y XBROWSE (Solucionado) | Marcelo,Harbour ya soporta WITH OBJECT. Solo tienes que actualizar tu versión de Harbour desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/harbour.exe">www.fivetechsoft.com/files/harbour.exe</a><!-- w -->>Y por último, por qué me sale "ERROR BASE/1005 Class: NIL has no exported property:OCLIEN... |
ADO y XBROWSE (Solucionado) | Gracias Antonio.He bajado el archivo indicado. Renombré la carpeta anterior de harbour y he instalado la nueva versión. Al compilar la aplicación me ha pedido una serie de librerías que no traía la nueva versión; a lo que he ido copiando las de la versión anterior en mi nueva carpeta LIB. Pero finalmente me da otros er... |
ADO y XBROWSE (Solucionado) | Gracias Antonio por la buena voluntad. Pero no he podido generar mi aplicación con la nueva versión de Harbour que me he bajado. Por lo tanto este punto queda pendiente y lo postearé bajo otro título.Por lo tanto he tratado de resolverlo con lo que tengo, y ya lo he logrado. Ahora sí puedo navegar por el recordset usan... |
ADO y XBROWSE (Solucionado) | Marcelo, creo no es necesario que uses una variable por columna oCol1... oCol10.puedes usar una sola oCol, ya que oCol := oBrw:AddCol()inicias un objeto columna y lo inserta al browse, luego con las siguientes instrucciones lo modificas, hasta encontrarse con el siguienteoCol := oBrw:AddCol() |
ADO y XBROWSE (Solucionado) | Gracias Carlos por tu interésLo que dices es verdad, ya me di cuenta, y es así como está resuelto. El problema era que no generaba un codeblock correcto al momento de asignar a bStrdata. Y como dije este post está solucionado.Un saludo Marcelo Jingo |
ADO y la funcion Date2txt() | Alex:
Yo uso una función propia llamada Date2Txt() por lo que deduzco que estas tomando los ejemplos
que hay en mi blog, <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> es así?
Saludos |
ADO y la funcion Date2txt() | estoy haciendo pruebas con ADO y mysql y me falta esta funcion, alguien sabe en que libreria esta?
gracias
alejandro |
ADO y la funcion Date2txt() | jajaja pues si, aca <!-- m --><a class="postlink" href="http://sqlcmd.blogspot.com/2008/10/creando-un-reporte.html">http://sqlcmd.blogspot.com/2008/10/crea ... porte.html</a><!-- m -->
no pense me leyeras aca, de hecho te escribe al blog tambien, jejeje
bueno pense seria de alguna libreria extraña de harbour o mysql ... |
ADO's question and xbrowse | Friends of the forum have good day. Here I being a nuisance again.
1-> ADO, can I look for a locate inside an already created recorset? Slightly this way like to do a DbSeek (). Not if s could.
2-XBROWSE, Since I can validate the apprehension in a xbrowse to the moment to rig(orchestrate) in order that it works as... |
ADO- Access no refresca adecuadamente el Recordset | Hola,
Estoy utilizando una base de datos Access 2003 a través de ADO en un único PC.
A veces, cuando agrego los registros el Recordset no se actualiza, a pesar de la llamada a oRs:Requery(), incluso dos veces. Tengo que esperar 3-4 segundos y después de ese tiempo se ven los cambios.
Yo sólo experimento este comport... |
ADO- Access no refresca adecuadamente el Recordset | <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26628&p=147295#p147295">viewtopic.php?f=3&t=26628&p=147295#p147295</a><!-- l --> |
ADO- Access no refresca adecuadamente el Recordset | He preparado un ejemplo:
<!-- m --><a class="postlink" href="http://demo.ovh.es/en/9beda86cc9165fb7bae4af1cd65c05f9/">http://demo.ovh.es/en/9beda86cc9165fb7bae4af1cd65c05f9/</a><!-- m -->
[img:1kn117fs]http://i44.tinypic.com/2je4j14.png[/img:1kn117fs]
Muchas gracias. |
ADO- Access no refresca adecuadamente el Recordset | Lucas:
Intenta con
[code=fw:2vkp5q1y]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRsFol:<span style="color: #000000;">CursorType</span> := adOpenDynamic<br /> </div>[/code:2vkp5q1y]
Échale una mirada a este link
<!-- m --><a class="postlink" href="http://www.w3schools.com/ado/ado_ref_recordset... |
ADO-filter question | Hi,
Does anyone know how to put a filter on a recordset with a compare between 2 fields?
Those 2 filters are working fine
[code=fw:16i9m640]<div class="fw" id="{CB}" style="font-family: monospace;">oRs1:<span style="color: #000000;">filter</span>:=<span style="color: #ff0000;">"minstock < 0"</span></div>[/code:16i9m6... |
ADO-filter question | ADO filter method allows only one column name in the filter expression, as far as I know.
EMG |
ADO-filter question | Enrico,
Thanks for the information. That's what I found out after searching for ADO-filters.
I guess I have to create a new recordset with a filter-condition. |
ADO-filter question | Marc
Here is a sample of a common multi-field filter I use...
Rick Lipkin
[code=fw:1e5kiovf]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cFilter1 := <span style="color: #ff0000;">"[iid] like '"</span>+cStockno1+<span style="color: #ff0000;">"%' and [itype] like '"</span>+cType2+<span style="color:... |
ADO-filter question | Rick,
I also use filters with multiple fields. But you can only compare a field with a fixed value and not with another field.
You can use [code=fw:2vmi2p2u]<div class="fw" id="{CB}" style="font-family: monospace;">oRs:<span style="color: #000000;">Filter</span> := <span style="color: #ff0000;">"Field1 = 0 AND Field2... |
ADO: ACTUALIZAR CAMPO DE SELECT DE 02 TABLAS MSSQL | Amigos:
Tengo el siguiente problema, requiero actualizar un campo de recordset, el cual se construyo en base a un query, luego de actualizar me arroja error
cSql:="SELECT D.*,DP.NOMBRE AS DPTO, PR.NOMBRE AS PROV,DI.NOMBRE AS DIST "+;
"FROM DIRECCION D "+;
" LEFT JOIN DEPARTAMENTO DP ON D.CODDEP=DP.CODDEP "+;
... |
ADO: ACTUALIZAR CAMPO DE SELECT DE 02 TABLAS MSSQL | Hola:
No has indicado el error.
Asimismo, esta línea debería usar la función FW_ValToSQL():
"WHERE CODSOC = '"+ oRs:Fields("CODSOC"):Value +"' "+;
que debería ser:
[code=fw:h3tgblvt]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #ff0000;">"WHERE CODSOC = "</span> + FW_ValToSQL<span s... |
ADO: ACTUALIZAR CAMPO DE SELECT DE 02 TABLAS MSSQL | Moises:
El error que se presenta es el siguiente:
[b:1uhvfj3i]NO IMPLEMENTADO[/b:1uhvfj3i]
[b:1uhvfj3i]Source:[/b:1uhvfj3i] Provider
[b:1uhvfj3i]NativeError:[/b:1uhvfj3i] -2147467263
[b:1uhvfj3i]Error Source:[/b:1uhvfj3i] Provider
[b:1uhvfj3i]Sql State:[/b:1uhvfj3i]
El problema radica en que la construccion del quer... |
ADO: ACTUALIZAR CAMPO DE SELECT DE 02 TABLAS MSSQL | Ángel Miguel:
Te voy a contar mi experiencia con SELECT que usan LEFT JOIN, ya sea de dos o mas tablas,
mi problema es que cuando elimino el registro de una de las dos tablas con oRs:Delete se
eliminan los registros de ambas tablas, por favor prueba y ya nos contaras.
Tal ves por ahí va tu problema, mi solución?, no ... |
ADO: ACTUALIZAR CAMPO DE SELECT DE 02 TABLAS MSSQL | Hola, mi experiencia con MySQL es que en un Select combinado con Join no se puede actualizar un campo, no lo permite el conector ODBC.
Mi solución es abrir la tabla sin el Join y posicionarme en el mismo ID, actualizar y cerrar el objeto ADO, por último un reQuery del select original.
Un saludo. |
ADO: ACTUALIZAR CAMPO DE SELECT DE 02 TABLAS MSSQL | [b:1mc2cmma]Amando y Gmart1:[/b:1mc2cmma]
Aplique el UPDATE respetivo, seguido del requery respectivo al recordset, con ello di solución a mi problema. Muchas Gracias por su tiempo y apoyo.
[b:1mc2cmma]Nages:[/b:1mc2cmma]
Será factible tu comentario sobre la limitaciòn que presenta ado para estos casos. Gracias de ant... |
ADO: Listing tables from a database | [code=fw:2skcqm6e]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00D7D7;">#include</sp... |
ADO: Listing tables from a database | This is an alternative way of doing it using the most recent FWH functions:
[code=fw:39hzug0s]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: ... |
ADO: Listing tables from a database | Antonio
I like where you are going with ADO here ..
One thing that needs to be done is add the ability for a password to the connection string. Let me dig deeper and see if I can help.
Rick Lipkin |
ADO: Listing tables from a database | Antonio
I am using fwh1303 and xHarbour .. Trying to compile and getting an error on EXECUTE .. I rem'd it out temporarily to get get a good build.
Rick Lipkin
[code=fw:2pouio1h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">B... |
ADO: Listing tables from a database | Rick,
What compiling error do you get ? syntax error only ? There is no DEFINE BUTTON in my code
I really would appreciate your cooperation in adding ADO support to FWH FiveDBU.prg:
[url:8pf9hnrt]https://code.google.com/p/fivewin-contributions/downloads/detail?name=fivedbu_20130503_2.zip[/url:8pf9hnrt... |
ADO: Listing tables from a database | Antonio
Let me see what I can do with your code .. here is the line where my compile fails on Execute()
Rick Lipkin
[url=http://imageshack.us/photo/my-images/94/fivedbu.jpg/:pvbw1ikm][img:pvbw1ikm]http://img94.imageshack.us/img94/4962/fivedbu.jpg[/img:pvbw1ikm][/url:pvbw1ikm] |
ADO: Listing tables from a database | Rick,
I am afraid that Execute() portion of FiveDBU will not work with xHarbour and we use the great Harbour capability to compile and execute from memory in runtime. I am going to review the syntax of that line.
We have just published an enhanced FiveDBU with Add and Delete from an ADO browse <!-- s:-) --><img src="... |
ADO: Listing tables from a database | Rick,
An enhanced version already published that supports editing:
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=144063#p144063">viewtopic.php?p=144063#p144063</a><!-- l -->
It compiles fine here with xHarbour, except that function Execute() has to be declared dummy. Mayb... |
ADO: Listing tables from a database | Antonio,
As soon as you implement the option to define a connection-string, I will test it on MySQL/MariaDB & SQLite-databases.
I can't modify the program myself, since I still use an older version of FW (7.10) that is not able to compile the source.
With my old version I can use and browse MySQL & SQLite-database vi... |
ADO: Listing tables from a database | Marc,
Could you email me the connection string ? I will build it for you and email it to you.
There were lots of OLE errors that have been fixed in the recent years, thats why I suggest you to upgrade and don't block yourself on an old version <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smi... |
ADO: RECORSET Y SET RELATION | Tengo una aplicación antigua con dbf donde estoy pasando una de las tablas a MySql en un servidor en internet, para que desde periféricos móviles, les envien los datos de situación online. Esta información se baja filtrada desde el servidor a la aplicacion local, en un oRs:Recorset mediante un SELECT.
Las tablas maes... |
ADO: RECORSET Y SET RELATION | Hola Manuel,
si tienes todo en MySQL podrías incluir los datos relacionados con un JOIN, pero si están en dbfs.... es un poco complejo, creo que lo más sencillo es como lo estás haciendo.
ADO tiene eventos, uno de ellos es algo asi como onRecordChange, donde tenrdías que hacer los seeks. Pero hay que usar eventos.
O... |
ADO: RECORSET Y SET RELATION | Gracias Carlos. |
ADO: Revisando las tablas de una base de datos | [code=fw:jpoyplww]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"xbrowse.ch"</span><br /><span style="color: #00D7D7;">#include</sp... |
ADO: Revisando las tablas de una base de datos | Esta es una versión alternativa usando las funciones más recientes implementadas en FWH:
[code=fw:2ngqsfm4]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWin.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span s... |
ADO: Update() AddNew() GetRows() - Simplified Usage | We all know the methods Update(), AddNew() and GetRows() of ADODB RecordSet. I propse here to consider a simpler alternative usage of these methods.
For example, let us consider oRs:Update() method. We are familiar with this way of usage:
[code=fw:1m3cqn0z]<div class="fw" id="{CB}" style="font-family: monospace;"><br ... |
ADO: filter does not work on memo fields [fixed] | Hi,
Performing a filter on ADO (oRs:Filter) using LIKE on a memo field does not work.
Is there a way?
Thank you. |
ADO: filter does not work on memo fields [fixed] | Moises:
It Works fine to me.
Show us your code, pls.
Regards |
ADO: filter does not work on memo fields [fixed] | Armando,
This is the code:
[code=fw:289fbagn]<div class="fw" id="{CB}" style="font-family: monospace;">cFiltro := cCampo + space<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> + <span style="color: #ff0000;">"LIKE"</span> + space<span style="c... |
ADO: filter does not work on memo fields [fixed] | Moises:
This is may code, the CLI_NOM field is a TEXT type field.
[code=fw:1xodigol]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> FilNom<span style="color: #000000;">(</span>oDlg,oBrw,aGets<span style="colo... |
ADO: filter does not work on memo fields [fixed] | Yes, in text fields works, but not in memo fields, where I have the issue.
Thank you. |
ADO: filter does not work on memo fields [fixed] | Up! |
ADO: filter does not work on memo fields [fixed] | There is not Memo Field type in any sql database, MSAccess, MySql or MSSql
In MSAccess, MySql, MSSql the field type is TEXT.
In Oracle the field type is also called CLOB |
ADO: filter does not work on memo fields [fixed] | Yes, I mean long text or blob fields.
In such fields, this line does not work:
[code=fw:2pz403wo]<div class="fw" id="{CB}" style="font-family: monospace;">cFilter := cFieldName + space<span style="color: #000000;">(</span><span style="color: #000000;">1</span><span style="color: #000000;">)</span> + <span sty... |
ADO: filter does not work on memo fields [fixed] | In our tests, filters on LONGTEXT fields are working.
This is the test program:
[code=fw:1ad91v0h]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">function</span> Main<span ... |
ADO: filter does not work on memo fields [fixed] | My mistake: I was using oBrw:oRs instead of oRs with all fields.
Thank you. |
ADO: load recordset into an Array | Hi,
In my previous Harbour and FWH version, in order to load contents of Recordset in ADO, I did:
[code=fw:1e6095xh]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> ! <span style="color: #000000;">(</span> oRsClientes:<span style="color: #000000;">Eof</span>... |
ADO: load recordset into an Array | Una idea
[code=fw:bsn78rcq]<div class="fw" id="{CB}" style="font-family: monospace;"><br />hData := RsToHash<span style="color: #000000;">(</span> oRsClientes<span style="color: #000000;">)</span><br /> </div>[/code:bsn78rcq] |
ADO: load recordset into an Array | Now I have problems with XBROWSE COMMAND:
@ 0, 0 XBROWSE oPanel2:oControl OF oDash ;
COLUMNS 1, 2, 3, 4, 5, 6 ;
HEADERS "Nº Cliente", oSayDNI(), "Apellidos", "Nombre", "Localidad", "Teléfono" ;
ARRAY aArray1 ;
PICTURES "9,999,999"
Does not show the hash.
But the recordset is converted into h... |
ADO: load recordset into an Array | [quote="MOISES":3tu7itvj]Hi,
In my previous Harbour and FWH version, in order to load contents of Recordset in ADO, I did:
[code=fw:3tu7itvj]<div class="fw" id="{CB}" style="font-family: monospace;"> <span style="color: #00C800;">IF</span> ! <span style="color: #000000;">(</span> oRsClientes:<span style="color: ... |
ADO: load recordset into an Array | Thank you. RsGetRows( oRs ) Works perfect.
Two more related questions please:
1.- Is there any other change to ADO stuff that must be aware of?
2.- Also there is the Hash approach: aArray1 := RsToHash( oRs )
Is this fastest? |
ADO: load recordset into an Array | [quote:lgiafn3v]2.- Also there is the Hash approach: aArray1 := RsToHash( oRs )
Is this fastest?
[/quote:lgiafn3v]
RsGetRows() is faster than RsToHash() |
ADO: manage internet connections failures | Hi,
In ADO over Internet, sometimes the connection goes away. I think there is no oCn:Refresh() or oCn:Reconnect() to fix it.
So, how do you handle it?
Closing the connection after the Recordset and open each time before the Recordet?
I appreciate your valuable comments.
Thank you. |
ADOBASE ERROR | Hola AdolofoStatic Function IfTable(cTableName,oConnect)Local aTables := {} aTables := ListTable(oConnect) IF ! ( cTableName IN aTables ) //es esta linea da un error Return .F. else Return .T. ENDIFReturn .T. |
ADOBASE ERROR | Luis..Tu usas HARBOUR...IN se encuentra en xHarbourreemplaza esa linea porIF aScan(aTables, cTableName)= 0Prueba a hacer esto y me indicasEso |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.