House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

cfqueryparam BIND list limit

  << Previous Post |  RSS |  Tree View |  Sort Oldest First |  Subscribe to this Group Next >> 

cfqueryparam BIND list limit

All I can tell ya is Oracle is limited to 1000 elements in your IN/NOT IN Bryan Stevenson 05/24/2006 11:28 AM
Dave, thanks for the clarification. Cutter (CFRelated) 05/23/2006 12:12 PM
> I realize that the list is a list of integers, but, being a Dave Watts 05/23/2006 11:47 AM
I realize that the list is a list of integers, but, being a list, Cutter (CFRelated) 05/23/2006 10:18 AM
Billy Jamme said: Jochem van Dieten 05/23/2006 03:11 AM
I used to get around Oracle's 1000-item list limit by breaking up the Everett, Al \(NIH/NIGMS\) [C] 05/22/2006 01:50 PM
Hello All, Billy Jamme 05/22/2006 01:40 PM

05/24/2006 11:28 AM
Author: Bryan Stevenson Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241282 All I can tell ya is Oracle is limited to 1000 elements in your IN/NOT IN list.....so 2100+ is most liley not allowed ;-) Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. phone: 250.480.0642 fax: 250.480.1264 cell: 250.920.8830 e-mail: bryan@electricedgesystems.com web: www.electricedgesystems.com
05/23/2006 12:12 PM
Author: Cutter (CFRelated) Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241231 Dave, thanks for the clarification. Cutter Dave Watts wrote: ----- Excess quoted text cut - see Original Post for more -----
05/23/2006 11:47 AM
Author: Dave Watts Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241229 > I realize that the list is a list of integers, but, being a > list, wouldn't the datatype be something akin to a string? > How is that handled within cfqueryparam? The CFQUERYPARAM tag tells the database that it's a series of integers, and that's all that matters. Each integer value is replaced within the SQL statement using a placeholder, and the database is told that the placeholder corresponds to an integer value. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information!
05/23/2006 10:18 AM
Author: Cutter (CFRelated) Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241217 I realize that the list is a list of integers, but, being a list, wouldn't the datatype be something akin to a string? How is that handled within cfqueryparam? Cutter Jochem van Dieten wrote: ----- Excess quoted text cut - see Original Post for more -----
05/23/2006 03:11 AM
Author: Jochem van Dieten Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241194 Billy Jamme said: ----- Excess quoted text cut - see Original Post for more ----- The limit it probably somewhere in a .properties file where you can up it and recompile the driver. Jochem
05/22/2006 01:50 PM
Author: Everett, Al \(NIH/NIGMS\) [C] Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241148 I used to get around Oracle's 1000-item list limit by breaking up the list into an array of lists then looping over the array and putting OR between each iteration. I expect that there is a much more elegant way to do it with a temporary table. Hello All, I'm having some DB issues and I'm wondering if I could get some help with it. I'm running CFMX7, and MSSQL2k.  On this specific task, I'm using the IN or NOT IN clauses in sql to grab a set of records. The problem occurs when I attempt to use cfqueryparam to fetch a 2100+ item list of records. Query 1: <cfquery name="selectList" datasource="database">   SELECT id   FROM tempTable   WHERE id IN (<cfqueryparam value="#list#" list="true" cfsqltype="cf_sql_integer">) </cfquery> And I receive the error: "The DBMS returned an unspecified error." However if I select the recordset using: Query 2: <cfquery name="selectList" datasource="database">   SELECT id   FROM tempTable   WHERE id IN (#list#) </cfquery> I receive no error. And receive the recordset. To add to the pie, if I run this query: Query 3: <cfquery name="selectList" datasource="database">   SELECT id,   FROM tempTable   WHERE id IN <cfqueryparam value="#list#" list="true" cfsqltype="cf_sql_integer"> </cfquery> I still get the same error message: "The DBMS returned an unspecified error."  Even though syntaxically the query is invalid. To further troubleshoot I installed the jTBS 1.2 drivers and I ran all 3 queries again.  The result this time around was: Query 1:  "Prepared or callable statement has more than 2000 parameter markers." Query 2: No errors. Query 3: "Prepared or callable statement has more than 2000 parameter markers." What I'm guessing is that there is some form up of upper limit on the number of BIND variables that each driver can handle.  What leads me to this conclusion is a couple of things.  1. The query will crash before the DB "sees" it.  2. Non-BINDed variables execute fine.  Also, if I use the default DataDirect SQL drivers I can increase the number of BIND variables to 2097, where if I run the jTDS drivers I'm limited to 2000. Now the question.  Is there a way to get around this limit?  And if so, should I try to? Many thanks, Jim
05/22/2006 01:40 PM
Author: Billy Jamme Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:46049#241147 Hello All, I'm having some DB issues and I'm wondering if I could get some help with it. I'm running CFMX7, and MSSQL2k.  On this specific task, I'm using the IN or NOT IN clauses in sql to grab a set of records. The problem occurs when I attempt to use cfqueryparam to fetch a 2100+ item list of records. Query 1: <cfquery name="selectList" datasource="database">   SELECT id   FROM tempTable   WHERE id IN (<cfqueryparam value="#list#" list="true" cfsqltype="cf_sql_integer">) </cfquery> And I receive the error: "The DBMS returned an unspecified error." However if I select the recordset using: Query 2: <cfquery name="selectList" datasource="database">   SELECT id   FROM tempTable   WHERE id IN (#list#) </cfquery> I receive no error. And receive the recordset. To add to the pie, if I run this query: Query 3: <cfquery name="selectList" datasource="database">   SELECT id,   FROM tempTable   WHERE id IN <cfqueryparam value="#list#" list="true" cfsqltype="cf_sql_integer"> </cfquery> I still get the same error message: "The DBMS returned an unspecified error."   Even though syntaxically the query is invalid. To further troubleshoot I installed the jTBS 1.2 drivers and I ran all 3 queries again.  The result this time around was: Query 1:  "Prepared or callable statement has more than 2000 parameter markers." Query 2: No errors. Query 3: "Prepared or callable statement has more than 2000 parameter markers." What I'm guessing is that there is some form up of upper limit on the number of BIND variables that each driver can handle.  What leads me to this conclusion is a couple of things.  1. The query will crash before the DB "sees" it.  2. Non-BINDed variables execute fine.  Also, if I use the default DataDirect SQL drivers I can increase the number of BIND variables to 2097, where if I run the jTDS drivers I'm limited to 2000.   Now the question.  Is there a way to get around this limit?  And if so, should I try to? Many thanks, Jim
<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference