topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
ADO & SQL INSERT Statement | [quote="Baxajaun":24fy610s]Hi Avista,
i've tried in my sqlite installation the following code
[code=fw:24fy610s]<div class="fw" id="{CB}" style="font-family: monospace;">insert into test <span style="color: #000000;">(</span>campo1,campo2<span style="color: #000000;">)</span> values <span style="color: #0000... |
ADO & SQL INSERT Statement | Thanks to all for reply
[quote:kqhmii31]INSERT INTO <table> SELECT <rows,static data,...> FROM <table> WHERE <cond>[/quote:kqhmii31]
This is not problem but problem is to INSERT data from .TXT or .DBF file.
[quote:kqhmii31]i've tried in my sqlite installation the following code
CODE: SELECT ALL EXPAND VIEW
insert in... |
ADO & SQL INSERT Statement | This is a very useful information. This can be improved upon.
Also every provider provides a way to bulk import from text data. That's the fastest way. You may also check on this. |
ADO & SQL INSERT Statement | Rao,
I found this how to use INSERT CURSOR but still not have idea how to implement in program ... i will try this days
and please if you have some experiance with this tell me some sugestions
[quote:2xw5ah35]
IBM Informix Guide to SQL: Tutorial
Using an Insert Cursor
The DECLARE CURSOR statement has many variation... |
ADO + FWH + DBF + SQL | Buenas a todos,
1) De donde puedo sacar información de las propiedades y metodos de ADO??
2) Quisiera saber que estoy haciendo mal en este código. El Browse con el primer recordset me lo muestra de maravilla, ahora cuando quiero insertar en la tabla F10TAA.DBF el contenido de F10T01 (Las dos son iguales) me da el sig... |
ADO + FWH + DBF + SQL | Ariel
Me invadió la duda.... pero prueba a colocar la declaración de la consulta cSQL1 antes de asignarle a
oRs:Source
cSQL1 = "insert into F10TAA ( CODINTPRD, NOMPRD, PRCVTA, PRCSUG, CODBAR ) select CODINTPRD, NOMPRD, PRCVTA, PRCSUG, CODBAR from F10T01 where CODBAR = '8888888888888'"
oRs:Source := cSQL1
Puede... |
ADO + FWH + DBF + SQL | Segun mi conocimiento de ADO no deberias de modificar o insertar datos usando un query, ADO tiene metodos para hacer eso directamente.
Si quieres por ejemplo modificar un dato del record set haces:
oRs:field(x):Value := lo que quieras
oRs:Update()
si haces un query que inserte datos en una tabla o que los modfique e... |
ADO + FWH + DBF + SQL | Gracias por la ayuda, me podrían decir como veo los metodos y propiedades para trabajar con ADO en FHW?,
Gracias.
Ariel, |
ADO + FWH + DBF + SQL | El siguiente link puede serte de gran ayuda
[url:1n99odyj]http://www.aspfacil.com/articulos/040401.asp[/url:1n99odyj]
Un saludo
Marcelo Jingo |
ADO + FWH + DBF + SQL | Amiguinho
Ustedes podes visualizar en:
[url=http://ns7.webmasters.com/caspdoc/html/ado_component_reference.htm:1x31ap2r]SunChilliSoft.ASP[/url:1x31ap2r]
És mui simples usar ADO con Fivewin. |
ADO + FWH + SQL SERVER | Hola,
Una pregunta levanto un recordset con Ado usando la libreria de jlcapel y dependiendo la cantidad de campos que me retorne en el SELECT me da el error hb_xgrab(0) not allocate memory y tal vez son 20 campos, a alguien le paso ? y lo pudo solucionar.
Gracias. |
ADO + MS-SQL | Foro buenos días, estoy probando ADO + MS-SQL y va muy bien, pero me he topado con un problema.
Estoy haciento una consulta la cual me regresa un oRS con tres campos
uno de tipo TinyInt y dos de tipo nVarChar pero recorrer el oRs para meter los datos en un Array este me marca este error
"OLE Error Value : Unknown e... |
ADO + MS-SQL | Los campos TinyInt se utilizan para los campos lógicos ( .T. o .F. ) |
ADO + MS-SQL | Gracias Zamoras, lo curioso es es que pruebo con un campo tipo SmallInt
y sucede lo mismo, no reconoce el tipo de dato. al leerlo con
nEmpresa:=oRs:Fields('InEmpNum'):Value
me marca "OLE Error Value : Unknown error"
Al pareder la clase no reconoce los campos tipo Tinyint e SmallInt y ale busque y la verdad no se por... |
ADO + MS-SQL | Yo lo hago de la siguiente forma:
[code:sb3re2eh]
::TipoCampo( oQuery:Get( "Type" ) )
//////
//------------------------------------------------------------------------------------// METHOD TipoCampo( ) retorna el tipo de campo.
//----------------------------------------------... |
ADO + MS-SQL | Acabo de revisar un ejemplo con SQL Server y con ADO y me esta regresando bien los valores.
(x)Harbour 99.5 y FW 2.6 |
ADO + MS-SQL | Joel,
[quote:3e98qt9c]"OLE Error Value : Unknown error", esto cuando intento tomar el valor con : nEmpresa:=oRs:Fields('InEmpNum'):Value
[/quote:3e98qt9c]
Usas ADO contra MySql... ¿Como? ¿ODBC? Si es Odbc, cual versión de MyOdbc usas?? ¿Cual versión de MySql? ¿y de ADO?
Saludos,
José Luis Capel |
ADO + MS-SQL | José Luis, estoy usando FWH 2.4 + Microsoft-SQL + ADO (TOleAuto del master José Gimenez)
Ya he trabajado con Odbc utilizando TOdbc() y va muy bien, pero ahora busco mejorar los tiempos usando ADO y me he topado con el problema que les comento.
Gracias a todos saludos
Joel Andujo |
ADO + MS-SQL | Joel,
Si es la versión original de tOleAuto (y no la que viene actualmente con xharbour) es probable (y repito probable) que ahí radique el problema.
Intenta bajarte los ultimos binarios de xhabour. Y, desde xharbour (son FWH) intenta hacer las mismas operaciones. Casi te puedo asegurar que no vas a tener ningún pr... |
ADO + MS-SQL | Gracias José Luis por ahi me voy a ir, de hecho tengo la inquietud desde hace algun tiempo de cambiarme a xHarbour y ahora con mas razón.
Ya te contaré como me fue
Saludos
Joel Andujo |
ADO + MS-SQL | José Luis, exacto era eso!!!, despues de pegarme un tiro(buscarle, buscarle y volver a buscrale) recompilando FW24 y mis librerias de terceros con xHarbour 0.99.50 (SimPlex) de xHarbour.org ya el ejemplo de ADO me regresa los valores correctos.
Saludos
Joel Andujo |
ADO - Error description: Error ADODB.RecordSet/6 DIS | Tengo una duda y lo voy a ser sencillo a ver si por ahi resuelvo el quilombete.
[code=fw:1d6gj5bn]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> buscar<span style="color: #000000;">(</span>cBuscar, oRs, oBrw<span style="color: #000000;">)</span><br />&nb... |
ADO - Error description: Error ADODB.RecordSet/6 DIS | Siempre que hagas una búsqueda es obligatorio poner el RecodSet en el primer registro. oRs : MoveFirst()
Te paso este enlace que está muy bueno
<!-- m --><a class="postlink" href="http://www.w3schools.com/ado/ado_ref_recordset.asp">http://www.w3schools.com/ado/ado_ref_recordset.asp</a><!-- m -->
Saludos |
ADO - Error description: Error ADODB.RecordSet/6 DIS | entonces que le estoy h/errando? |
ADO - SQL-question | Hi,
Is is correct to say that if I download the connector
<!-- m --><a class="postlink" href="http://dev.mysql.com/downloads/connector/odbc/5.1.html">http://dev.mysql.com/downloads/connector/odbc/5.1.html</a><!-- m -->
and use MariaDB, I can use MySQL with xHarbour without buying any other server licence? Or do I nee... |
ADO - SQL-question | Marc
SQL Server Express is a free edition of SQL Server ideal for developing and powering desktop, web and small server applications.
<!-- m --><a class="postlink" href="http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/express.aspx">http://www.microsoft.com/sqlserver/en/u ... press.aspx</a><!-- m -->
... |
ADO - SQL-question | Marc:
If you use MariaDb then you don't need MySql and viceversa, and yes !, you need the
connector to use MariaDB or MySql with ADO.
I have a medium size app developed with ADO, xHarbour, FW and MySql, I made a test
with MariaDB and no change was necessary, all the code has been accepted.
Regards |
ADO - SQL-question | [quote="Rick Lipkin":2v1qg84r]Marc
SQL Server Express is a free edition of SQL Server ideal for developing and powering desktop, web and small server applications.
<!-- m --><a class="postlink" href="http://www.microsoft.com/sqlserver/en/us/editions/2012-editions/express.aspx">http://www.microsoft.com/sqlserver/en/u ... |
ADO - SQL-question | [quote="Armando":3pao8n30]Marc:
If you use MariaDb then you don't need MySql and viceversa, and yes !, you need the
connector to use MariaDB or MySql with ADO.
I have a medium size app developed with ADO, xHarbour, FW and MySql, I made a test
with MariaDB and no change was necessary, all the code has been accepted.
... |
ADO - SQL-question | Marc:
As I know, the connector is free but MySql is Freeware, here is the link for mariaDB, perhaps is your best option.
<!-- m --><a class="postlink" href="http://mariadb.org/en/">http://mariadb.org/en/</a><!-- m -->
Best regards |
ADO - SQL-question | Mark
Here is a very simple example how to set up the Sql Server Connection and how to open a recordset.
Rick
[code=fw:1urbxj2m]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br /><span style="color: #00C800;">Local</span> oRsRepair,cSql,oErr<br /><span style="color: #00C800;">Public</span> xConnect... |
ADO - consultar el ultimo registro ingresado en una tabla. | Hola Foro:
Alguien sabe como conocer cual es el valor del ultimo registro creado en un campo autonumerico de una tabla access 2000.
Los campos autonumericos, son aquellos que el motor les asignan solo un valor numerico incremental, por lo general de 1 en 1.
Mi problema, es que necesito conocer el valor antes de grab... |
ADO - consultar el ultimo registro ingresado en una tabla. | Juan
oRs:Insert_ID( )
Regresa el ultimo identificador de numeracion automatico insertado (serial). Regresa falso si la funcion no esta soportada.
Un saludo
Marcelo Jingo |
ADO - consultar el ultimo registro ingresado en una tabla. | [b:6hl4alk4] GRACIAS[/b:6hl4alk4] Marcelo, la voy a probar.
No conocia esa funcion.
Saludos, |
ADO -> Metodo Clone() | Hola a todos,
Alguien me podria explicar para q carajos sirve hacer un ::Clone() de un oRS. Vale, ya se q hace una copia referencial del oRS, pero q ventajas aporta y para y cuando se debe usar ?
Gracias. |
ADO -> Metodo Clone() | Yo lo utilizo cuando estoy mostrando el recordset en un browse y quiero hacer otra operación con ese recordset. de esta manera cada recordset mantiene su posición. Esta es una, supongo que tendrá más utilidades. Saludos |
ADO -> Metodo Clone() | Horacio,
Si, ya he probado el tema de realizar busquedas o aplicar filtros. Realmente es mas rapido q volver a crear y ejecutar una nueva select. Entiendo que cualquier operacion que hagas es sobre el conjunto de datos seleccionados previamente con el RecordSet, o puedes realizar una nueva select ? (creo q he dicho u... |
ADO -> Metodo Clone() | Carles:
Ummm, me parece que no has dicho una barbaridad, pues tambien puedes hacer un nuevo SELECT de la misma tabla aunque ya tengas uno creado.
Te pongo un ejemplo donde puede aplicarse:
Supongamos que ya tienes creado un record set de toda la tabla de clientes con el cual creas un browse, ahora imagina que deseas... |
ADO -> Metodo Clone() | Armando,
Gracias. He experimentado un poco y mi conclusion es: Nosotros creamos un RecordSet con seleccion de datos a gestionar. Con el :Clone(), podemos rapidamente disponer de un objeto referencia q nos permitira hacer busquedas, filtros, y manipulaciones de los datos clonados. El bookmark siempre es el mismo q el o... |
ADO -> Registros en un recordset | Hola,
No se si digo una tonteria, pero como puedo saber los registros que hay un recordset, una vez he reallizado el :Open() ?
Gracias. |
ADO -> Registros en un recordset | Si la cadena es cCadenaRecordset := "Select nombre, calle, numero from clientes" una vez que obtengas el recordset lo puedes recorrer de la siguiente manera
While( !oRecordSet : Eof() )
? oRecordSet : Fields( "nombre" ) : Value, oRecordSet : Fields( "calle" ) : Value, oRecordSet : Fields( "numero" ) : Value
o... |
ADO -> Registros en un recordset | Hola Horacio,
Gracias, pero yo quiero saber si existe alguna funcion, metodo, variables, ... sin tener q recorrerme todo el recordset <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Gracias. |
ADO -> Registros en un recordset | Horacio, asi :
? 'No. de Registros '+ str( oRs:Recordcount() )
Saludos
Joel Andujo |
ADO -> Registros en un recordset | Joel,
Joder gracias !!! -> A veces un arbol no te deja ver un bosque <!-- s:mrgreen: --><img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green" /><!-- s:mrgreen: -->
Gracies. |
ADO -ms-sql - xharb 1.0 - create database user schema? | I have to create a database in MS-Sql server automatically from my install program.
Is it possible, using ADO, to issue direct native "sql-string" calls to a sql-server to create the following?
- users
- databases
-schemas? |
ADO -ms-sql - xharb 1.0 - create database user schema? | I am doing with Oracle + ADO (users + schemas) |
ADO -ms-sql - xharb 1.0 - create database user schema? | Don
Generally I have to get our DBA's involved to set up a database for me and set up a userid for my connection.
Once that is done .. I control the application ( users ) thru tables .. Hopefully you will be given 'create' and 'drop' rights ..
I have my own 2005 SQL server that I use as my development box .. and I... |
ADO -ms-sql - xharb 1.0 - create database user schema? | Once a database is created, we can create tables, indexes, even procedures through ADO. Both on Oracle and MSSQL.
One way is by sending the create scripts as commands in execute method and another way is to use ADOX.
In any case the user logged in should have create permissions.
I do not know if we can create datab... |
ADO -ms-sql - xharb 1.0 - create database user schema? | It works for me on MS SQL server 2005
[code:1fsdwoe8]
#INCLUDE "FIVEWIN.CH"
#INCLUDE "xbrowse.CH"
//----------------------
Function main()
LOCAL oRs1,oRs2,oRs3,oErr,cSQl1,cSql2, cSQL,cTitle,oBrw,oWnd
msgInfo("Start")
cSQL := "create database jbc"
cSql1:= "CREATE LOGIN jbc2 WITH... |
ADO -ms-sql - xharb 1.0 - create database user schema? | Mr Eugeniusz Owsiak
Thanks for the info. |
ADO -ms-sql - xharb 1.0 - create database user schema? | I will try the test for creating databases provided by Mr Owsiak. This may be just what I was looking for.
I would like to deliver our applications to clients with complete seamlessness for end users. Many of our end users are not very computer savy.
MS-Sql server is becoming quite popular and dependable and many s... |
ADO -ms-sql - xharb 1.0 - create database user schema? | Eugeniusz,
I wanted to take a moment to thank you for your examples of creating a MS-SQL database, login, user, and schema. Your examples were very helpful, and your response is greatly appreciated.
I did modularize the calls to allow calling each create individually. Also for flexibility, we capture the varaibl... |
ADO -ms-sql - xharb 1.0 - create database user schema? | Mr Lowenstain
You can also from management studio
1. make setup of database, users, logins schemas etc
2. creating backap to file,
3. copying backap file to your didrtibution media
4.restoring database with this script:
[code:33j6weqd]
#INCLUDE "FIVEWIN.CH"
//----------------------
Function main()... |
ADO .. how to write ctod('00/00/00') to MS Sql Server | To All
I have done several Google searches and not been able to find how to write a blank or null date to a datetime field in MS Sql server using ADO recordset update. Consider this example:
|DATE |
| null |
dDATE := oRs:Fields("DATE"):Value // xHarbour sees a NULL date as NIL
writing back a blank date
o... |
ADO .. how to write ctod('00/00/00') to MS Sql Server | Fernando
I am writing the same program in pure ADO and in ADORDD .. I have not tested the capability of writing rdd back to the table .. and I will do that .. MS SQL seems to be different in quite a few many ways as Access or MySql .. I have put my adordd program on hold for the time being because adordd uses indexes ... |
ADO .. how to write ctod('00/00/00') to MS Sql Server | To All .. the FIX
Here is some 'snipits' of my xHarbour thread with Jose Gimenez who has fixed the problem and is available in binary from his site or on CVS.
Rick Lipkin
SC Dept of Health, USA
//----------------------------
Rick,
> This works .. however it puts a DEFAULT date of 12/30/1899 in for the NIL
> para... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | hi,
i "read" *.XLSx using ADO to display in XBROWSE
that "sems" to work ... so far
but LEN of ALL FIELDs are "maximum" LEN <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
---
does Function FWAdoStruct(objRS) work only on "active" Record <!-- s:?: --><img ... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | That is the issue with ADO with Excel.
Whatever length you specify while creating the table, that is ignored.
ADO RecordSet field object always shows oField:DefinedSize as 255. |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | [quote:3rit79qs]does Function FWAdoStruct(objRS) work only on "active" Record <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[/quote:3rit79qs]
It should work on both existing and blank records, but let me check again.
Please post a DBF Structure here so that we both... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | hi,
[quote="nageswaragunupudi":34lzt3bv]That is the issue with ADO with Excel.[/quote:34lzt3bv]
ok, understand |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | [quote="nageswaragunupudi":1vdqkomm][quote:1vdqkomm]does Function FWAdoStruct(objRS) work only on "active" Record <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: -->
[/quote:1vdqkomm]Please post a DBF Structure here so that we both work on the same structure[/quote:1vdqko... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | FWAdoStruct() gets the information from each field object of the RecordSet.
The issue with ADO for Excel is, whatever length of char we specify it always returns 255.
oField:DefinedSize.
Please try this:
[code=fw:r5paqw7q]<div class="fw" id="{CB}" style="font-family: monospace;"> n := <span style="color: #00000... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | hi,
i have found this
[quote:15kfqx2v]You need ADOX to do it.
This is how you would create the excel file
[code=fw:15kfqx2v]<div class="fw" id="{CB}" style="font-family: monospace;">Dim cat As ADOX.Catalog<br />Dim tbl As ADOX.Table<br />Dim col As ADOX.Column<br /><br />Set cat = <span style="color: #00C800;">New<... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | hi,
i have ask ChatGPT and got this
[code=fw:2cn8sr60]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">LOCAL</span> cat, tbl, col<br /> ... |
ADO / Excel / XBROWSE / FWAdoStruct() / Edit() | Yes, we can use ADOX also. |
ADO /MYSQL con WBROWSE | Como se puede trabajar ADO con MYSQL con wbrowse con tablas vaciasSAludos |
ADO /MYSQL con WBROWSE | Pues consistemciandolo ::oDatos:=CreateObject("adodb.Recordset") ::oDatos:CursorLocation := 2 //3 //adUseServer //adUseClient ::oDatos:LockType := 3 // adLockOptimistic ::oDatos:CursorType := 1 // adOpenKeyset ::oDatos:Source:=cStatement ::oDatos:ActiveConnection:=::oCon... |
ADO /MYSQL con WBROWSE | perdon es este metodoolbx:bLine:={ || if(::oDatos:RecordCount()=0,array( elem), |
ADO : Building columns NULL ... DEFAULT | Hello ,
Working with ADO i am trying to understand field definitions as :
CREATE TABLE TestTable ( ID COUNTER PRIMARY KEY ,
[FIELD2] CHAR(20) NOT NULL DEFAULT 'Fivewin power' ,
[FIELD3] NUMERIC(10,0) DEFAULT 0 )
[code=fw:2mzi6sp8]<div class="fw" id="{CB}" style="font-family:... |
ADO : Building columns NULL ... DEFAULT | Assigning nil is equivalent to assigning NULL.
When we assign NULL, server does not use Default value. Server thinks that we wanted the value to be NULL overriding the default value.
So it is desirable to assign DEFAULT. This can be done either by omitting the assignment in SQL statement of specifically assigining DEF... |
ADO : Building columns NULL ... DEFAULT | Rao ,
I am not sure that you answered the question .
Building the table with
CREATE TABLE TestTable ( ID COUNTER PRIMARY KEY ,
[FIELD2] CHAR(20) NOT NULL DEFAULT 'Fivewin power' , ... )
....
oRs:AddNew()
FIELD2 must become the value "Fivewin power" .
Will Ors:Fields("FIELD2"):Value := AdoDefault() do so ?
or doe... |
ADO : Building columns NULL ... DEFAULT | Frank
I am not familiar with "Default" .. I am a bit old fashioned and like to write out my code without taking too many shortcuts .. understand Rao has created some VERY nice Ado wrappers and can simplify the code below .. however, Consider this example:
[code=fw:3ekvvz93]<div class="fw" id="{CB}" style="font-family:... |
ADO : Building columns NULL ... DEFAULT | Rick
He is writing a generic DBU.
How does he know what value to be assigned?
[quote:336nykb8]
oRs:Fields("Field2"):Value := "Fivewin power"
[/quote:336nykb8]
How does he know that the default value is "Fivewin power" ?
That is the question he is asking. |
ADO : Building columns NULL ... DEFAULT | Rao ,
ADO has not the possibility to retrieve the Default value ? Wright ?
It is not difficult to build DBU , writing the Default values in an ini-file when the table is created with DBU.
But opening an ADO file , created outside DBU , the default value can't be retrieved (i suppose)
Frank |
ADO : Building columns NULL ... DEFAULT | ADO does not retrieve default values.
ADO converts all Save()s into INSERT or UPDATE SQL statements and executes on the server. Assigning a NULL value also over-rides default. Through SQL, the ways to write default values are (1) do not specify a value for the field or (2) specify DEFAULT as value for the field.
Eg:
... |
ADO : Building columns NULL ... DEFAULT | [quote:2npqwgm0]It is not difficult to build DBU , writing the Default values in an ini-file when the table is created with DBU.
[/quote:2npqwgm0]
Assigning default values explicitly is not proper. This is the job of the server and we should let the server do it.
The way is to use AdoNew( <fields>, <values> ) |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Un saludo a todos los colegas del Foro
Estoy largo rato intentando encontrar la solución a este problema y me doy por vencido.
He implementado un BROWSE en el cual se dan las típicas opciones de Modificar, Adicionar y Eliminar Registros, usando los métodos del objeto Recordset de ADO. Funciona Muy bien cuando se tra... |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Marcelo,
Para conseguir un 'browse' a lo xBase debes tener en cuenta:
a. Que el proveedor que utilizas sea capaz de manejar cursores dinámicos.
b. Que abras un recordset cliente y dinámico.
No obstante lo anterior, abrir un recordset de esas características, cuando hay varios terminales 'atacando' al mismo 'browse'... |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Gracias por tu interés José Luis.
Seguiré buscando la forma..., creo que en este punto voy a tener que hacer consultas SQL independientes usando el objeto command para comparar entre el valor actual del field del recordset y el que me entregue la consulta.... seguiré probando
Un saludo
Marcelo Jingo |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Marcelo,
[quote:darcis7y]Seguiré buscando la forma..., creo que en este punto voy a tener que hacer consultas SQL independientes usando el objeto command para comparar entre el valor actual del field del recordset y el que me entregue la consulta.... seguiré probando [/quote:darcis7y]
Quizás no te he entendido bien..... |
ADO : Entorno Multiusuario Ayuda (Solucionado) | José Luis,
Como dije, si un solo usuario se conecta al Servidor de Base de Datos(MySQL), no hay problema, el browse del recordset trabaja muy bien realizando actualizaciones, altas o eliminando registros, usando sus respectivos métodos, cuyas modificaciones se reflejan inmediátamente en el Servidor.
Pero si 2 o más u... |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Amigo y por que no simplemente colocas un timer() para que refresque el browse, creo que esto soluciona tu problema.
Un Saludos
LEANDRO ALFONSO |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Saludos Leandro
Si no puedo capturar los errores desde Harbour, probaré pasándome a xHarbour que allí sí creo que se puede capturarlos usando TRY CATCH END. Si eso no funciona trataré de utilizar el TIMER que me recomiendas. Lo que se intenta es que la aplicación consuma menos recursos tanto del equipo como e la red... |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Es necesario un timer
cuando se usa un browse para monitorear los datos,
activate dialog oDlg centered on init ( mitimerOn() )
static function MiTimerOn()
DEFINE TIMER oTimer of oDlg INTERVAL 5000 ACTION TimerAction()
activate timer oTimer
return |
ADO : Entorno Multiusuario Ayuda (Solucionado) | César y Leandro
He probado colocando el timer, en efecto funciona ..... peeero, sucede lo que ya esperaba, que apenas si estoy navegando por el browse, este se va a la primera fila, cada intervalo que se ha definido el timer. impidiendo una navegación limpia.
Creo que tendré que implementar un control más riguroso en... |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Marcelo,
¿Puedes mostrarnos cómo creas el recordset?
¿Contra cual base de datos?
¿Cual proveedor usas? |
ADO : Entorno Multiusuario Ayuda (Solucionado) | Gracias José Luis, César y Leandro.
Con el apoyo de todos ya lo he solucionado y me funciona perfecto. La solución fue colocar el timer y controlando los posibles errores que podemos encontrar en la navegación.
Gracias de nuevo.
Marcelo Jingo |
ADO : doesn't work anymore | Hello ,
I used to work with ADO (mdb-files) , till last month no problems.
Since then i can't changed data in a mdb-file , i.e.
(see also <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=33115">viewtopic.php?f=3&t=33115</a><!-- l -->)
[code=fw:2xs7mikh]<div class="fw" id... |
ADO : doesn't work anymore | Franklin
see this post :
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26102&start=15">viewtopic.php?f=3&t=26102&start=15</a><!-- l -->
Rick Lipkin |
ADO : doesn't work anymore | [quote:1toj9ef4]
? oRs:CursorType , oRs:CursorLocation , oRs:LockType // 3,3,3 !!!!!
// Is it normal that cursortype is changed in 3 ?
[/quote:1toj9ef4]
Always and at all times, a client side record-set is opened with cursor-type adOpenStatic only, whatever cursortype we specify while opening the recordset. In oth... |
ADO ??? | Hola a todos del foro
Disculpen mi ignorancia, pero quiero saber Que es ADO, para que sirve, en que se utiliza.
Es que quiero migrar mis sistemas a Cliente/Servidor.
Salu2
Francis |
ADO ??? | <!-- m --><a class="postlink" href="http://es.wikipedia.org/wiki/ActiveX_Data_Objects">http://es.wikipedia.org/wiki/ActiveX_Data_Objects</a><!-- m --> |
ADO AbsolutePosition in 64bit problem | Hi,
In my 32bit version I use this code to update a query, and stay on the same record.
[code=fw:gwgrw5gv]<div class="fw" id="{CB}" style="font-family: monospace;">vrec := oRs:<span style="color: #000000;">AbsolutePosition</span><br />oRs:<span style="color: #000000;">Requery</span><span style="color: #000000;">(<... |
ADO AbsolutePosition in 64bit problem | Marc
You can always do this the brute force way by saving your primary key to a variable and then requery and go back and find ..
[code=fw:24e6phhp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Local</span> nPrimKey<br /><br />nPrimKey := oRs:<span style="color: #00000... |
ADO AbsolutePosition in 64bit problem | Hi,
I found the solution. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[code=fw:1fwbxd9x]<div class="fw" id="{CB}" style="font-family: monospace;">oRs:<span style="color: #000000;">AbsolutePosition</span> := vrec</div>[/code:1fwbxd9x]
is working
Strange that in the... |
ADO AbsolutePosition in 64bit problem | Marc
I like your solution much better and more elegant. Thanks for the feedback!
Rick Lipkin |
ADO AbsolutePosition in 64bit problem | [quote="Marc Vanzegbroeck":229g19la]Hi,
I found the solution. <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
[code=fw:229g19la]<div class="fw" id="{CB}" style="font-family: monospace;">oRs:<span style="color: #000000;">AbsolutePosition</span> := vrec</div>[/code:229g... |
ADO AbsolutePosition in 64bit problem | I'm not certain which class is in use in this case, but looking at the source to TArrData and TRecSet I see that AbsolutePosition is an access value, and AbsolutePosition() is an assignment method. Give this I would expect oRS:AbsolutePosition := N to fail.
---------- TARRDATA.PRG
ACCESS AbsolutePosition INLINE ::... |
ADO AbsolutePosition in 64bit problem | AbsolutePosition is a property not a method. Please look at the MS docs:
[url:9zcaq4ao]https://msdn.microsoft.com/en-us/library/ms676594(v=vs.85).aspx[/url:9zcaq4ao]
EMG |
ADO Absoluteposition | To All
I am running a roadblock and need to be able to store a recno to an array of 10 records. The only way I know how to update a record was to store the record number of the table in an element. WHen I go update the rows .. I just goto nRecno and Update my variables.
I do not have a problem getting a "suedo" recor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.