Mar 1, 2007 #1 dmando84 Programmer Dec 28, 2005 68 US Hello, Does anyone know how to execute a stored procedure within a sql view, or if it is even possible? Any help would be appreciated. Thank you, David
Hello, Does anyone know how to execute a stored procedure within a sql view, or if it is even possible? Any help would be appreciated. Thank you, David
Mar 1, 2007 #2 mrdenny Programmer May 27, 2002 11,595 View's don't support having stored procedures in them. They support functions. Try converting the procedure to a function (if possible). Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
View's don't support having stored procedures in them. They support functions. Try converting the procedure to a function (if possible). Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com
Mar 1, 2007 Thread starter #3 dmando84 Programmer Dec 28, 2005 68 US Thanks for your response, Denny. I was afraid of that. The other downfall is that you cannot even use temp tables within a view. I assume you could execute a stored proc through a function? Upvote 0 Downvote
Thanks for your response, Denny. I was afraid of that. The other downfall is that you cannot even use temp tables within a view. I assume you could execute a stored proc through a function?
Mar 1, 2007 #4 mrdenny Programmer May 27, 2002 11,595 Nope. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
Nope. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com
Mar 1, 2007 Thread starter #5 dmando84 Programmer Dec 28, 2005 68 US Thanks for your time... Upvote 0 Downvote
Mar 1, 2007 #6 mrdenny Programmer May 27, 2002 11,595 no problem. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com Upvote 0 Downvote
no problem. Denny MCSA (2003) / MCDBA (SQL 2000) MCTS (SQL 2005 / Microsoft Windows SharePoint Services 3.0: Configuration / Microsoft Office SharePoint Server 2007: Configuration) MCITP Database Administrator (SQL 2005) / Database Developer (SQL 2005) --Anything is possible. All it takes is a little research. (Me) http://www.mrdenny.com