Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is max size of sqlexec string?
Message
From
18/05/2006 02:47:44
 
 
To
17/05/2006 12:42:47
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01122845
Message ID:
01123104
Views:
25
>given:
>
>lnresult=sqlexec(lnhandle,lcsqlcmd,'curresult')
>
>what is the maximum number of characters for the lcsqlcmd?
>

16M is sure. more is possible.

>I writing a data driven routine to build up a where clause, the clause might be very long depending on how I implement it. I want to make sure that it will work.. before I code it.
>
>

>e.g. instead of
>where dinvoice GREATER THAN OR EQUAL TO '2006-01-01' and dinvoice LESS THAN OR EQUAL TO '2006-12-31'
>
>I will need
>dinvoice GT OR = 2 '2006-01-01' and dinvoice GT OR = 2 '2006-01-31'
>or
>dinvoice GT OR = 2 '2006-02-01' and dinvoice LT OR = 2 '2006-02-28'
>

>etc.
>
>repeated multiple times for multiple conditions like this
>
>what is this limit for sql server, and what is it for vfp?
>
>PS - COULDN'T USE REGULARE GREATER THAN OR EQUAL TO SIGNS? GOT error message about using a tag or something
>
>Thanks,
>David Schlesinger
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform