Board index » delphi » Varchar greater than 255 characters

Varchar greater than 255 characters

Hi
I am using D4 + BDE 5.10 + SQL 7 on Win98. I have got a column in a table
created as varchar(1000) and a DBMemo control in a form that shows its
contents.
Unfortunately I cannot insert more than 255 characters using that
combination. What is the solution to that problem?

TIA
George

 

Re:Varchar greater than 255 characters


The solution is to use the 'Text' datatype, not 'varchar'.
The 'Text' datatype is used specifically to store texts.

"George" <macs...@compulink.gr> escreveu na mensagem
news:8jcesc$edh1@bornews.borland.com...

Quote
> Hi
> I am using D4 + BDE 5.10 + SQL 7 on Win98. I have got a column in a table
> created as varchar(1000) and a DBMemo control in a form that shows its
> contents.
> Unfortunately I cannot insert more than 255 characters using that
> combination. What is the solution to that problem?

> TIA
> George

Re:Varchar greater than 255 characters


This is because the SQL Links driver uses DBLib which does not support > 255
chars or unicode. You need to swith to ODBC or OLE DB(ADO)

-Euan

Quote
"George" <macs...@compulink.gr> wrote in message

news:8jcesc$edh1@bornews.borland.com...
Quote
> Hi
> I am using D4 + BDE 5.10 + SQL 7 on Win98. I have got a column in a table
> created as varchar(1000) and a DBMemo control in a form that shows its
> contents.
> Unfortunately I cannot insert more than 255 characters using that
> combination. What is the solution to that problem?

> TIA
> George

Other Threads