Why do you ask? The answer is probably "It depends"
On the one hand there is little practical limit to the size of a .NET
managed string type. You can easily read a several megabyte file into a
single string, for example.
On the other hand there very well may be a server-side limit to the size of
the data you are retrieving using SqlDataReader. For example, if you are
reading a SQL Server table that has a cell declared as a NVARCHAR(4000). In
those cases GetString() is going to return strings with some (ultimately)
finite size.
"Daniel" <so*******************@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
is there any limit to how long of a string SqlDataReader.GetString() can
return?