... Multi-Value option for parameters. ...
You mean like - select ... from ... where item IN (?,?,?,?,?)
... Microsoft really doesn't support ODBC as well as they should
You can use IBM's Client Access ODBC driver, or OLE DB drivers or .NET
driver
... tricks for converting the DateTime parameter to MMDDYY
DateTime maps quite nicely to a TimeStamp data type. If using Microsoft's
TSQL syntax, I've seen them use the Convert built-in for conversions. If
you're using IBM i syntax, then there are a number of IBM built-ins for
extracting values out of a timestamp field (YEAR,MONTH,DAY), but I think the
EXTRACT might work best for you. See this link:
http://publib.boulder.ibm.com/infocenter/systems/scope/i5os/topic/db2/rbafzs
caextract.htm
Hth, Elvis
Celebrating 11-Years of SQL Performance Excellence on IBM i, i5/OS and
OS/400
www.centerfieldtechnology.com
-----Original Message-----
Subject: ODBC Parameter Passing for Reporting Services
I am running into some problems trying to create parameters for
Reporting Services.
My SQL statement looks something like this - select ... from .... where
item = ?
This does create a Parameter called Parameter1, however how do you code
it to get all possible values for all items?
I can use the "LIKE %" syntax, however this does not really give me the
chance to enter and retrieve an exact value.
Does anyone else have any knowledge on this? The help text really
doesn't provide any information?
It does not appear to support the Multi-Value option for parameters.
Is there a function snippet that you use in your reports?
Not surprisingly, Microsoft really doesn't support ODBC as well as they
should.
Also, if you have any tricks for converting the DateTime parameter to
MMDDYY or CCYYMMDD formats, feel free to include these as well.
Thanks.
James Salter
As an Amazon Associate we earn from qualifying purchases.