all groups > sql server reporting services > february 2006 >
You're in the

sql server reporting services

group:

2005 reporting services and parameters


2005 reporting services and parameters jaylou
2/16/2006 10:50:29 AM
sql server reporting services:
I have created an SP that has 3 parameters.
I would like to creat a report using this SP. in other reporting tools I
have created the report and I had it call an SP instead of using a query.
the reporting tools would alway add the paramters to the report and ask for
the info.
I can't seem to create a report using SQL reporting services. I add
"exec ProcNAme" in the report wizard, but it tells me it is expecting
paramaters. I can't hard code the paramters, that would defeat the purpose
of params.
TIA,
Re: 2005 reporting services and parameters jaylou
2/16/2006 11:34:28 AM
Thank you! This was driving me crazy.



[quoted text, click to view]
Re: 2005 reporting services and parameters Bruce L-C [MVP]
2/16/2006 1:15:11 PM
Support for sp in the wizards is weak. Hard code the parameter just for the
wizard.

exec yourproc 'sometext', 0.101,'someothertext'

After running the wizard go to the dataset, change the command type to
stored procedure and put in just the name of the stored procedure (do not
put exec).

yourproc

RS will now recognize the parameters and add report parameters to match the
query parameters and map them. It is important to understand that query
params and report parameters are two different things. The reason it is
important is because you can base a query parameter on a expression instead
of using a report parameter.

Anyway, that is an aside. Follow the above and it should work for you.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: 2005 reporting services and parameters jaylou
2/17/2006 1:19:30 PM
Have you also noticed that SQL 2005 reporting services does not like #temp
tables?

I dont understand what Microsoft was thinking, I use temp tables in just
about every Stored Proc I write.

Thanks,
Re: 2005 reporting services and parameters Bruce L-C [MVP]
2/17/2006 3:30:38 PM
Not true.

I use temp tables all the time.

Do the following. Do not explicitly drop the table in your stored procedure.
I.e. do not do this:

drop table #temp

Let it fall out of scope naturally.

Second, do a select statement before exiting your stored procedure.
Something like this:

select * from #temp

Just about every stored procedure I use uses temp tables without any problem
whatsoever.

If you continue to have problems post some examples of what you are doing.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

Re: 2005 reporting services and parameters jaylou
2/21/2006 11:12:28 AM
Thank you. I will try this on my next proc. Most of my temp tables are
created using select into statements. This could be my issue.

Thanks again for the help.

Joe


[quoted text, click to view]
Re: 2005 reporting services and parameters Bruce L-C [MVP]
2/21/2006 1:31:05 PM
Select into is fine. But, you also need to finish up with a Select * from
#temp.


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services

[quoted text, click to view]

AddThis Social Bookmark Button