I have a store procedure which select/calculate fields from multiple tables,
can I create a VIEW on the sesult of the stored procedure ?
u can create a view using a select statement containing ur sp converted to a function....
but why would u want to do such a thing....do u want to permanently keep these values..//refer them just then...some more info may get u a better suggestion buddy...|||I want create a cube fact that is base on the result of a stored procedure, but the cube cannot accept SP as a source, so I want to create a view that can be the source of cube fact|||
In this case I think your best bet would probably be to simply create and populate a table with the results of your stored procedure. If you don't need to keep these results then you can truncate and/or drop the table when you don't need it anymore.
I don't think it's possible to create a view based on the output of a SP.
sql
No comments:
Post a Comment