Click to See Complete Forum and Search --> : Query


Reghu
February 7th, 2000, 06:18 AM
Hi,
I wanted to know whether i can specify the Language related information in the dsn entry. I am getting strange errors when i try to populate my recordset with values from the client database. The client database contains some characters like ü,õ, etc. The clients database is, i think, in German. While saving records with these values to my database it is giving me error like `Error string concatination, numeric overflow and bla bla`. I am using ODBC DRIVER FOR INTERBASE BY INTERSOLV.

Thanks in advance.

Initiative is to success what a lighted match is to a candle...

Lothar Haensler
February 7th, 2000, 08:08 AM
I suggest you set the following switch in your DSN:
OEMTOANSI=YES

Reghu
February 7th, 2000, 10:28 AM
No it is also not working. I am getting the same error. I will just quote my connection string:

with cnn#########
.Provider = "MSDASQL.1"
.ConnectionTimeout = 33
.ConnectionString = "DSN=" & strDsn & ";uid=***;PWD=****;OEMTOANSI=YES"
.CursorLocation = adUseClient
.Open
End With






Initiative is to success what a lighted match is to a candle...

Lothar Haensler
February 7th, 2000, 10:30 AM
OEMTOANSI is NOT part of your connection string but an element of the DSN definition in control panel

Reghu
February 7th, 2000, 10:43 AM
Hi,

But i cannot see any such option in my control panel/32 bit Odbc Data Source Administrator. I searched thru the driver-specific data source setup dialog box for my data source.





Initiative is to success what a lighted match is to a candle...

Lothar Haensler
February 7th, 2000, 10:46 AM
I'm afraid I can't help you, because I work on a German NT PC. All ODBC Control panel settings are in German. I can see the parameter, but I have no idea what it looks like in an English installation.

Reghu
February 7th, 2000, 10:57 AM
Hi,

Can u just tell me where this option is found in your pc. Is it in the main window or inside a specific driver setup dialog box?



Initiative is to success what a lighted match is to a candle...

Lothar Haensler
February 7th, 2000, 11:01 AM
I start ODBC settings from Control panel, select a DSN and hit Configuration. Then, it's on the fourth step of the configuration wizard.
But, be aware that this might look very different on another machine, depending on the version of MDAC, or ODBC.
I'm out a here for today, see you tomorrow...

Johnny101
February 7th, 2000, 01:28 PM
There is a parameter in the connection string called Auto-Translate that functions as the translator you are looking for. Use this instead of OEMTOANSI...


with cnn
.Provider = "MSDASQL.1"
.ConnectionTimeout = 33
.ConnectionString = "DSN=" & strDsn & ";uid=***;PWD=****;Auto-Translate=true;"
.CursorLocation = adUseClient
.Open
End With




Try that.

Hope that helps,
John

John Pirkey
MCSD
www.ShallowWaterSystems.com

Reghu
February 8th, 2000, 02:54 AM
Hi,
I tried giving Auto-Translate option but it is giving an error - `Error parsing connect string at offset 39`. This error is thrown by the ODBC Driver for Interbase.



Initiative is to success what a lighted match is to a candle...

Reghu
February 9th, 2000, 03:49 AM
Hi,
I myself found out the bug out of my application. This error was b'cuz of the odbc driver. The driver was not really translating the data. I imported my database to Access from interbase and tried my program and it works. So i have contacted Borland for the fix.

Thank u very much for all ur valuable suggestions.

Bye

Initiative is to success what a lighted match is to a candle...