Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / April 2006

Tip: Looking for answers? Try searching our database.

is there any limit to how long of a string SqlDataReader.GetString() can return?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Daniel - 19 Apr 2006 04:42 GMT
is there any limit to how long of a string SqlDataReader.GetString() can
return?
Nathan H. Omukwenyi - 23 Apr 2006 20:49 GMT
Only 8000 characters. No more

Nathan H. Omukwenyi

> is there any limit to how long of a string SqlDataReader.GetString() can
> return?
Dan Guzman - 24 Apr 2006 02:25 GMT
I don't believe there is a limit other than available memory.

Signature

Hope this helps.

Dan Guzman
SQL Server MVP

> Only 8000 characters. No more
>
> Nathan H. Omukwenyi
>
>> is there any limit to how long of a string SqlDataReader.GetString() can
>> return?
Jeremy - 25 Apr 2006 04:44 GMT
I believe the only limitation is the underlying data type in sql.  For
example a varchar can only be max 8000 chars. but text could be up to 2
gigs.

> is there any limit to how long of a string SqlDataReader.GetString() can
> return?
Nathan H. Omukwenyi - 25 Apr 2006 21:02 GMT
Agreed. I had only tested with the varchar SQL data type. Testing with TEXT
shows that it can handle much more but reaching the maximum is taking too
much time and resources. So I suppose Dan could be right about available
memory.

Nathan H. Omukwenyi

>I believe the only limitation is the underlying data type in sql.  For
> example a varchar can only be max 8000 chars. but text could be up to 2
> gigs.
>
>> is there any limit to how long of a string SqlDataReader.GetString() can
>> return?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.