BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi 5 to mySQL ODBC

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases
View previous topic :: View next topic  
Author Message
GlennDJones@hotmail.com
Guest





PostPosted: Fri May 13, 2005 1:18 am    Post subject: Delphi 5 to mySQL ODBC Reply with quote



I am trying to access mySQL via ODBC - this bit is sucessful. If I
create a BDE alias and access the tables via the standard TQuery my
VARCHAR fields are returned as strings (i.e. the Field Defs are
TStringField).

If I use TADOConnection and TADOQuery and connect directly to the ODBC
configuration (bypassing BDE) my VARCHAR fields are returns as memo
fields (TMemoField).

I assume there is a noticable performance hit in using BDE to get to
ODBC - does anyone disagree?

Does anyone know how to 'fix' the problem with mismatch field types? I
have applied the Delphi 5 ADO Update 2 patch.

Thanks in advance
G

Back to top
ramu
Guest





PostPosted: Thu May 19, 2005 4:38 am    Post subject: Re: Delphi 5 to mySQL ODBC Reply with quote



Quote:
I assume there is a noticable performance hit in using BDE to get to
ODBC - does anyone disagree?
Yes there is lots of performace issue with BDE.


Which type you want to have Memo or String. ?

Depending on that u can change the field type in the query field
editor.

Hope this helps you

Regards
Rams.


Back to top
GlennDJones@hotmail.com
Guest





PostPosted: Sat May 21, 2005 10:28 pm    Post subject: Re: Delphi 5 to mySQL ODBC Reply with quote



I want a String back (the field is only 14 characters long). I've
tried changing the field type but get the same error. Thanks for the
suggestions.

Glenn

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.