all groups > sql server connect > january 2006 >
You're in the

sql server connect

group:

Restricting access to certain applications


Re: Restricting access to certain applications David Portas
1/23/2006 3:56:48 PM
sql server connect:
[quoted text, click to view]

In a two-tier environment use stored procedures for all data access.
That way you don't have to grant permissions directly on tables.

--
David Portas, SQL Server MVP

Whenever possible please post enough code to reproduce your problem.
Including CREATE TABLE and INSERT statements usually helps.
State what version of SQL Server you are using and specify the content
of any error messages.

SQL Server Books Online:
http://msdn2.microsoft.com/library/ms130214(en-US,SQL.90).aspx
--
Re: Restricting access to certain applications SR
1/23/2006 3:56:48 PM
There is another way, ie to have execute permissions on stored
proceures for all the DML's and revoke all the select, insert, update
and delete from the users. This works great. But if the user knows the
storedprcedure used to delete or make any DML's then he or she can do
it anyway
Re: Restricting access to certain applications David Browne
1/23/2006 5:33:32 PM

[quoted text, click to view]

Check out "Application Roles" in the BOL. You can grant "Mary" the ability
to connect, but then switch to an application role using a password known
only to your application.

David

Restricting access to certain applications Gaspar
1/23/2006 8:19:00 PM
Is it possible to restrict access to SQLServer only to selected applications
(the ones I develop)?. This is why I'm asking:

Suppose user "Mary" has access to certain tables for SELECT, UPDATE, INSERT,
DELETE, etc. I want Mary to delete records on tables only in certain
conditions imposed by my applications.
If Mary connects to SQLServer using a third-party app (ex: Access) she will
be able to delete records manually from any allowed tables.

One option that comes to my mind is: use Usename/password authentication
(don't use Windows Authentication) and don't let Mary know this password.
BUT, the password must be hardcoded in the application!

So: can I restrict access to certain applications? What other options do I
have?

Thanks.

AddThis Social Bookmark Button