Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Remove access to see database object.

 
   Database Help (Home) -> Security RSS
Next:  nz function data type problem  
Author Message
MariaGuzman

External


Since: Dec 09, 2008
Posts: 2



(Msg. 1) Posted: Tue Dec 09, 2008 2:36 pm
Post subject: Remove access to see database object.
Archived from groups: microsoft>public>sqlserver>security (more info?)

Is there is a way I can restrict a user to see the database objects when
is using an application that is not authorized. For example, excel, or
sql tools.

this user is not an it user.

thanks a lot for your help.



*** Sent via Developersdex http://www.developersdex.com ***

 >> Stay informed about: Remove access to see database object. 
Back to top
Login to vote
bass_player

External


Since: Dec 05, 2008
Posts: 13



(Msg. 2) Posted: Tue Dec 09, 2008 6:37 pm
Post subject: Re: Remove access to see database object. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Give the user granular permissions on a per object basis. This would limit
the objects from seeing other ones that he/she oes not have permissions
over. The only problem I see here is when you have a lot of objects in your
database Wink


"MariaGuzman" wrote in message

> Is there is a way I can restrict a user to see the database objects when
> is using an application that is not authorized. For example, excel, or
> sql tools.
>
> this user is not an it user.
>
> thanks a lot for your help.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***

 >> Stay informed about: Remove access to see database object. 
Back to top
Login to vote
smzrkh

External


Since: Dec 10, 2008
Posts: 5



(Msg. 3) Posted: Wed Dec 10, 2008 6:12 am
Post subject: Re: Remove access to see database object. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 9, 6:37 pm, "bass_player"
wrote:
> Give the user granular permissions on a per object basis. This would limit
> the objects from seeing other ones that he/she oes not have permissions
> over.  The only problem I see here is when you have a lot of objects in your
> database Wink
>
> "MariaGuzman" wrote in message
>
>
>
>
>
> > Is there is a way I can restrict a user to see the database objects when
> > is using an application that is not authorized. For example, excel, or
> > sql tools.
>
> > this user is not an it user.
>
> > thanks a lot for your help.
>
> > *** Sent via Developersdexhttp://www.developersdex.com***- Hide quoted text -
>
> - Show quoted text -

we just started using logon triggers a few months ago. anyone using MS
Access, SQL Tools and one or two other apps with a few SQL user ID's
won't be allowed to log on. an error message pops up saying logon was
denied to trigger execution.

i can send you the code if you want, just email me.

Just make sure you test this in QA or some testing environment first.
it took us a few times to get the trigger right and we locked out a
few test servers by accident in the meantime and had to use the DAC's
to get in and disable or delete the trigger.
 >> Stay informed about: Remove access to see database object. 
Back to top
Login to vote
Erland Sommarskog2

External


Since: May 30, 2004
Posts: 2061



(Msg. 4) Posted: Wed Dec 10, 2008 3:40 pm
Post subject: Re: Remove access to see database object. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

MariaGuzman ( ) writes:
> Is there is a way I can restrict a user to see the database objects when
> is using an application that is not authorized. For example, excel, or
> sql tools.
>
> this user is not an it user.

There is no way you can assign permissions per applications. Yes, you
can set up a logon trigger that checks the application name, but that
can easily be forged.

If you only want users to be able to access data through your application,
you need to design or set up the application to cater for that.



--
Erland Sommarskog, SQL Server MVP, esquel.DeleteThis@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
 >> Stay informed about: Remove access to see database object. 
Back to top
Login to vote
bass_player

External


Since: Dec 05, 2008
Posts: 13



(Msg. 5) Posted: Wed Dec 10, 2008 7:21 pm
Post subject: Re: Remove access to see database object. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the clarification, Erland. I was thinking she was referring to
simply object access and overlooked the "application is not authorized" Smile

"Erland Sommarskog" wrote in message

> MariaGuzman ( ) writes:
>> Is there is a way I can restrict a user to see the database objects when
>> is using an application that is not authorized. For example, excel, or
>> sql tools.
>>
>> this user is not an it user.
>
> There is no way you can assign permissions per applications. Yes, you
> can set up a logon trigger that checks the application name, but that
> can easily be forged.
>
> If you only want users to be able to access data through your application,
> you need to design or set up the application to cater for that.
>
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel RemoveThis @sommarskog.se
>
> Links for SQL Server Books Online:
> SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
> SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
> SQL 2000:
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
>
 >> Stay informed about: Remove access to see database object. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Can't remove user from role - I have a user in a database role that I cannot remove from the role. If I go into the user's properties and deselect the role, click OK, then go back in, the role is still checked. I've tried to remove them via sp_droprolemember without success. I am..

Access to database through application only - I need to restrict my users to accessing the application to using Cognos only. Anyway I can get that done?

Linked server only allow access to one database - Is it easy to add a linked server and only allow the linked server to use a single view in one database?

select permission denied on object ..- WHY? - Hi all, I am new to web development, and just came across this error when trying to access table columns using a select statement : Select permission denied on object <tablename> I know that I am running the process as ASPNET user, and when I l...

The server principal "dhtest" is not able to access the da.. - Hi, I am running into an issue that I really need resolved today. Simply put, I am getting the error: The server principal "dhtest" is not able to access the database "dhtest2" under the current security context. (Microsoft SQL Se...
   Database Help (Home) -> Security All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]