Re: Set column level permissions in Access adp
From: Michael (mhweiss@hotmail.com)
Date: 03/20/03
- Next message: Kevin McDonnell [MS]: "RE: SQL Monitor Service port scans"
- Previous message: Narayana Vyas Kondreddi: "Re: Set column level permissions in Access adp"
- In reply to: Narayana Vyas Kondreddi: "Re: Set column level permissions in Access adp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Michael" <mhweiss@hotmail.com> Date: Thu, 20 Mar 2003 12:50:00 -0800
Thank you! That is exactly it as far as I can
determine...I didn't realize that you couldn't explicity
deny priveleges to the dbo...thanks again!
Michael
>-----Original Message-----
>Gotcha!!! So, you are logging into the database as a dbo
then :-) dbo is the
>owner of the database, and can do anything in the
database. You cannot deny
>permssions for dbo on a table. You should be using a non-
dbo user.
>--
>HTH,
>Vyas, MVP (SQL Server)
>http://vyaskn.tripod.com/
>
>
>
>
>"Michael" <mhweiss@hotmail.com> wrote in message
>news:1ec001c2ef18$f2201e80$a501280a@phx.gbl...
>Thank you for your suggestions! I did what you suggested
>and created the log table and trigger. The adp is using my
>login name and the user name is dbo. Even denying update
>permission on the column in question to the dbo user does
>not seem to have any effect. For the adp, QA, and in EM, I
>use windows authentication and that is how the server is
>registered. I am sure it is something I am overlooking or
>something I am doing incorrectly but this sure has me
>befuddled! Any other thoughts come to mind?
>Thank you again,
>Michael
>>-----Original Message-----
>>I have a strong feeling that the ADP is using some other
>login :-)
>>
>>The ADP is connecting using SQL Authentication or Windows
>Authentication?
>>Regarding EM, again, how did you register the server?
>Using SQL
>>authentication or Windows?
>>
>>For which exact user in the database are you denying
>UPDATE permissions?
>>
>>Can you create a trigger on the table in question, to log
>the login and user
>>names to a different tables and see what you get? For
>example, create a
>>temporary log table:
>>
>>CREATE TABLE MyLog (LName sysname, UName sysname)
>>GO
>>
>>Then create the following trigger on the table you are
>trying to update:
>>
>>CREATE TRIGGER YourTriggerName
>>ON YourTableName
>>FOR INSERT, UPDATE, DELETE
>>AS
>>BEGIN
>> INSERT INTO MyLog SELECT SUSER_SNAME(), USER_NAME()
>>END
>>GO
>>
>>Now, connect using your ADP and run your updates. Then,
>connect using Query
>>Analyzer and run the following:
>>
>>SELECT LName AS [LoginName], UName AS [UserName] FROM
>MyLog
>>
>>See if the login and usernames from the above output
>matches the user name
>>on which you configured the permissions.
>>--
>>HTH,
>>Vyas, MVP (SQL Server)
>>http://vyaskn.tripod.com/
>>
>>
>>
>>
>>"Michael" <mhweiss@hotmail.com> wrote in message
>>news:24fd01c2ef02$43ac17c0$3401280a@phx.gbl...
>>Okay, I tried granting update permissions on the table
>>itself and then denying update permission on the column
in
>>question. Still it seems to have no effect on entering,
>>changing, or deleting data in that column through the
adp.
>>Sooooo...I went in and denied updates on the entire table
>>and tried entering data into the column through the adp
>>and was able to do so without receiving any warnings at
>>all. Any idea what could be wrong given that I can seem
to
>>completely circumvent the security settings entirely via
>>the adp? Actually, it seems I can circumvent the settings
>>via EM as well...
>>Thank you!
>>Michael
>>>-----Original Message-----
>>>Here's what I get, when I try to update a column on
which
>>UPDATE permission
>>>is denied to me:
>>>
>>>UPDATE permission denied on column 'j' of
>>object 'SomeTable', database
>>>'tempdb', owner 'dbo'.
>>>
>>>The only other think I can think of is that, you denied
>>the UPDATE
>>>permission on the column first, and then granted the
>>UPDATE permission on
>>>that table. This would have reset the previous DENY. So,
>>set the permissions
>>>again and try again: First, grant UPDATE permission on
>>the table, then DENY
>>>UPDATE permission on that specific column, now try the
>>UPDATE from ADP.
>>>--
>>>HTH,
>>>Vyas, MVP (SQL Server)
>>>http://vyaskn.tripod.com/
>>>
>>>
>>>
>>>
>>>"Michael" <mhweiss@hotmail.com> wrote in message
>>>news:188301c2ee5c$b3fab870$a401280a@phx.gbl...
>>>I checked using sp_who and the login being used
currently
>>>by the adp is my own. I have explicity denied UPDATE
>>>priveleges on the column in question for my login so I
am
>>>perplexed as to why I can still go into the adp and
>update
>>>the column value. It seems like I should receive some
>type
>>>of warning message regarding insufficient priveleges for
>>>update on that column. Any other thoughts come to mind?
>>>Thank you,
>>>Michael
>>>>-----Original Message-----
>>>>I don't know much about ADPs, but do check your connect
>>>string, if there's
>>>>one.
>>>>
>>>>You can always find out the login name used by your ADP
>>>by running sp_who in
>>>>SQL Server. Look at the login name column of the
output.
>>>You could also
>>>>trace it using SQL Server Profiler.
>>>>--
>>>>HTH,
>>>>Vyas, MVP (SQL Server)
>>>>http://vyaskn.tripod.com/
>>>>
>>>>
>>>>
>>>>
>>>>"Michael" <mhweiss@hotmail.com> wrote in message
>>>>news:17e901c2ee55$8aa9a640$a501280a@phx.gbl...
>>>>How can I tell which login my adp is using? Any
>>>>suggestions would be welcome!
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>Then your ADP is probably not using the same login,
>that
>>>>has been denied
>>>>>permissions on this column.
>>>>>--
>>>>>HTH,
>>>>>Vyas, MVP (SQL Server)
>>>>>http://vyaskn.tripod.com/
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>"Michael" <mhweiss@hotmail.com> wrote in message
>>>>>news:18d301c2ee4e$e544b420$a301280a@phx.gbl...
>>>>>I have an Access adp project (Access 2000 version)
that
>>>>>connects to a SQL Server 2000 DB using WinNT
>>>>>authentication. I need to lock down one column in a
>>table
>>>>>so that only one specific user can update data in that
>>>>>column. Setting user permissions on this column in EM
>>>does
>>>>>not seem to have any impact on a user's ability to
>>update
>>>>>or change values in that column via a form in the adp
>>>>>project. What am I missing here or doing incorrectly?
>>>>>Thank you,
>>>>>Michael
>>>>>
>>>>>
>>>>>.
>>>>>
>>>>
>>>>
>>>>.
>>>>
>>>
>>>
>>>.
>>>
>>
>>
>>.
>>
>
>
>.
>
- Next message: Kevin McDonnell [MS]: "RE: SQL Monitor Service port scans"
- Previous message: Narayana Vyas Kondreddi: "Re: Set column level permissions in Access adp"
- In reply to: Narayana Vyas Kondreddi: "Re: Set column level permissions in Access adp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|