October 15, 2003 at 2:03 pm
Can anyone tell me what the maximum length of a T-SQL statement SQL Server 7 Or 2000 will support? I know that the maximum size for a T-SQL stored proc is 128M, but what about a statement (dynamic or otherwise) coming through (QA, ADO, ADO.NET, etc...)?
Thanks in advance.
October 15, 2003 at 4:23 pm
Not sure, but we've got Microstrategy running here and I have traced some SQL that is larger than anything I'd every write. We're talking 4+ printed pages of SQL in one query.
Steve Jones
http://www.sqlservercentral.com/columnists/sjones
The Best of SQL Server Central.com 2002 - http://www.sqlservercentral.com/bestof/
October 15, 2003 at 5:32 pm
From BOL
quote:
Length of a string containing SQL statements (batch size) 65,536 * Network packet size.Network Packet Size is the size of the tabular data scheme (TDS) packets used to communicate between applications and the relational database engine. The default packet size is 4 KB, and is controlled by the network packet size configuration option.
Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface
--------------------
Colt 45 - the original point and click interface
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy