The connection string for .NET Framework Sybase ADO Provider has a property for the maximum size of binary or text data in bytes that will be sent to or received from ASE. TextSize=64000 sets this limit to 64K bytes. Default is 32K.
Below is the connection string a .net application that loads PDFs to the DB is using for Sybase 15:
"DataSource='myserver';Port='1200';UID='myuserid';PWD='********';Database='mydbname';TextSize='2000000000';"
It’s set with that big number supposedly to avoid file getting truncated when retrieved from DB.
I’m poring this application from .NET Framework 2.0 against Sybase to .NET Framework 4 against SQL Server 2008, and I did not find an equivalent property for SQL Server ADO.NET dataprovider.
I’m thinking it may no longer be necessary for SQL 2008 and that’s why it does not exist.
Will appreciate some help if anyone can confirm this thought/finding.
Could not find an equivalent connection string property to specify size of binary or text data using ADO.NET for SQL Server 2008.
However, I have not had any data truncation issues when retrieving/storing big PDF files.
Below is a link to a table that lists the valid names for keyword values within the ConnectionString when using .NET Framework System.Data.SqlClient
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.100).aspx