Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi Fehlermeldung ADS (https://www.delphipraxis.net/59013-fehlermeldung-ads.html)

Grolle 15. Dez 2005 20:58

Datenbank: ADS Local • Version: 7.1 • Zugriff über: Dataset

Fehlermeldung ADS
 
Hallo!
Ein User bekommt bei meinem Programm folgende Fehlermeldung:
Zitat:

AdsTable1: Error 5175: The index file was created with a different collation sequence than is currently being used.
Weiss jemand was das bedeutet? Dieser Fehler tritt zum ersten Mal auf.
Kann es sein, dass bereits ein anderes installiertes Programm auf seinem Rechner den ADS nutzt?

Viele Grüße...

Union 15. Dez 2005 21:06

Re: Fehlermeldung ADS
 
Das bedeutet, dass Die Indexdatei unter einer anderen Sortierfolge erstellt wurde, als auf Deinem Rechner. Passiert z.B. wenn man auf seinem Rechner Sortierung auf Deutsch eingestellt hat (beim ADS) und versucht Demodaten eines US-Programms, bei dem die Index dabei sind, zu öffnen. Es hilft dann (wenn Du den ADS Local verwendest) die Erstellung einer INI-Datei mit Namen AdsLocal.cfg und folgendem Inhalt:
Code:
[SETTINGS]
ANSI_CHAR_SET=German
OEM_CHAR_SET=GERMAN
Dabei können folgende Sprachcodes zum Einsatz kommen:
Zitat:

Zitat von Advantage Helpfile
ANSI Character Set

Default = Use the currently configured ANSI character set that is active on the workstation. Options are: Baltic, Danish, Dutch, Engl(Amer), Engl(UK), Engl(Can), Finnish, French, French Can, German, Icelandic, Italian, Norwegian, Polish, Portuguese, Spanish, Span(Mod), Swedish, Russian, ASCII, or Turkish.
Keyword = ANSI_CHAR_SET
This is the ANSI character set that can be used when reading and storing data in tables opened with ANSI specified as the character set type. If this value is not specified, the currently configured ANSI character set on the workstation will be used. If you do not wish to use the ANSI character set that is active on the current workstation, this setting can be used to select one. This setting is useful to guarantee that the same ANSI character set is used both by local connections using the Advantage Local Server and remote connections to the Advantage Database Server. This setting does not apply to tables opened with OEM as the specified character set type.

OEM/Localized Character Set

Default = USA. Options are: USA, DANISH, DUTCH, FINNISH, FRENCH, GERMAN, GREEK437, GREEK851, ICELD850, ICELD861, ITALIAN, NORWEGN, PORTUGUE, SPANISH, SWEDISH, MAZOVIA, PC_LATIN, ISOLATIN, RUSSIAN, NTXCZ852, NTXCZ895, NTXSL852, NTXSL895, NTXHU852, NTXPL852, or TURKISH.
Keyword = OEM_CHAR_SET
This is the OEM/Localized character set used when reading and storing data in tables opened with OEM specified as the character set type. This setting does not apply to tables opened with ANSI as the specified character set type.

Du musst natürlcih rausfinden, unter welchem Charset der Index erstellt wurde.

Grolle 15. Dez 2005 22:18

Re: Fehlermeldung ADS
 
Ich werds testen. Danke für deine Antwort!
Greetz

joachimd 16. Dez 2005 08:55

Re: Fehlermeldung ADS
 
Einfacher: stelle in AdsTable das Property IndexCollationMismatch auf icmReindex, dann wird automatisch reindiziert. Aber Vorsicht :warn: Wenn Du diesselben Tabellen auf mehreren Rechnern mit Local Server nutzt, so kann es vorkommen, dass bei jedem Öffnen ein Reindex durchgeführt wird (weil uns MS mit jeder einzelnen Ausgabe von Windows eine andere Collation beschert :xmas: hat). Auf jeden Fall die von Union angesprochenen Einträge in den "adslocal.cfg"s nicht vergessen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 09:51 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz