Error 266

Post Reply
KLZ
Posts: 7
Joined: Fri Jun 08, 2007 4:15 pm

Error 266

Post by KLZ »

When we run a large texis query we are getting an error 266: sql command too large. This is the first time we've ever recieved this type of error. Because we typically run very large queries, we have most of the limits on query size removed. So this is new. What do we need to change to premit the query to run?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Error 266

Post by mark »

Use parameters (or vortex variables) for the data values in your SQL rather than placing them inline.

Instead of (vortex example)
<sql "select * from products where Description like 'golf club'">
use
<$query="golf club">
<sql "select * from products where Description like $query">
Post Reply