SqlConnectionSpecifying packet size

Server=myServerAddress;Database=myDataBase;User ID=myUsername;
Password
=myPassword;Trusted_Connection=False;Packet Size=4096;

By default, the Microsoft .NET Framework Data Provider for SQL Server sets the network packet size to 8192 bytes. This might however not be optimal, try to set this value to 4096 instead. The default value of 8192 might cause Failed to reserve contiguous memory errors as well, read more here.

Connecting

This connection string (Specifying packet size using SqlConnection) can be used for connections to SQL Server 2000, SQL Server 2005 and SQL Server 7.0.

Articlesread all »

Not the right connection string for you?

Start over in the connection string reference index.

You can also get help in the Q&A forums where you can ask your own question.

The kb articles contains how-tos and instructions and you can search for anything if you're not sure were to look.