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 

Varchar data being truncated

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Peter Tickler
Guest





PostPosted: Mon Aug 16, 2004 10:29 am    Post subject: Varchar data being truncated Reply with 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
Peter Tickler
Guest





PostPosted: Mon Aug 16, 2004 10:49 am    Post subject: Re: Varchar data being truncated Reply with quote



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





PostPosted: Mon Aug 16, 2004 2:39 pm    Post subject: Re: Varchar data being truncated Reply with quote



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





PostPosted: Mon Aug 16, 2004 5:47 pm    Post subject: Re: Varchar data being truncated Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) 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.