Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Need help with Permissions pls.
This post is for SQL 2000.

We are trying to implement a process where a user can turn on a role when
needed and turn off when not needed. We use this process in our Sybase
environments.

Step 1: Non-privileged use logins in.

Step 2:  The user, with only the public role enabled at login, executes a
stored procedure from the master database. (the public role has execute
privs for this stored procedure). The user passes in 2 parameters, the role
name and a 1 (to turn on) or a 0 (to turn off).

Step 3: The stored procedure queries a table in different database to see if
the user is authorize to have the given role enabled.
Here is where we get our 'select permission' error. The stored procedure
in master as well as the 2nd database and table are all owned by dbo and the
'sa' account is dbo. Neither the user or the 'public' role have select
permissions granted to the lookup table.
Is there a way to have this process work without granting select privs
to either the user or the public role? There is sensitive data in this table
that we want to protect and therefore don't want to grant the select privs.
This idea works in Sybase because the calling stored procedure in master has
been compiled by 'sa'.

Thanks for any help that you can give.

Joe D.



Report this thread to moderator Post Follow-up to this message
Old Post
Joe D
03-31-06 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 07:25 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006