Re: String field length truncated to 255
- From: "samual" <Samual@xxxxxxxxxx>
- Date: 22 Sep 2005 13:42:59 -0700
Davel wrote:
> Help,
>
>
> I'm using D7, ado connecting to Microsoft sql server 2000.
>
> driver is SQLOLEDB.1 in the connection string.
>
> Now for the problem:
>
> One of the fields in the server record is a varchar 2000, and I'm
> trying to insert about 825 character string into the new record. I
> can see in the debugger at the point the Parameter is getting
> assigned, the variable to the right of the := is 825 characters of
> data but when I look at the data on the server
> after the SP or insert command completes I only see the first 255
> characters of data in Sql Query Analysis as I scroll the column to the
> right.
>
> I've tried defining
>
> addstr variable: ansistring, or just string.
>
> I have the {H+} in the unit being compiled and the project compiler
> Huge Strings is checked.
>
>
> any Ideas
>
> Thanks Dave
I figured out the problem. Microsoft's SQL Query Analysis tool only
allows the user to see the first 255 bytes of data per field returned
in the query. I had to do a len on the field in question to see that
it truely had the 825 characters stored in the database.
Question is there a good tool to look at the sql server and see what is
actually stored in each field of a record, even if it exceeds 255
characters?
Dave
.
- Follow-Ups:
- Re: String field length truncated to 255
- From: Kevin Frevert
- Re: String field length truncated to 255
- References:
- String field length truncated to 255
- From: Davel
- String field length truncated to 255
- Prev by Date: Re: How to Change The Timeout on TADOStoredProc component
- Next by Date: Re: Checking Tadoquery for changes
- Previous by thread: Re: String field length truncated to 255
- Next by thread: Re: String field length truncated to 255
- Index(es):
Relevant Pages
|