Proqrammer
Programmer
- Sep 17, 2006
- 64
Hi there,
I have created a user in the server with "exec sp_addlogin" and I can see the user being created in security section of the server.
I also want the user to be given some rules such as db_owner or db_datareader so that it can use the database, how can I assign a created user to a database and give some rules to it?
I'm looking for stored procedures, and I'm using Ms SQL 2005
Thanks
I have created a user in the server with "exec sp_addlogin" and I can see the user being created in security section of the server.
I also want the user to be given some rules such as db_owner or db_datareader so that it can use the database, how can I assign a created user to a database and give some rules to it?
I'm looking for stored procedures, and I'm using Ms SQL 2005
Thanks