topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
ADO Absoluteposition | You can't use AbsolutePosition property across different recordset. The right solution is using an Id field (that you should have anyway).
EMG |
ADO AddNew | Hola a todos.
Hace unas semanas he empezado a trabajar con ADO, tengo una duda (bueno tengo mas de una).
Estoy visualizando un recordset con un txbrowse, dicho recordset por su naturaleza no me permite ejecutar AddNew.
Cual seria la manera mas eficiente y comoda para realizar un alta.
1.- Ejecutar un insert con el m... |
ADO AddNew | HOla
Mira:
Inserir registro:
[code:2600aazp]
oRs:AddNew()
oRs:Fields( "id" ):Value := "00001"
oRs:Fields( "nombre" ):Value := "JOSE CARLOS DA ROCHA"
oRs:Fields( "apelido" ):Value := "ROCHINHA"
oRs:Fields( "p... |
ADO AddNew | Gracias Rochinha, pero eso no es exactamente lo que estaba preguntando. Yo ya conozco los metodos para altas bajas y modificaciones. El problema es que el browse esta basado sobre un recordset (oRS) no editable. Y la pregunta, es cual seria el metodo mas rapido para dar el alta. Otro recordset que permita addnew, inse... |
ADO AddNew | Amigo
Lo recordset esta basado en que tipo de BD?
Yo trabajo en modo local, cliente.
Revisa se la abertura es ReadOnly
[code:1elnc654]
LOCAL oConn := TOLEAUTO():New("adodb.connection")
PRIVATE oRecordset := TOLEAUTO():New("adodb.recordset")
oConn:Ope... |
ADO AddNew | El recordset ataca una bases de datos DB2, y el source es [code:3rhsfa3d]
cSql:= "SELECT EmpCod,Anyo,NumPed,Fecha,Hora,Usr,NetName,Servir,CliCod,Obs1,Obs2,"+;
"Servido,Presu,Kilos,Ava3Tx,Ava4Tx,Ava6Tx,Ava7Tx,Ava8Tx,Ava9Tx,Avbatx,AvbCtx,AvbDtx"+;
" FROM (SELECT PedCab.EmpCod AS TotEmp, PedCab.Anyo as Tot... |
ADO AddNew | Si
Entonces debes usar INSERT pois con ele tu iras referenciar la tabla alvo mas directamente. |
ADO Como se Pregunta si una Columna es Nula (Solicionado) | COmo se pregunta si un coloumna es Nula Null
Tengo entendido que en xharbour equivale a Nill
vara := iif(oDatos:Fields("nombre_estilo"):Value = Nill," ",oDatos:Fields("nombre_estilo"):Value)
Esto eata bien
Tengo FWH 8.03 y xharbour 21/August/2008 1.1.0 Rev 6195 |
ADO Como se Pregunta si una Columna es Nula (Solicionado) | Hola Ruben...
Tienes 3 formas de preguntar si la columna es Nula.
1. Antes de cargar el recordset usando una consulta sql: (Con Mysql)
select ifnull(colfecha,now()) as NuevaCol FROM Tabla where otracol IS NULL
Si la colfecha no es nula me devuleve colfecha, de lo contrario me da la fecha actual, y haga esto co... |
ADO Como se Pregunta si una Columna es Nula (Solicionado) | [quote="sjingo":3vhri68v]Hola Ruben...
Tienes 3 formas de preguntar si la columna es Nula.
1. Antes de cargar el recordset usando una consulta sql: (Con Mysql)
select ifnull(colfecha,now()) as NuevaCol FROM Tabla where otracol IS NULL
Si la colfecha no es nula me devuleve colfecha, de lo contrario me da la fec... |
ADO Como se Pregunta si una Columna es Nula (Solicionado) | [quote="sjingo":3h7f92iu]Hola Ruben...
Tienes 3 formas de preguntar si la columna es Nula.
1. Antes de cargar el recordset usando una consulta sql: (Con Mysql)
select ifnull(colfecha,now()) as NuevaCol FROM Tabla where otracol IS NULL
Si la colfecha no es nula me devuleve colfecha, de lo contrario me da la fec... |
ADO Como se Pregunta si una Columna es Nula (Solicionado) | No entiendo a que te refieres.
Si lo que quieres es subir una imagen a tu mensaje mira el siguiente enlace:
[url:1fyf2kc5]http://forums.fivetechsupport.com/viewtopic.php?f=6&t=17413&p=90548&hilit=subir+imagen#p90548[/url:1fyf2kc5]
Un Saludo
Marcelo Jingo |
ADO Connection to Oracle 10g | To All
I am trying to connect to an Oracle 10g database using the following code which fails every time .. any assistance would be appreciated.
Looking on MSDN there is some confusion as to "SOURCE" being the server name .. in this example the EFIS is that actual name of the database that resides on the server name E... |
ADO Connection to Oracle 10g | I don't know it this can be of any help but try:
[code:3pqhjgaj]cSQL := "SELECT * FROM [EFIS_UST_RELEASES]"[/code:3pqhjgaj]
EMG |
ADO Connection to Oracle 10g | Enrico
Sorry .. that did not work .. I think it has something to do with the 'source' parameter .. i am missing something from my side on the identification .. server name perhaps, sciema prefix .. something like that.
Rick |
ADO Connection to Oracle 10g | For Source we should use the TNS Name of the Server/Database. It is the name used in TNS Confuration of the Oracle Client on the PC client. It is not the physical servername or the database name given by the DBA on the server.
If you open connection object separately, ( i advise not mix with opening recordset) and ex... |
ADO Connection to Oracle 10g | Schema prefix is to be used with table names as <schema>.<table>. It is always a safe and good programming practice to use schema prefix for all tables in oracle |
ADO Connection to Oracle 10g | nageswaragunupudi
WOW ... thanks for the great answer .. I will try your code in the morning. I was using the DNS name of the server for the source .. I do have a tnsnames.ora file .. I think the tns name is 'efis.world' .. The schema is 'suntrack' .. so my guess will be to use :
xPROVIDER := "MSDAORA"
xSOURCE := "E... |
ADO Connection to Oracle 10g | Data Source = 'efis.world'.
For some reasons i did not like the .world extention. Had some issues with it. All our client installations have tns names without the .world.
Please try efis.world first as the data source name. you should be able to connect.
I once again recommend opening the connection object only i... |
ADO Connection to Oracle 10g | nageswaragunupudi
Was curious to try your code .. your error message was much more informative than just 'e_fail' ..
I got this message that
'Oracle client and networking componants not found. These componants are supplied by Oracle Corp and are part of the Oracle Version 7.3.3 or later client software installatio... |
ADO Connection to Oracle 10g | You have to install oracle 10g client that comes along with oracle server software. After installing, you should configure TNS names. Only then our software runs on your PC.
( note: we need the client software on the user pc for every RDMS. For ADS we put the DLLs in the appn directory. Windows comes with MSSQL cl... |
ADO Connection to Oracle 10g | nageswaragunupudi
I gathered as much about the client .. was hoping to avoid any complicated setups .. We currently have a 'very ugly' fat client Oracle forms 6i client .. over 1200 some .fmx forms that get depolyed to over 100 servers <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:... |
ADO Connection to Oracle 10g | [quote:1xjawhjc]
I saw on the Oracle website the Quick 10 or 11i client download .. would this work ( do you think ) or do I need to just go back to the Oracle 10g disk and install the client files ??
[/quote:1xjawhjc]
I did not try the thin clients. But I had enough information from oracle colleagues not to try. Till... |
ADO Connection to Oracle 10g | nageswaragunupudi
We are actually running Oracle version 9.2.0.6 .. not 10g as I origionally thought. I have the Ora9i cd and have installed the client portion of the 3 disk cd .. still getting the version 7.3.3 error
Any thoughts or pointers ??
RIck |
ADO Connection to Oracle 10g | Please check the PATH and make sure it points to the location of the new isntallation. For example the path on this pc is "PATH=C:\oracle\product\10.2.0\client_1\bin;" |
ADO Connection to Oracle 10g | nageswaragunupudi
The very first statement in the path is where I installed ( what I hoped was the client ) Ora9i .. c:\ora9i\bin .. Perhaps I installed the wrong thing .. would you be so kind as to find me a link to download the proper client .. I noticed in your code .. you have c:\oracle\client .... I do not have... |
ADO Connection to Oracle 10g | Can you please send me the directory structure of your ora9i directory? you can save it as text file by going to c:\ora9i ( DOS PROMPT ) and issue command "DIR /S > ORADIR.TXT". Please send to my personal email <!-- e --><a href="mailto:nageswaragunupudi@gmail.com">nageswaragunupudi@gmail.com</a><!-- e --> |
ADO Date time update SQL Server | To AllHow can I convert date() to a datetime field in MS Sql server .. I was given this formula and it does work but does not insert the correctdate into the date portion of the field ..nDateTime := ( DATE() - CTOD("") )+( SECONDS()/ (24*3600)) equals something like 6/19/8620 5:17:14 PMAs you can see .. todays ... |
ADO Date time update SQL Server | Rick,esto es un error grave de xharbour , ADO solamente devuelve la FECHAdejando fuera la hora,este tema ya se habia mensionado en mensajes anteriores,pero nadie ha dado una solucion,saludos.. |
ADO Date time update SQL Server | [quote:2uw9lds4]Rick,
this is a serious error of xharbour,
ADO only returns the DATE
leaving was the hour,
this theme already itself habia mensionado in previous messages,
but nobody has given a solucion,
Greetings..
[/quote:2uw9lds4]I seem to have run into that 'brick wall' .. will do some more searching ..ThanksR... |
ADO Date time update SQL Server | Rick,[code:gkovxcua]
set date american
set century on
...
oRs:Source := "Update <your table> set <your datetime field> = '"+;
dtoc(date())+" "+time()+"' where ......"
...
oRs:Open()
[/code:gkovxcua]This update work for me and i... |
ADO Date time update SQL Server | Eugeniusz Owsiak* dtoc(date())+" "+time() * .. WOW, that worked !!!!!!!!!!!!! beating my head against the wall here over something so simple.Glad you had a better pair of eyes than I did ..Thanks for the HELP !!Rick Lipkin |
ADO Date time update SQL Server | If you are using xHarbour, you can straighaway use datetime.dtDate := DateTime()oRs:Field(x):Value := dtDateNow xHarbour can handle date and time together, it is no more necesssary for us to handle date and time separately |
ADO Datetime field | To All
How do I concantonate date()+time() into a datetime field to SQL server with ADO ??
The reason to add the time stamp is because SQl server does not respect 'natural order'. When I have multiple entry's on the same date() .. SQL will order them randomly within the same date and not as they were added to the ... |
ADO Datetime field | Convert date and seconds into a double value like this and assign the value. Date field in OLE can be assigned a value as date or double
[code:8hhsglu6]
nDateTime := ( dDate - CTOD("")) + (nSeconds/(24*3600))
oRs:Fields("datetimefield"):Value := nDateTime
[/code:... |
ADO Exclusive open | Is it possible to open a recordset in exclusive mode so others cannot open it ? |
ADO Exclusive open | Hi AHF,
I don't think it is possible, because the exclusive locking is against usual database principles, and ADO is just an abstraction layer, so that kind of behavoir is depending on the data engine itself, not ADO.
May be if you are using some particular data drivers you can state in the string connection that you w... |
ADO Exclusive open | Carlos,
I remember to read somewere that if you opend recorset and issue : begintrans immediatly after might be the same as USE .. EXCLUSIVE if you get an error USE fails if not the state of table would be protected untill you commit or abort trans.
Do you have any experience on this? |
ADO Exclusive open | As regards the first question:
Please read more on SELECT ... FOR UPDATE available in Oracle, MySql and some others
Please note that these are very rarely used. I strongly advise we need to unlearn DBF habits and re-orient our thinking.
We can also open recordset with pessimistic locking and if we update a record, it... |
ADO Exclusive open | [quote="nageswaragunupudi":3atg4ft9]
Please read more on SELECT ... FOR UPDATE available in Oracle, MySql and some others
Please note that these are very rarely used. I strongly advise we need to unlearn DBF habits and re-orient our thinking.[/quote:3atg4ft9]
I agree completly these are two completly diferent worlds.... |
ADO Exclusive open | Antonio,
oRs:Fields( n ):DefinedSize
Anyhow Mr. Rao is the real expert on ADO/SQL <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
ADO Exclusive open | Antonio,
This code is from FWH\source\function\adofunc.prg and it has been developed by Mr. Rao and surely will help you very much:
[code=fw:29dol3f8]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> FWAdoFieldStruct<span style="color: #000000;">(</span> oRs, ... |
ADO FILTER BOOLEAN EXPRESSION | Hello ,
Testing ADO oRs:Field := cExpression
I found some difficulties :
oRS.FILTER := "FIRST='Jon' OR (Married=0 AND LAST LIKE 'D*')"// Accepted
oRS.FILTER := FIRST='Jon' OR Married=0 AND LAST LIKE 'D*'" // NOT ACCEPTED
oRS.FILTER := "(FIRST='Jon' OR Married=0) AND LAST LIKE 'D*'" // NOT ACCEPTED
oRS.FILTER := "LA... |
ADO FILTER BOOLEAN EXPRESSION | I had the same problem
[url:2a9to7wr]http://forums.fivetechsupport.com/viewtopic.php?f=3&t=35944[/url:2a9to7wr]
Here is the documentation of the filter
[url:2a9to7wr]https://docs.microsoft.com/en-us/sql/ado/reference/ado-api/filter-property?view=sql-server-2017[/url:2a9to7wr] |
ADO Filtering - Mr. Nages and others | Hello,
We are almost finishing ADORDD, but there is a problem converting some filters from Clipper sinatx to ADO Filter command:
The problem is with the vars (oData:Codigo, cName)...:
[code=fw:21u412qf]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /> SET FILTER <span style="color: #0000ff... |
ADO Filtering - Mr. Nages and others | Translating a filter condition when the condition contains harbour variables seems to be difficult. I could not find a way. So the present FW_Filter2Where() function returns valid condition only if the filter condition contains constants only and not variables.
The author of SQLRDD did an extremely wonderful job. It m... |
ADO Filtering - Mr. Nages and others | Mr. Nages,
Thank you.
Are you refering to SQLRDD from xHarbour.com?. I am afraid the source code is not available.
SO far, the only way would be to rewrite all filters to this:
[code=fw:2vh3gg6j]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />cFiltro := <span style="color: #ff0000;">"NIF = '"<... |
ADO Filtering - Mr. Nages and others | Hello,
I also posted on the Harbour and xHarbour developers group to get their kind help:
<!-- m --><a class="postlink" href="https://groups.google.com/forum/#!topic/comp.lang.xharbour/Dbfq-Zydz0I">https://groups.google.com/forum/#!topic ... bfq-Zydz0I</a><!-- m -->
<!-- m --><a class="postlink" href="https://groups... |
ADO MS SQL | I use sql and ado to talk to a database on MS Sql ServerI need some info :I need an instruction to put in a array the name of all the tables (files) located in one database .For a table, i want to know the number of records .I also want to know the number of fields, name of fields , type ans size .How to with ado synta... |
ADO MS SQL | JACKTake a look at my CLASS, "ADOBASE".There you have all you want to do.There's an exe with its source code, and the class.Download it from <!-- m --><a class="postlink" href="http://200.72.140.34/privado">http://200.72.140.34/privado</a><!-- m --> The file is ADOBASE.RARFrom ChileAdolfo |
ADO MS SQL | Yes I used it, nice <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Thanks AdolforegardsFafi |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Ayuda Estimados,
Tengo una aplicacion con ADO y MySql todo va bién hasta que 2 usuarios modifican el mismo registro del recordset, y ahi el programa se cae en el usuario que grabó al final.
GRACIAS de antemano por cualquier ayuda.
estoy definiedo el bloqueo como sale a continuación:
oCmd := TOLEAUTO():New("adodb.co... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Update operation by a user fails if another user updated the record after the user read the recordset and before updating. This is concurrency error.
It is desirable that we should ascertain that the row is not updated by other users before calling oRs:Update() method. Normally oRs:Resync( adAffectCurrent, adResyncUnd... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Lafug and Rao
Rao .. you are VERY correct about ReSync() not being universally supported by some Databases .. like Access for example which causes difficulties in networked environments specifically when it comes to workstation updates and visibility.
As far as concurrency I use a signature field in my tables called ... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Yes Mr Rick. I agree with you. ADO and MsSql are like made for each other.
Baring a few issues Oracle also works quite well.
There could be several strategies a programmer can adopt to handle concurrency issues, but all these involve rereading some data from the server just before writing and in all these cases one ha... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Ayuda Estimados,
Tengo una aplicacion con ADO y MySql todo va bién hasta que 2 usuarios modifican el mismo registro del recordset, y ahi el programa se cae en el usuario que grabó al final.
GRACIAS de antemano por cualquier ayuda.
estoy definiedo el bloqueo como sale a continuación:
oCmd := TOLEAUTO():New("adodb.co... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Luis,
¿ Que mensaje te muestra el ado ?, te comento que yo tengo sistemas con ado y mysql con hasta 20 usuarios concurrentes sin problemas.
Atte.,
Lautaro Moreira |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Lautaro,
(mi correo:luisalfonsofuentesg@gmail.com para una asesoria $$ ?)
Este es el error:
Application
===========
Path and name: C:\SISTEMAS\TARGET\SISGES.Exe (32 bits)
Size: 2,473,984 bytes
Time from start: 0 hours 4 mins 52 secs
Error occurred at: 13/10/2011, 15:37:41
Error description: Error adodb... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Luis
El
[code=fw:9asdtso9]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> ... <br /> oRs:<span style="color: #0000ff;">Update</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> ...<br /> </div>[/code:9asdtso9]
m... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | GRacias Lautaro, pero se me cae igual:(
[code=fw:25sozvda]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">IF</span> lNuevo<br /> oRS:<span style="color: #000000;">AddNew</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><span st... |
ADO MYSQL se cae con 2 usuarios modificando mismo registro | Lafug.
Local oErrorAdo
...
...
...
...
...
...
TRY
oRs:Update()
CATCH oErrorAdo
MsgAlert(oErrorAdo)
END
Con esto capturas el error desde ADO y puedes ver que es lo que realmente esta sucediendo.
Seria bueno que copiaras aqui la estructura de la tabla... |
ADO Ms Access Filter Condition | To All
I have a Sql statement that runs fine using the Ms Access instr() function and I am trying to modify the script to a filter condition...
This is the Sql statement that runs from the Open() line :
[code=fw:19up7w7d]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSQL := <span style="color: #ff0... |
ADO Ms Access Filter Condition | Try this sql string
cSQL := "SELECT * FROM REQUEST where PARTDESC like '%ba%'" |
ADO Ms Access Filter Condition | Gale
Your suggestion was correct .. oRsReq:Filter := "PARTDESC like '%ba%'" .. For some reason I just had a 'brain freeze' and was thinking like the AT() function ..
Thanks
Rick Lipkin |
ADO Ms Access SLow Close() and Re-Open tables on Win 7 | To All
I have a Customer Module that Opens 3 tables from a MS Access database and when I chose a different customer the tables get refreshed by closing them and re-opening them( _custedit() ). The close and re-open process works GREAT on 32 bit Windows XP, but times out on the re-open [Customer Item] table and breaks ... |
ADO Ms Access SLow Close() and Re-Open tables on Win 7 | Rick:
Just an idea, I have not W7, what if you remove the refresh code
[code=fw:ijl8i21a]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSay := <span style="color: #ff0000;">"Opening Item Customer ShipTo Table"</span><br />oSay:<span style="color: #0000ff;">ReFresh</span><span style="color: #000000;"... |
ADO Ms Access SLow Close() and Re-Open tables on Win 7 | Armando
I think I am going to revise my Customer screen and instead of opening 4 tables, just open the Customer and Invoice and have buttons for the other tables to click and open the other two tables on demand.
I would still like to know why the my current code works GREAT on XP but hangs when closing and re-opening... |
ADO Open Question | All,
I want to open an ado connection to an access database using the adModeShareExclusive mode (12). Can someone give me an example for doing this?
This is what I'm using now:
oConn := CREATEOBJECT( "ADODB.Connection" )
oConn:Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+cDataSource)
cDataSource is t... |
ADO Open Question | Probably you are trying to set Mode property when the connection is open. From MSDN:
[quote:37xe5ds7]You can set the Mode property only when the Connection object is closed.[/quote:37xe5ds7]
EMG |
ADO Open Question | Enrico,
Thanks, that helps.
Randal |
ADO Problem | HI,
This code sometimes work ok, sometimes produce error:
Error description: Error ADODB.RecordSet/6 DISP_E_UNKNOWNNAME: MOVEFIRST
[code=fw:1oauv2qz]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">try</span><br /> oRs := TOleAuto<span style="color: #000000;">(</span><spa... |
ADO Problem | Avista,
It's normal that you get an error if you do a oRs:MoveFirst() on a empty recordset.
That's why I use
[code=fw:37ebt5aw]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">IF</span> !oRs:<span style="color: #000000;">eof</span><span style="color: #000000;">(</span><span ... |
ADO Problem | cSql := "UPDATE ......" or "INSERT INTO ..."
oCn:Execute( cSql, @nRows, adCmdText )
? nRows |
ADO Problem | Marc, Rao
Thanks for reply
Regards, |
ADO QUESTION: using a Harbour function in a WHERE clause | Hello,
I would like to use a Harbour function in a where clause.
I need to pass to Harbour´s function the value from the SQL TABLE:
cSQLi1 := "SELECT * FROM APUNTES WHERE MyFunction(FECHA) = '1' "
That gives an error indicating that MyFunction is not defined on the SQL engine.
So I tried with no luck
"SELECT * ... |
ADO QUESTION: using a Harbour function in a WHERE clause | Lucas,
Try:
"SELECT * FROM APUNTES WHERE "+ MyFunction( FECHA ) +" = '1' " |
ADO QUESTION: using a Harbour function in a WHERE clause | Thank you, but it does not work as FECHA must be returned from SQL, it is a field from the table (FECHA=Date) |
ADO QUESTION: using a Harbour function in a WHERE clause | Ok, so I would do this way:
MiFecha = MyFunction () // In MyFunction() I'd use the SELECT to get the field FECHA and do the necessary
"SELECT * FROM APUNTES WHERE "+ MiFecha +" = '1' " |
ADO QUESTION: using a Harbour function in a WHERE clause | Lucas:
I do this way with xHarbour and MySql
[code=fw:3ieu6bym]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oRsHdr:<span style="color: #000000;">Source</span> := <span style="color: #ff0000;">"SELECT "</span> +;<br /> <span style="color: #ff0000;... |
ADO QUESTION: using a Harbour function in a WHERE clause | Armando,
Muchas gracias, pero no es lo que necesito, porque Month es una función de MySQL.
Sin Embargo, no está presente en SQLite.
Imagina que quieres usar otra función tuya.
Muchas gracias en todo caso. |
ADO QUESTION: using a Harbour function in a WHERE clause | Armando,
Muchas gracias, pero no es lo que necesito, porque Month es una función de MySQL.
Sin Embargo, no está presente en SQLite.
Imagina que quieres usar otra función tuya.
Muchas gracias en todo caso. |
ADO QUESTION: using a Harbour function in a WHERE clause | If it is MySql, MsSql, Oracle etc I create a sql function on the server with the same functionality of MyFunction. SQL statements can use that function.
I am not sure if SqLite allows creation of server-side procedures and functions.
Another way is to maintain a calculated column in the same table which stores the s... |
ADO RDD connection error 16389 | I have this error testing MS SQL and MySQL.
Is there a way to get more information of the error.
I have used this code with MySQL
[code:1h7oj8pj]#Include "FiveWin.Ch"
#include "adordd.ch"
REQUEST ADORDD
function TstMySql()
USE test1 VIA "ADORDD" TABLE "tabel1" MYSQL ;
FROM "LOCALHOST" USE... |
ADO RDD connection error 16389 | Willy,
Try to connect to your database and table using an application like Navicat (<!-- w --><a class="postlink" href="http://www.navicat.com">www.navicat.com</a><!-- w -->) and check if it works fine |
ADO RDD connection error 16389 | Thanks Antonio,
I'll try it asap.
The MySQL that I use is a version with PHP. It has already a management system.
Is it possible that not all versions (i.e. version 5) are supported
Thanks
Willy Hermans |
ADO RDD connection error 16389 | I've just tested it with Navicat.
The connection works fine.
Greetings
Willy |
ADO RDD connection error 16389 | Willy,
> TABLE "tabel1"
Isn't there a typo ? "table1" ? |
ADO RDD connection error 16389 | No tabel is just the dutch word for table
Greetings
Willy |
ADO RDD connection error 16389 | ok <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Please try using "localhost" in lower case or 127.0.0.1 |
ADO RDD connection error 16389 | After reinstalling MySQL and ODBC drivers the connection works
Thanks.
Willy |
ADO RDD connection error 16389 | Now I've tried to connect from another pc.
This does still not work.
I've tried with the ip adres of the pc that holds the mysql server software.
I've tried with the networkname of the pc...
I've tried with "\\pcname\localhost" and so on.
What are exacly the possibilities for adressing the connection.
Thanks,
Wi... |
ADO RDD connection error 16389 | Willy,
> What are exacly the possibilities for adressing the connection
We don't know it for sure. ADORDD is just a layer that uses ADO. If ADO works then the ADORDD should work too. |
ADO RDD connection error 16389 | Thanks Fernando,
I've done some tests.
There seems to be something wrong with the MySQL server.
I have reinstalled the server several times.
When I use EasyPhp 1.7 or 1.8 (This includes MySQL 5) the program works local but the server is not detected at another PC in the network.
I have used navicat and MySQL Admi... |
ADO RDD connection error 16389 | I have just finished some tests.
1) Format C
2) Reinstall XP service pack 2
3) disable firewall
4) Install MySQL 5
run this code
[code:fc8lfcxk]#Include "FiveWin.Ch"
#include "adordd.ch"
REQUEST ADORDD
function TstMySql()
USE test VIA "ADORDD" TABLE "tabel1" MYSQL ;
FROM "localhost" USER... |
ADO RDD connection error 16389 | Willy,
Please show us your code using "testpc" |
ADO RDD connection error 16389 | Hello Antonio,
Here it is.
[code:1g8211a0]#include "adordd.ch"
REQUEST ADORDD
function TstMySql()
USE test VIA "ADORDD" TABLE "tabel1" MYSQL ;
FROM "testpc" USER "root" password "pas"
* USE test00 VIA "ADORDD" TABLE "ACCOUNTS" MYSQL ;
* FROM "www.freesql.org" USER "myuser" PASS... |
ADO RDD xHarbour | Hello,
Is there a stable Rdd for ADO working for basic operations such as replaces, browses, like other rdds?
Regards
Antonio |
ADO RDD xHarbour | Antonio,
You don't need a RDD. Please review these easy examples:
[url:2rmtf3tf]http://wiki.fivetechsoft.com/doku.php?id=ado_create_database[/url:2rmtf3tf]
[url:2rmtf3tf]http://wiki.fivetechsoft.com/doku.php?id=ado_import_dbf[/url:2rmtf3tf]
[url:2rmtf3tf]http://wiki.fivetechs... |
ADO RDD xHarbour | Antonio,
I work already with ADO that way, however I'm converting an old and large application with FW and xHarbour and the way app is desinged it will be vey time consuming to make that approach.
The app doesnt has any kind of Tdata objects to encapsulate the Skips, replaces etc that are spreaded all around the code... |
ADO RDD xHarbour | Antonio,
Yes, ADORDD may help you, may it has never been tested in a large application so I don't know how it may behave.
If you have the time and energy to test it and to complete it then it may be a very good solution for you and for other users too.
I am not aware of any other solution except the commercial SQLRD... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.