Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you create a view from a stored procedure?

Status
Not open for further replies.

johncasimir

Programmer
Jan 13, 2003
14
US
This is the problem.

I'm creating a crystal reports report and using a stored procedure to return the dataset.
However I need to implement the company's security which basically is written in visual basic by executing a script to destroy then recreate a View with the new security detail.
My idea is to have crystal execute a stored procedure which dumps the data into a table, then destroy and recreated a view with the new security to return the secured dataset to crystal?

Is this possible?

Thanks much for all of your expert help in advance!
 
Thanks for your reply.
I've solved the problem.
I was unclear as to how the clients' database was set up for report security.
The client's app automatically creates security conscious views of the base tables for reporting.
My solution is simple: I use those views instead of the base tables in my stored procedure to prepare the datasets needed for the reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top