Re: Source size and how to change
From: Mark J. McGinty (mmcginty_at_spamfromyou.com)
Date: 04/25/04
- Next message: Mark J. McGinty: "Re: Filter by field names"
- Previous message: Aaron Bertrand [MVP]: "Re: How to Compact database using ASP page"
- In reply to: Jerry Pisk: "Re: Source size and how to change"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 24 Apr 2004 23:00:04 -0700
That's not ADO, those are limits of SQL types nvarchar and varchar
respectively. Also there is a limit of 8060 bytes per row, not counting
text, ntext or image types. So if you need to move more than that in a
recordset, you must use one of the 'long' types mentioned above.
-Mark
"Jerry Pisk" <jerryiii@hotmail.com> wrote in message
news:uyIJdUcKEHA.4052@TK2MSFTNGP11.phx.gbl...
> Actually it does, depending on your settings ADO will truncate strings at
> 4000 or 8000 characters. The first is when using Unicode strings (the
> default), the second when using ASCII strings.
>
> Jerry
>
> "Val Mazur" <group51a@hotmail.com> wrote in message
> news:%23uZC9TaKEHA.4052@TK2MSFTNGP11.phx.gbl...
> > Hi,
> >
> > It should not truncate sql string. I am using pretty big one in some
cases
> > and it works fine. What is your query looks like and how do you know
that
> > string was truncated. Do you get any error?
> >
> > --
> > Val Mazur
> > Microsoft MVP
> >
> >
> > "TLowe" <noelbisspam@nomindspringspam.com> wrote in message
> > news:eraMmvUKEHA.1156@TK2MSFTNGP09.phx.gbl...
> > > Hello all!
> > > I have a question about the size of a string that can be passed as the
> > > source in an ADO call. Here is recordset that I am trying to open.
> The
> > > problem is the variable (strSQL) holding the sql statement is
truncating
> > > the
> > > statement. It must be happening in the ADO call because the actual
> > > variable
> > > has the correct value. How do I change the size of the ADO source so
> > > that
> > > it will allow my whole sql statement to be passed?
> > >
> > > Thanks for any help!
> > >
> > > Tom
> > > Here is the ADO call
> > > rs.Open strSQL, cnnConnection, adUseClient, adLockReadOnly
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
- Next message: Mark J. McGinty: "Re: Filter by field names"
- Previous message: Aaron Bertrand [MVP]: "Re: How to Compact database using ASP page"
- In reply to: Jerry Pisk: "Re: Source size and how to change"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|