Sql server Permisson Query

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
LVL 10
ukerandiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David ToddSenior DBACommented:
Hi,

TestServer\Group1 - how did you add users to that?

What is the relationship between TestServer and the AD Domain?

HTH
  David
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ukerandiAuthor 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
0
Eugene ZCommented:
there is no execute action on table.
if you plan to read data from table


USE yourdb
GRANT SELECT ON Table1 TO [TestServer1\Group1];
GO

--more

GRANT Object Permissions (Transact-SQL)
http://msdn.microsoft.com/en-us/library/ms188371(v=sql.105).aspx


also make sure
that login that is executing this connection is member of this windows group  [TestServer1\Group1] that must be added to sql logins;
connetionString= "Data Source=TestServer1;Initial Catalog=MainDB;Integrated Security=SSPI"
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.