Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 query help

Author  Topic 

rajasekhar857
Constraint Violating Yak Guru

396 Posts

Posted - 2009-11-20 : 04:58:31
please provide scripts to create a new user name as below

User Name : ezbill

Pass : ezbill



This user must have read only access to the 4 views alone
help me in giving scripts for that

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-11-20 : 09:56:43
Create Login: http://msdn.microsoft.com/en-us/library/ms189751(SQL.90).aspx

Create User: http://technet.microsoft.com/en-us/library/ms173463(SQL.90).aspx
Go to Top of Page

rajasekhar857
Constraint Violating Yak Guru

396 Posts

Posted - 2009-11-24 : 04:07:04
Hi Russel,
i have to create a user and he should view only 4-5 views and the rest of the objects he can't see those.how can i give script for that.

Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2009-11-24 : 10:45:32
GRANT SELECT ON VIEW To <user>
Go to Top of Page
   

- Advertisement -