Author |
Topic |
X002548
Not Just a Number
15586 Posts |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
X002548
Not Just a Number
15586 Posts |
|
X002548
Not Just a Number
15586 Posts |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
X002548
Not Just a Number
15586 Posts |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
7020 Posts |
Posted - 2012-01-27 : 23:10:42
|
If you are using SQL 2005 or above, the user doesn't need access to the underlying tables even if the stored procedure uses dynamic SQL if you add an EXECUTE AS clause to the stored procedure and the tables are in the same database.CREATE PROCEDURE dbo.MyProcedureWITH EXECUTE AS 'dbo'AS... rest of procedure... You can even access tables in another database with just the access of the stored procedure, but it is a bit more complex to setup. The link below explains how that can be done using a stored procedure signed with a certificate.SQL Server Books OnlineTutorial: Signing Stored Procedures with a Certificatehttp://msdn.microsoft.com/en-us/library/bb283630.aspxCODO ERGO SUM |
 |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2012-01-28 : 05:05:51
|
Yes, 2000 and probably SQL 7 too.--Gail ShawSQL Server MVP |
 |
|
|