Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
SQL Parser limitations?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rob  
View profile  
 More options Jan 8 2010, 2:46 pm
Newsgroups: microsoft.public.sqlserver.programming
From: Rob <R...@discussions.microsoft.com>
Date: Fri, 8 Jan 2010 11:46:02 -0800
Local: Fri, Jan 8 2010 2:46 pm
Subject: SQL Parser limitations?
Does anyone know what the limitations are in SQL Server 200x Query Parser?

When I try to parse a lengthy query in SQL Server 2005, I see the following
error:

===================================

Cannot parse script.

===================================

Exception of type 'System.OutOfMemoryException' was thrown. (mscorlib)

------------------------------
Program Location:

   at System.String.InternalSubString(Int32 startIndex, Int32 length,
Boolean fAlwaysCopy)
   at System.String.TrimHelper(Char[] trimChars, Int32 trimType)
   at
Microsoft.SqlServer.Management.UI.VSIntegration.ShellCodeWindowControl.GetS electedTextSpan()
   at
Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptEditorControl .GetSelectedTextSpan()
   at
Microsoft.SqlServer.Management.UI.VSIntegration.Editors.ScriptAndResultsEdi torControl.OnParseScript(Object sender, EventArgs a)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Coles  
View profile  
 More options Jan 8 2010, 3:55 pm
Newsgroups: microsoft.public.sqlserver.programming
From: "Michael Coles" <ad...@geocodenet.com>
Date: Fri, 8 Jan 2010 15:55:03 -0500
Local: Fri, Jan 8 2010 3:55 pm
Subject: Re: SQL Parser limitations?
Also how much memory do you have on this box dedicated to SQL Server?  And
what's the version (SELECT @@version).

--
Thanks

Michael Coles
SQL Server MVP
Author, "Expert SQL Server 2008 Encryption"
(http://www.apress.com/book/view/1430224649)
----------------

"Rob" <R...@discussions.microsoft.com> wrote in message

news:D14B6980-6C7A-47CD-892C-A267173139DA@microsoft.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Coles  
View profile  
 More options Jan 8 2010, 3:54 pm
Newsgroups: microsoft.public.sqlserver.programming
From: "Michael Coles" <ad...@geocodenet.com>
Date: Fri, 8 Jan 2010 15:54:06 -0500
Local: Fri, Jan 8 2010 3:54 pm
Subject: Re: SQL Parser limitations?
That's the first time I've seen that error message.  How long is this script
exactly and what is the platform, service pack/hot fix level you are on?

--
Thanks

Michael Coles
SQL Server MVP
Author, "Expert SQL Server 2008 Encryption"
(http://www.apress.com/book/view/1430224649)
----------------

"Rob" <R...@discussions.microsoft.com> wrote in message

news:D14B6980-6C7A-47CD-892C-A267173139DA@microsoft.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob  
View profile  
 More options Jan 8 2010, 4:45 pm
Newsgroups: microsoft.public.sqlserver.programming
From: Rob <R...@discussions.microsoft.com>
Date: Fri, 8 Jan 2010 13:45:02 -0800
Local: Fri, Jan 8 2010 4:45 pm
Subject: Re: SQL Parser limitations?
Apparently, this issue/bug is documented here:

https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?Fe...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Coles  
View profile  
 More options Jan 8 2010, 5:30 pm
Newsgroups: microsoft.public.sqlserver.programming
From: "Michael Coles" <ad...@geocodenet.com>
Date: Fri, 8 Jan 2010 17:30:04 -0500
Local: Fri, Jan 8 2010 5:30 pm
Subject: Re: SQL Parser limitations?
Interesting.  Looks like it affects sqlcmd also.  Maybe you can break your
50 MB+ query into smaller chunks?

--
Thanks

Michael Coles
SQL Server MVP
Author, "Expert SQL Server 2008 Encryption"
(http://www.apress.com/book/view/1430224649)
----------------

"Rob" <R...@discussions.microsoft.com> wrote in message

news:A5B45095-7CE6-4741-9C9A-52296C31B08F@microsoft.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob  
View profile  
 More options Jan 8 2010, 5:52 pm
Newsgroups: microsoft.public.sqlserver.programming
From: Rob <R...@discussions.microsoft.com>
Date: Fri, 8 Jan 2010 14:52:01 -0800
Local: Fri, Jan 8 2010 5:52 pm
Subject: Re: SQL Parser limitations?
That's exactly what we had to do :-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erland Sommarskog  
View profile  
 More options Jan 8 2010, 6:11 pm
Newsgroups: microsoft.public.sqlserver.programming
From: Erland Sommarskog <esq...@sommarskog.se>
Date: Fri, 8 Jan 2010 23:11:22 +0000 (UTC)
Local: Fri, Jan 8 2010 6:11 pm
Subject: Re: SQL Parser limitations?

Michael Coles (ad...@geocodenet.com) writes:
> Interesting.  Looks like it affects sqlcmd also.  

I don't think SQLCMD is affected. Several years ago, it might have been
already during the beta of SQL 2005, I helped someone who had insanely
big SQL scripts. SSMS choked on fairly moderate sizes. SQLCMD had now
problems. Hm, if you have a 2GB script, 32-bit SQLCMD might get problems.
But there is a 64-bit version of SQLCMD.

The upper limits for SSMS are certainly quite tiny. And before you hit
those hard limits, you will find that performance is awful.

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erland Sommarskog  
View profile  
 More options Jan 8 2010, 6:19 pm
Newsgroups: microsoft.public.sqlserver.programming
From: Erland Sommarskog <esq...@sommarskog.se>
Date: Fri, 8 Jan 2010 23:19:21 +0000 (UTC)
Local: Fri, Jan 8 2010 6:19 pm
Subject: Re: SQL Parser limitations?

Rob (R...@discussions.microsoft.com) writes:
> Does anyone know what the limitations are in SQL Server 200x Query Parser?

> When I try to parse a lengthy query in SQL Server 2005, I see the
> following error:

>===================================

> Cannot parse script.

>===================================

> Exception of type 'System.OutOfMemoryException' was thrown. (mscorlib)

This is not an error from the SQL 2005 parser. This is an error from
SQL Server Mgmt Studio.

I see in the comment to the Connect item you filed, that your script
fails with SQLCMD too. As I said in another post, my experience is that
SQLCMD is able to handle much larger files than SSMS. Possibly, in could
be that you have one very big query batch. I know was able to get some
really big files through SQLCMD, but I think they had "go" after every
INSERT. (Or, hm, did I just put them in with a Perl script?)

But there is indeed a limit on the size of a query. According to
books online that is 65536 * network packet size. The default net
work packet size is 4096, which gives an upper limit of 258 MB.

The topic "Maximum Capacity Specifications for SQL Server" has
more details.

--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michael Coles  
View profile  
 More options Jan 8 2010, 10:21 pm
Newsgroups: microsoft.public.sqlserver.programming
From: "Michael Coles" <ad...@geocodenet.com>
Date: Fri, 8 Jan 2010 22:21:38 -0500
Local: Fri, Jan 8 2010 10:21 pm
Subject: Re: SQL Parser limitations?
I was reading the notes on the Connect item, looks like the SQLCMD issue was
just added today in fact (possibly by the OP on this thread?)

--
Thanks

Michael Coles
SQL Server MVP
Author, "Expert SQL Server 2008 Encryption"
(http://www.apress.com/book/view/1430224649)
----------------

"Erland Sommarskog" <esq...@sommarskog.se> wrote in message

news:Xns9CFB1F7AB032Yazorman@127.0.0.1...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »