Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 18th, 2005, 02:16 PM
Authorized User
 
Join Date: Aug 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default 64K Limit

I have a sql script that is comprised of several create tables and create Stored Procedures. The file is approx 457kb. I have always been able to run this script in query analyzer for SQL7\2000. Of course that is until now.
When the script is opened an error message to the effect of file contains long line over 64k limit.
I tried to trim down the code (removed all my if exists kind of stuff). I don't get an error now. When I run the script, it is only runs the first part of the script,truncates the script, adds a few weird characters to the end of the scripts. It is probably taking the first 64k.



Is there a setting in sql that can fix this problem?
I'm trying to avoid splitting up the script into 64k chunks .




 
Old March 9th, 2005, 12:23 PM
Authorized User
 
Join Date: Jul 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The 64k limit is for a SINGLE SQL string, not the entire procedure.

Place GO between statements when possible

Find the big SQL string and alias it if possible.

If you post the code it might help!

David






Similar Threads
Thread Thread Starter Forum Replies Last Post
XML SIZE LIMIT Tristany SQL Server 2005 7 September 14th, 2006 01:01 PM
Limit of String g2000 Classic ASP Basics 0 October 11th, 2005 03:35 PM
Limit of POST g2000 Classic ASP Basics 2 October 10th, 2005 04:20 AM
upper limit crmpicco Javascript How-To 2 October 4th, 2005 04:02 AM
Code Exceeds 64K(Huge Comiplation in C) RahilPatwa C++ Programming 0 March 9th, 2004 01:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.