all groups > sql server reporting services > august 2005 >
You're in the

sql server reporting services

group:

Parameters


Parameters DJC
8/4/2005 7:22:01 PM
sql server reporting services:
Attempting to use parameters for report pulling from Teradata. Appears TD
does not like parameters. Thinking of custom code for generate dataset query
dynamically.. Is there function/method to generate / replace sql string?
Other ideas?
RE: Parameters SteveIrwin
8/5/2005 6:06:10 AM
in place of your query, have a vb-type expresssion like:

="select * from tablename where col1 = " & Parameters!Parm1.value

Let the report create your fields for you by running a hard-coded version of
the query, then change the query string to the vb expression. It will
generate the sql string expression, then execute it. As long as the
expression generates a sql string whose fields match those pre-generated in
the report, it will work.

Steve

[quoted text, click to view]
RE: Parameters C.M
8/5/2005 7:02:06 AM
What error are you geting with the Parameters you are useing ?
In so cases TD does not let you name your Parameters. so what i did was this
--------------------------------
(DT_COM BETWEEN TO_DATE(?, 'MM/DD/YYYY') AND TO_DATE(?, 'MM/DD/YYYY'))





[quoted text, click to view]
RE: Parameters DJC
8/5/2005 9:52:07 AM
Thanke for the response. Steve's respone resolved....

BTW, Most of the errors were I think were related to OLE DB vs ODBC on the
TD side...

[quoted text, click to view]
RE: Parameters DJC
8/5/2005 9:52:09 AM
Thanks Steve.. works like a charm.

[quoted text, click to view]
AddThis Social Bookmark Button