Quantcast
Channel: Advantage Database Forum - latest questions
Viewing all 105 articles
Browse latest View live

ADS 11 freeze

$
0
0

I have a client with a 35-user database and lately they have problems everyday with the database freeze. When frozen I see the ads configuration utility show the time going but all the column stay with the same numbers. none of the clients or Arc32 can access any of the databases. After stopping the service and getting the message that it was successful, I still have to go and stop the process in Task Manager. The only thing I noticed is all 32 Work threads are used. All tables are ADT in DD. There are nine database getting replicated from outside and five internal database that replicate to each other. The freeze only happen when using the internal databases that write to two different databases. This setup have been working for almost a year and it started for a couple of weeks ago and it escalated since. I made all connection \ip:port\company\data in the ads.ini It is the latest version of ADS11, there is no dump file and nothing in the adt_err.adt. Windows 7 Pro.

We have a procedure that sends an Email could that lock up the ADS?


How to update and then delete a record inside of a transaction

$
0
0

I have a problem related to transactions + RI rules.

I have a master/detail table set up. I have an RI rule set up on these tables to Update/Cascade and Delete/Set Null.

I begin a transaction.

I update a child detail record (to reset default values).

I delete the parent header record.

This causes the following error: QryTemp: Error 7200: AQE Error: State = HY000; NativeError = 5035; [iAnywhere Solutions][Advantage SQL][ASA] Error 5035: The requested lock could not be granted. The file or record may be locked by another user. This record lock was necessary because of a cascaded update or delete due to exising referential integrity rules. Table: \FS01\CON1\STOPS.ADT Record #: 46079

Why is the engine considering the child record locked when both operations happen under the same AdsConnection object, and within the same transaction. This code works fine outside of the transaction.

Thanks for your time, Dusten

Access Violation in Locate

$
0
0

I am using Advantage Delphi Components 11.10.0.24 (ACE 11.10) Delphi XE8
When I try "Locate" I get an error "Access Violation". I am working with DBF table(ttAdsCDX)
Why???(In version 11.10.0.10 and XE4 this error did not occur)

Test application you can download from https://cloud.mail.ru/public/MR13/RJXT69btp because when I try attach in forum I get "sorry, file uploading requires karma>60"
Thank you

changing characters `ß`to `ss`do not function

$
0
0

I need data from an ADS for a new applikation.

Because the special characters are not correctly indicated, I would want this in that query already changed. All special characters function, only 'ß' to 'ss' not.

Here the sql-statement:

SELECT
    LEFT(r1.bm_name, 4) AS "Kostenstelle"
  , r2.artikelnr
  , r1.begonnen
  , r1.fertig
  , REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(r2.bezeichnung
    , '"', ''  )
    , 'ä', 'ae')
    , 'ö', 'oe')
    , 'ü', 'ue')
    , 'ß', 'ss')
    , 'Ä', 'Ae')
    , 'Ö', 'Oe')
    , 'Ü', 'Ue')       AS "bezeichnung"
FROM work_schdl r1, work_main r2
WHERE
      r1.pzs_name = 'SPRITZEN'
  AND r1.begonnen IS NOT NULL
  AND r1.fertig IS NULL
  AND r1.bauftragnr = r2.bauftragnr
  AND r2.status < 4
ORDER BY
    "Kostenstelle"
  , r1.begonnen

Is there any ADS 10.10 update to fix 2146: Unable to do ORDER BY?

$
0
0

We receive the following error when querying large tables with Advantage Database Server 10.10.0.28 on Windows 2008 Server. Client is Delphi 2009 application.

Error 7200: AQE Error: State = S0000; NativeError = 2146; [iAnywhere Solutions][Advantage SQL Engine]Unable to do ORDER BY

I read everything I could, including the documentation before posting:

http://devzone.advantagedatabase.com/dz/webhelp/advantage11/index.html?error_2146_unable_to_perform_sort_for_order_by_or_distinct.htm

Problem: An error occurred while attempting to sort data for the SQL statement. The most likely cause is a problem with the file system (unable to create a temporary file, unable to write to the disk, etc.).

Solution: If using the Advantage Database Server, the temporary files used for sorting are created in the directory specified in the connect path. With Advantage Local Server, the system temp directory (e.g., the directory specified by the TEMP environment variable) is used for temporary files. Verify that the disk contains enough space for the sorting.

We have monitored the free disk space where temp tables would be made for ADS. It is roughly 24.3 GB free and does not significantly dip below that while running large queries. It seems unlikely to be the case. I am wondering if version 11.1 would solve the issue based on the bug fix for 2146 errors in that release.

This is significantly effecting clients. Are there any updates or configuration changes that address this issue?

Thank you.

NativeError = 2146; Unable to do ORDER BY

$
0
0

ADS Version 11.10.0.24

The query is simple: Select Top 50 * From Prim_Ins Where U_ID = <8-Characters> Order By U_ID,Rank

The results are usually no more than 10 records. We added the "Top 50" because we suspected an index issue and wanted to make sure the "world" wasn't returned in the result. The table has been reindexed, but the errors continue.

Table specs: Prim_Ins.dbf (FoxPro free table) Size: 3,312,550 KB Records: 3,728,304 No Memo Fields Single Compound Index (CDX) with a Tag On U_ID+STR(RANK,2) CDX Size: 27,810 KB

OS: Windows Server 2008 64bit, 4 GB RAM, 100 GB HD with 49 GB Free.

Data is located on Drive C of the server in a shared folder: C:\IVData

There are currently 398 files (95 dbf, 42 cdx, 13 fpt, and the rest tmp) in this folder.

I have seen others post similar errors, but no one seems to have a solution. And requests to support fall on deaf ears.

Data Arch

ADS.exe high RAM Usage - Crashes Server

$
0
0

We have a client that has ADS version 11.10.0.24 and the ADS.exe process continues to gradually consume more and more RAM until all the physical RAM and page file have ben consumed which then freezes the server. I also noticed that the log entries is continually growing and is now into 16,922,922 and growing and it looks like the high RAM usage and the logs may be related. Any help would be greatly appreciated.

Refresh on Master and Detail Queries

$
0
0

I am using 4 TADSQuery components on a form; 1 Master and 3 Detail, linked by a parameters and the TDataSource of the Master table.

When data is modified in another form, I am sending a message to the main form to update the data displayed there. Calling Refresh on the Master works fine, but on the Detail queries it appears to have no effect. The only way I can seem to "refresh" these is to call Close and Open...

Any suggestions why I get this behavior, or is it by design?


Delph 10 Seattle

$
0
0

Is there a planned upgrade path for Advantage Database server to windows 10 via Delphi 10 Seattle

TIA

John

DBF to ADT and unique index

$
0
0

I have converted a couple tables from dbf to adt file format.

Unfortunately, some indexes in the dbf table use the "unique" property, including only the first record of given multiple same keys in the index. Is there a way to mimic this behavior with an adt table/index

Thanks Oskar

Compatility with Windows 10

$
0
0

Is compatibility of Advantage 11x planned for Windows 10

AdsExtendedReader and speed/locks

$
0
0

Hi, I have written a replication program which uses the AdsExtendedReader (The reason I wrote my own is because of ADS problems using from ADT to DBF. Basically around deleted records).

I currently use an AdsExtendedReader which is very fast but I have a few users experiencing temporary freezing when using another program on the source database which is ADT.

I have a couple of questions :-

1) Does the AdsExtendedReader lock a record when executing the Read() or Seek() methods?

2) Would creating SQL statements to do the insert/update/delete operations be quicker on the DBF destination db (it does have a DD) than using the ExtendedReader due to caching etc...

Regards

Callback example in c#

$
0
0

Hi,

Is there an example somewhere for using AdsRegisterCallbackFunction in c#?

Nothing I've tried, so far, works

Thanks, Steve Ferrandino

Corrupt Indexes

$
0
0

We have a client on Version 10. Regularly, even daily, they are having what seems to be index corruption issues. Our software continues to run but extremely slowly and the CPU utilization on the server is maxed out by Advantage.

Restarting Advantage helps for about a day.

We get improved performance doing the following: An index rebuild doesn't fix it but deleting .ADI files and reopening the database does. That gives back the speed until the indexes go haywire again.

We don't have the issue elsewhere and have tried all we can think of.

We are about to lose this large customer so any help would be greatly appreciated!

Visual Studio 2015

$
0
0

Are you going to update the ADO.Net Data Provider to work in VS Designer 2015?


Configure ADS on Ubuntu to connect to .adm and .adt tables on Windows server

$
0
0

Hi,

I try to make queries from PHP5 on an Ubuntu 12.0.4 machine to a Windows 2008 server computer hosting .adm and .adt tables. I installed the plug-in Advantage ODBC Driver Release 9.1 but I can not get a connection to the database.

Could someone help me to configure ADS on Unbuntu to make the connection to a Windows .adm and .adt tables ?

Thank you.

Changed Field Name in ODBC but not in ARC

$
0
0

I am new in ADS, I am using Visual FoxPro for development and during my tests I hit an odd issue. A quite simple query works well using ARC but via ODBC, on exactly the same table, works a little different.
i.e. some field names are changed into "Expr"
I tried to attach some screen captures but it seems that I need more karma :)
So, the query is:

SELECT Lk_code, Lk_desc, True AS P_Selected FROM SLOOK WHERE Lk_Type='Y' 
UNION 
SELECT DISTINCT '' AS Lk_code,'N/A' AS Lk_desc, .T. AS P_Selected FROM Z_SLOOK 
ORDER BY 1;
In ARC it returns a cursor with Lk_code, Lk_desc, P_Selected as field names
Via ODBC it returns Expr, Expr_1, P_Selected as field names!
Note: SLOOK is a free table.


I made even more tests and I saw that if in the second select I have calculated fields but not all (!), I get "Expr" in ODBC.
i.e.
This works well

SELECT Lk_code, Lk_desc, True AS P_Selected FROM SLOOK WHERE Lk_Type='Y'
UNION SELECT DISTINCT Lk_code, Lk_desc, .T. AS P_Selected FROM SLOOK WHERE Lk_Type='B' ORDER BY 1;
This also works well
SELECT Lk_code, Lk_desc, True AS P_Selected FROM SLOOK WHERE Lk_Type='Y'
UNION SELECT DISTINCT LCASE(Lk_code), Lk_desc, .T. AS P_Selected FROM SLOOK WHERE Lk_Type='B' ORDER BY 1;
This doesn't work (instead of Lk_code the first column became Expr)
SELECT Lk_code, Lk_desc, True AS P_Selected FROM SLOOK WHERE Lk_Type='Y'
UNION SELECT DISTINCT 'A'+Lk_code, Lk_desc, .T. AS P_Selected FROM SLOOK WHERE Lk_Type='B' ORDER BY 1;
It looks like ODBC issue/bug to me.
Any help would be greatly appreciated!

Save script from ARC data import wizard

$
0
0

Is there an easy way to save a script from the ARC data import wizard to allow subsequent imports to be automated? Also, if using the wizard to import from a SQL database to .adt tables using the SQL Server Native Client connection, is it possible to only import the SQL tables and not the SQL views?

Thanks!

regular expressions

$
0
0

Is there a way to use regular expressions something like [0-9] to identify that You have only numbers. Or is there a function to detect '01235645700123A' is not only numbers? Convert and cast to SQL_DOUBLE send an error.

Thanks

ADS 11 Deployment on Multiple Servers

$
0
0

We have a 250-user licensed ADS 11 installation on one of our servers. The user limit is way too much, but we have another centre with a separate server (linked through a VPN to our main server) that requires ADS on it. Is it possible to install ADS 11 on that server (with a different port number and/or IP address) and use up some more of our user limit? Would one installation complain about the other? What can I do?

Viewing all 105 articles
Browse latest View live