Ask a Question related to Coldfusion Database Access, Design and Development.
-
dsbrady_98 #1
Query Param Limit with SQL Server
We have several reports where users can select a "subset" of users to apply the
results to (by selecting a custom-built query). In these reports, our queries
use cfqueryparam in the IN clause (with List="Yes"). cfqueryparam thus breaks
up the variable into individual SQL Server parameters. If the subset has too
many users (I know it happens at 2,800, but it might happen with fewer, as
well), the query will come back with an "The DBMS unspecified dbms error". If
I remove the queryparam, the problem goes away.
So, does anyone know if this is a problem with SQL Server itself (it's not
something I know how to test manually using Query Analyzer, unless I want to do
some VERY tedious hand-coding) or with the JDBC driver? If there's a fix for
it, I'd certainly prefer to use query parameters.
dsbrady_98 Guest
-
How to limit # of rows returned from query
I am looking at setting a limit to the number of rows returned on some of my queries. I was looking at doing something like: <cfoutput... -
.net client + Axis 1.1 server + wrapped param: null result
I have used the following settings in our web services: .net framework 1.1 web services client Axis 1.1 server (in wsdd file, set... -
2003 OS Server Hard drive install limit.
2003 OS Server Hard drive install limit. I want to use a hard drive that I do not want to partition to get the OS to install correctly. Plus it... -
Pass Param to SQL Query
Hi I'm sure this is very trivial, but I simple don't know how to it? I've got a SQL query but I wish to pass a 'WHERE' clause to it, to filter... -
The server has reached the maximum recovery limit for the application during...
Hi NG, sometimes I bekome a "Server Application Error" on my w2k Server when call a ASP page The server has reached the maximum recovery limit... -
Adam Cameron #2
Re: Query Param Limit with SQL Server
> So, does anyone know if this is a problem with SQL Server itself (it's not
One can only have 2000 items in an "IN" list. It's a limitation of SQL
Server, but I would not say it's a "problem". I'd be inclined to revisit
your code to see if it's possible to NOT have a 2800-item list in the
query. It's not very performant, for one thing.
Short term, loop over your list in blocks of 2000 items, adding a separate
IN() statement for each 2000.
--
Adam
Adam Cameron Guest



Reply With Quote

