I'm using SQL Server 2008 R2 and how can I execute a select query with a execute stored procedure?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Sep 2, 2014, 3:40 AM
Hi,
As per the my knowledge you cannot use Store procedure with select query/ statement.
you can use function instead of stored procedure...
hope this will help you.
Pradeep ShetPosted Sep 2, 2014, 3:07 AM
There are different ways like
EXEC spName
sp_executeSql spName
Hope this answers your query.
Mark it as answered if it is so
Dipankar BiswasPosted Aug 27, 2014, 10:39 AM