Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Barak Ros
  Where is Barak Ros?
 TLV
 Israel
 Barak Ros
 To: Koen Piller
  Where is Koen Piller?
 Santpoort-Zuid
 Netherlands
 Koen Piller
 Tags
Subject: RE: import mySql memo into V FP
Thread ID: 194026 Message ID: 194978 # Views: 22 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Thursday, September 18, 2008 12:34:45 PM         
   


> >
> > hi
> > I have this problem also and I am using vfp6
> > you need to install the latest odbc connector 5.1 and then you need to set a flag called
> > "LIMIT column size to signed 32-bit range" to check (even if it sound like it the opposite)
> > this flag can be found when clicking Details button on tab "Flag 3"
> > you also can check the flag "allow big results set" on tab "Flag 1"
> > that works for me.
> > you can also take a look here:
> > "Wrong field type for longtext is returned to Visual Foxpro, data are truncated"
> > http://bugs.mysql.com/bug.php?id=30890
> >
> > barak
>
> Barak,
> Thanks a lot, that did it. Have now installed 5.1 and checked the flag on tab3. My rating for you.
> Shalom.
> Koen

thanks
also FYI there is a way doing that in a dsnless way:
the option number of that Flag is : 134217728
when browsing the LONGTEXT field becomes a Memo field
example:
lcServer=myServername &&or server ip
lcDatabase=mydbname
lcUser = myusername
lcPassword = mypassword
lcStringConn="Driver={MySQL ODBC 5.1 Driver};Port=3306;option=134217728"+;
             ";Server="+lcServer+;
             ";Database="+lcDatabase+;
             ";Uid="+lcUser+;
             ";Pwd="+lcPassWord
*** Don't prompt for login
SQLSETPROP(0,"DispLogin",3)

lnHandle=SQLSTRINGCONNECT(lcStringConn)
IF lnHandle  > 0
      
   SQLEXEC(lnHandle  , "select * from atable","curTemp")
   brow
      
   SQLDISCONNECT(lnHandle)
ELSE
   =AERROR(laError)
   MESSAGEBOX("Error at Connecting"+CHR(13)+;
              "Description:"+laError[2])
ENDIF


barak



COMPLETE THREAD
import mySql memo into V FP Posted by Koen Piller @ 9/13/2008 12:01:41 AM
RE: import mySql memo into V FP Posted by Anders Altberg @ 9/13/2008 2:11:46 AM
RE: import mySql memo into V FP Posted by Carlos Alloatti @ 9/13/2008 5:05:20 AM
RE: import mySql memo into V FP Posted by Anil Sharma @ 9/13/2008 6:48:33 AM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/13/2008 8:19:55 AM
RE: import mySql memo into V FP Posted by Anil Sharma @ 9/13/2008 8:24:21 AM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/13/2008 12:37:00 PM
RE: import mySql memo into V FP Posted by Anil Sharma @ 9/13/2008 1:18:51 PM
RE: import mySql memo into V FP Posted by OM RAJAN @ 9/14/2008 5:12:12 PM
RE: import mySql memo into V FP Posted by Carlos Alloatti @ 9/13/2008 3:55:11 PM
RE: import mySql memo into V FP Posted by Anders Altberg @ 9/13/2008 3:07:51 PM
RE: import mySql memo into V FP Posted by Barak Ros @ 9/13/2008 10:40:00 PM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/14/2008 12:59:37 AM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/18/2008 12:22:38 PM
RE: import mySql memo into V FP Posted by Barak Ros @ 9/18/2008 12:34:45 PM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/18/2008 9:30:17 PM
RE: import mySql memo into V FP Posted by Barak Ros @ 9/19/2008 12:24:45 AM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/19/2008 12:34:17 AM
RE: import mySql memo into V FP Posted by Tom Saddul @ 9/15/2008 9:25:05 AM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/15/2008 11:24:41 PM
RE: import mySql memo into V FP Posted by Tom Saddul @ 9/16/2008 7:12:32 AM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/16/2008 10:30:28 PM
RE: import mySql memo into V FP Posted by Anders Altberg @ 9/18/2008 2:01:45 PM
RE: import mySql memo into V FP Posted by Koen Piller @ 9/18/2008 8:51:27 PM