Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I got the following issues while querying a database, and somehow I am not yet able to resolve it.

1. The SELECT permission was denied on the object

So I executed the following command on SSMS ( I am the sa )

2. GRANT SELECT ON [PQR].[dbo].[XYZ] to ABC

I get the following error

Cannot find the user 'ABC', because it does not exist or you do not have permission.

Can anyone please help?? I The user ABC does exist, I can see it under the database->security->users

Thanks

share|improve this question
add comment

1 Answer 1

Please try this TSQL command, rather than your own:

USE [PQR]
GO
GRANT SELECT ON [dbo].[XYZ] to ABC
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.