Read Only Stored Procedure
How to make stored procedure as 'Readonly' in SQL Server 2005.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Brij22 reputationPosted Aug 22, 2007, 5:51 PM EDT
hi,
whts that READONLY??????
if u want to restrict u'r user to change u'r stored Proc then u can use DataBase Trigger... and rollback any changes made to u'r sp's.
vijay mann2 reputationPosted Feb 5, 2008, 9:48 PM EST
Vijaya KadiyalaRank #1,085 · 1.8K reputationPosted Apr 10, 2008, 8:24 AM EDT
Hi Vijay,
even if you create a SP using .Net finally it has to go and sit in SQL Sever database and i dont think there is a concept of read-only stored procedure. One way we can use this term as a stored proecedure which doens't have any DML operations. it has only SELECT operations to return data. so in this way one can interpret as ready only stored procedure.
Thanks -- Vj
http://dotnetvj.blogspot.com