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
 General SQL Server Forums
 New to SQL Server Programming
 creating user in SQL Server

Author  Topic 

shaihan
Starting Member

20 Posts

Posted - 2007-03-11 : 13:46:28
i am a newbie in SQL Server. i want to add a new user to my database, whom i want to grant only insert, update, delete, select commands and some procedures/triggers. i need to log on to the database using that user from my asp.net application. i might have several users to log no to the system and for each user i need a set of tables in the databse. i want to wirte the procedures /triggers once for all the users in the database where they can access. i can write the procs under dbo schema, but i what about the tables?

currently i am using SQL Express to test my database. i have Management Studio Express installed on my PC.

S ]-[ /-\ | ]-[ /-\ N

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-03-12 : 02:15:09
Read about CREATE USER statement and other security related commands here:
[url]http://msdn2.microsoft.com/en-us/library/ms173463.aspx[/url]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

shaihan
Starting Member

20 Posts

Posted - 2007-03-12 : 12:58:09
thanx for your reply. now i get clear vision of schema and user in SQL Server 2005. it will help me a lot.

thanx again

S ]-[ /-\ | ]-[ /-\ N
Go to Top of Page
   

- Advertisement -