× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



... 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.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.