We help IT Professionals succeed at work.

Sql server Permisson Query

590 Views
Last Modified: 2014-08-13
I Created 1 Table and and stored procedure.(Sql server 2008)
I need to give access right to users

I created Group called Group1 and i add some users for that.

For example Table1 and Stored Procedure1
I gave this Grant using code below(T-sql)
 GRANT EXECUTE ON Table1 TO [TestServer1\Group1];
 GRANT EXECUTE ON stored procedure1 TO [TestServer1\Group1];

its execute successfully.

My query is I need to write VB.net code using following connection String
connetionString= "Data Source=TestServer1;Initial Catalog=MainDB;Integrated Security=SSPI"

Could you any  one show me How to give permission Table1 and Storedprocedure1

Need grant to access Insert,Delete,Execute store procedures1 and Table1

Thanks
Comment
Watch Question

Senior Database Administrator
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Create User group in TestServer
, Then Add users to that Usergroup1

All users in the group available in the AD directory
for example 1 user name
user1
Then AD Directory also User1
user1@companyname.com
EugeneZSQL SERVER EXPERT
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.