 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Peter Tickler Guest
|
Posted: Mon Aug 16, 2004 10:29 am Post subject: Varchar data being truncated |
|
|
I have set up a table with a field called 'Notes' of datatype Varchar
(3000). I am using SQL Server 7.
This works fine from my Delphi 6 web application.
But, when I access this field from my Delphi 6 desktop application, via an
ADOconnection, the data entered is being truncated to a length of 255
characters.I am using persistent fields, and have assigned a size of 3000 to
this field.
Can anyone tell me how to get round this?
Peter Tickler
|
|
| Back to top |
|
 |
Peter Tickler Guest
|
Posted: Mon Aug 16, 2004 10:49 am Post subject: Re: Varchar data being truncated |
|
|
Sorry, I got bit of Info wrong. I am using ODBC to connect from this
application, not ADO.
Peter
|
|
| Back to top |
|
 |
Mario *LigH* Rohkrämer Guest
|
Posted: Mon Aug 16, 2004 2:39 pm Post subject: Re: Varchar data being truncated |
|
|
I wonder if you compiled your application to use wide strings ("Huge
Strings" = AnsiString, $H+) by default, or short strings (Turbo Pascal like,
$H-). Just an idea, not sure if this can be a reason at all...
"Peter Tickler" <ptickler (AT) potato (DOT) org.uk> schrieb im Newsbeitrag
news:41209186$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Sorry, I got bit of Info wrong. I am using ODBC to connect from this
application, not ADO.
Peter
|
|
|
| Back to top |
|
 |
Mike Shkolnik Guest
|
Posted: Mon Aug 16, 2004 5:47 pm Post subject: Re: Varchar data being truncated |
|
|
Try to change the type of persistent field to ftMemo instead ftString
--
With best regards, Mike Shkolnik
E-mail: [email]mshkolnik (AT) scalabium (DOT) com[/email]
WEB: http://www.scalabium.com
"Peter Tickler" <ptickler (AT) potato (DOT) org.uk> wrote
| Quote: | I have set up a table with a field called 'Notes' of datatype Varchar
(3000). I am using SQL Server 7.
This works fine from my Delphi 6 web application.
But, when I access this field from my Delphi 6 desktop application, via an
ADOconnection, the data entered is being truncated to a length of 255
characters.I am using persistent fields, and have assigned a size of 3000
to
this field.
Can anyone tell me how to get round this?
Peter Tickler
|
|
|
| Back to top |
|
 |
|
|
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
|
|