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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=36
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:182310
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