Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Toni Feltman
  Where is Toni Feltman?
 Toledo
 Ohio - United States
 Toni Feltman
 To: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 Tags
Subject: RE: FoxPro / ORACLE / ODBC / Foreign
Thread ID: 202066 Message ID: 202884 # Views: 41 # Ratings: 0
Version: Visual FoxPro 9 Category: ODBC, ADO and OLEDB
Date: Monday, November 10, 2008 4:17:20 PM         
   


> > Ok, so what I am I missing. When I execute the following code against my Oracle database using SQL Developer (Oracle SQL tool)
> >
> > SELECT NewLongDesc FROM product WHERE Stk_Num = 'YYU58949441A';
> >
> > I get results like this.
> >
> > sdfaáááásadf
> >
> > When I execute the same in Fox, I get this.
> >
> > sdfaaaaasadf
> >
> > I tried SYS(987). The field is a NCLOB in Oracle but I have a similar problem with a CLOB. I know that this is a codepage/translation...etc issue but I can't figure out what setting I need to change.
> >
> > Thanks so much in advance!
>
> Toni,
>
> What is your Oracle DB and ODBC driver version?
>
> (Just made a test with a testTable.clobTest in Oracle 10g containing your string and got it back as it is via SPT in Vfp thru Oracle Client ODBC (sqora32.DLL) version 10.01.00.30)
>
>
> Regards
> -Stefan

Thank you so much for you reply. We are using Oracle 10g and I am using the instant client ODBC driver version 11.01.00.06. Here is my script to create the test table:

CREATE TABLE testTable (clobTest clob);
INSERT INTO testTable (clobTest) VALUES ('sdfaáááásadf');
COMMIT;

Then, from Foxpro, I do this:

lnhandle = SQLSTRINGCONNECT('Driver=Oracle in instantclient11_1;UID=username;PWD=password;DBQ=//DEVDB/MWTDEV.MIDWEST.LOCAL;')
? SQLEXEC(lnHandle, 'select * from testTable')
BROWSE

I do not see the accent characters in the Browse window or if I refer to the field directly.

I do not think I have any general VFP data configurations set differently from the default. What about you?



COMPLETE THREAD
FoxPro / ORACLE / ODBC / Foreign Posted by Toni Feltman @ 11/5/2008 6:15:15 PM
RE: FoxPro / ORACLE / ODBC / Foreign Posted by Stefan Wuebbe @ 11/7/2008 10:00:57 AM
RE: FoxPro / ORACLE / ODBC / Foreign Posted by Toni Feltman @ 11/10/2008 4:17:20 PM
RE: FoxPro / ORACLE / ODBC / Foreign Posted by Stefan Wuebbe @ 11/11/2008 7:11:12 AM
RE: FoxPro / ORACLE / ODBC / Foreign Posted by Toni Feltman @ 11/12/2008 5:26:16 PM
RE: FoxPro / ORACLE / ODBC / Foreign Posted by Stefan Wuebbe @ 11/12/2008 5:30:08 PM