Advertisement

04.10.2007 at 03:21AM PDT, ID: 22501393
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Working with SQL 2005 DB permission setup

Asked by tiseffies in SQL Server 2005, Visual Basic Programming

Tags: , , ,

I have a question regarding sql 2005 and my database setup. This is what it looks like
Database: DBX
Tables : table1 ... tableN
Users: domain\user1 .. domain\userN
Roles: roleX
Application Role: AppRoleX
Pwd: xxx

Do I need a schema to be created in Schemas section? It seems that by default i can logon with nt authentication and all tables are created with dbo schema.
I try to connect via the app role by activating it in vb and setting encrypted password with nt authentication, but it fails on the first table. By the way, logging on with nt authentication seems to work (I think it's going through the db role). I'm all confused as to how it all works. I've spend 2 hours going through pages of information and answers but i'm even more confused now than before I started.
I'd appreciate a simple step by step example of how to setup a app role (the syntax won't throw an error but i just have no select access)

The error i'm getting in vb is :

42000: [Microsoft][ODBC SQL Server Driver][SQL Server]SELECT permission denied on object 'Table1', database 'DbX', schema 'dbo'.

I'm using the following code connect is:
EXEC sp_setapprole 'AppRoleX', {Encrypt N 'xxx'}, 'odbc'

I feel i'm just not configuring the database correctly. Any help would be greatly appreciated

Thanks
Start Free Trial
[+][-]04.10.2007 at 05:25AM PDT, ID: 18881716

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Server 2005, Visual Basic Programming
Tags: sql, 2005, server, permission
Sign Up Now!
Solution Provided By: Lowfatspread
Participating Experts: 1
Solution Grade: C
 
 
[+][-]04.10.2007 at 07:03PM PDT, ID: 18887000

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32