سؤال

Im not too familiar with SQL Server. Can one of you experts please help me with this !

Ive got a table where I want to stop everyone from making changes (Select is fine) except for one user who can read and write to it.

So far Ive got the following to give the user access,

GRANT SELECT, INSERT, UPDATE, DELETE ON [dbo].[RAckNakLog] TO [svc-eR]

How do I stop everyone else from writing to it ?

هل كانت مفيدة؟

المحلول

just the opposite:

DENY INSERT, UPDATE, DELETE ON [dbo].[RAckNakLog] TO [svc-eR]

If you already granted access to a user you need to revoke them (like delete GRANT or DENY)

REVOKE INSERT, UPDATE, DELETE ON [dbo].[RAckNakLog] TO [svc-eR]
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top