Home > Archive > MS SQL Server > October 2006 > Using variable in partitioned view









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Using variable in partitioned view
KB Smith

2006-10-24, 6:31 pm

I'm trying to build cubes for my SSRS reports.
Is there a way to pass a global variable to a partitioned view?

In other words, when Joe goes to run reports, can I pass the value "Denver"
to the core view upon which all the reports are built and thereby let Joe run
his reports (using only the Denver data)? How would I set that variable and
how would I pass it to the view?

I'm trying to avoid having to build distinct partitioned views for each
district (41 of them) and instead build a master set of views with the
parameter for "District" set dynamically for each user - based on a lookup
table or similar source.

Thanks.
--
KB Smith
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com