Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Limit to a UNION?
Message
 
 
À
17/06/2005 08:00:39
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01024245
Message ID:
01024249
Vues:
18
According to BOL, "Length of a string containing SQL statements (batch size) 65,536 * Network packet size". The default Network packet size=4K so limit would be 256MB.
Are you using UNION or UNION ALL? Ifv the first, try to change it to the second.


>
>I'm executing a huge SQL string from c# and i seem to be hitting some sort of limit, the SQL consists of 1000's of UNION selects and I get the following error:
>
>Internal Query Processor Error: The query processor ran out of stack space during query optimization
>
>Is there a limit to the size of the SQL you can execute?
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform