Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is max size of sqlexec string?
Message
De
17/05/2006 13:09:55
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01122845
Message ID:
01122881
Vues:
28
Borislav,

Thanks. I was thinking that.. thinking it was either 4K for nvarchar, or
8K for varchar.

If anyone can confirm this would be great. I don't think I will run into this limit, but I need to test for it, and, if I do, then figure out a way to break up the statements and then maybe union the result.

Also, if I could find the limit for VFP sql that would be great too.
I know that the vfp string size is virtually unlimited... limitation is not there. not sure about the length of a sql statement.


>I think it is 4K (not sure though)
>Because VFP use sp_executesql to execute your code and that SP requires nvarchar for parameters, and the maximum chars in nvarchars are 4000.
>
>
>>Kevin,
>>
>>I could. I could build the sql string (which I am reading in from vfp tables) and pass it as a parameter to the SP. Does that have an impact on the string limit, if there is one, or let me do something I couldn't do otherwise?
>>
>>One reason I'd rather avoid sp's - even though I know of their benefits, is that I want to be able to install this app, easily in multiple client sites, without modifying their database. I'm using Accountmate's VAM/SQL software, and when they come out with a new release of the software or database, I will have additional complexity to deal with if I add SP's, because then I'll have to modify the upgraded database.
>>
>>In any event though what I'm concerned about is running up into a limitation on the string size on a single sql command, so I'm hoping to find that out, whether via inline sql or SP.
>>
>>Thanks
>>
>>
>>>David,
>>>
>>>Have you considered using stored procedures?
>>>
>>>Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform