This depends on the database and the driver.  I have found the limit on an
SQL server to be slightly over 15000 records.  Some might say that's a bit
too many records for a list in any case and it's time for a cursor :) - but
in any case, the driver must support building an array to the size in
question and the RDBMS must support handling it.

-Mark


-----Original Message-----
From: Victor Moore [mailto:[EMAIL PROTECTED]
Sent: Friday, October 22, 2004 8:09 AM
To: CF-Talk
Subject: Limitation of <cfqueryparam...


I have found out, that in cases where a list is passed to a query
(using <cfqueryparam ) and the list contains more then a few hundred
items, the query chokes with the following error:
Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver]The DBMS returned an unspecified error.


but if the <cfqueryparam is removed the query runs fine.

Is this a limitation of the <cfqueryparam ?

<cfquery>
    select id
    from table
    where id in (#mytList#)
</cfquery>
runs OK

<cfquery>
    select id
    from table
    where id in (<cfqueryparam cfsqltype="cf_sql_integer" list="yes"
value="#mytList#">)
</cfquery>
gives error if myList has more than a few hundreds items

Thanks
Victor



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only good for 
you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182312
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to