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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a Stored procedure from a View

Status
Not open for further replies.

camy123

Programmer
Mar 5, 2004
171
GB
guys how do i call a stored procedure from a view

thanx

 
You can't, but a SP can call a view.
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Not even dynamically.

A stored procedure is usually more efficient than a view and has the advantagethat you can call it using parameters. Just write a stored procedure to do the whole taks you want done.

Questions about posting. See faq183-874
 
Ahh, there are limits to the misuse of dynamic SQL.[spin2]
-Karl

[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top