Advertisement

05.12.2006 at 12:08PM PDT, ID: 21848755
[x]
Attachment Details

Setting SQL Server 2000 access permissions / System.Data.SqlClient.SqlException

Asked by tmccrank in Databases Miscellaneous

Tags: sql, 2000, access, permissions, server

Hi,

I'm getting a "Login failed for user 'yadda'" while stepping through my code.  It breaks when I try to open a connection to the DB.  I've double and triple-checked my connection string (which is initializing, no problem there I don't think) and my permission settings in my DB.

Here's my connection string:

      <appSettings>
            <add key="conn" value="Persist Security Info=False;Initial Catalog=Nurse Education Modules;Data Source=(local);User Id=Nurse;password=nurse;" />
      </appSettings>


In SQL Server, under Logins the Security folder, I created a login called "Nurse".  
I checked SQL Server Authentication and entered a password (as reflected in my connection string).  I also specified the proper DB to be used.  In the "Database Access" tab, I checked 'Permit' beside the relevant DB.
After created the Login, I went to 'Users' in the DB itself.  Under 'Database role membership' I checked 'public', 'db_datareader' and 'db_datawriter'.  Then, I clicked on the Permissions button and ensured that SELECT, INSERT, UPDATE and DELETE were checked for the tables I have.

So far, I'm still running into problems.
Thanks in advance for any help,
JStart Free Trial
[+][-]05.12.2006 at 12:33PM PDT, ID: 16670524

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]05.12.2006 at 12:52PM PDT, ID: 16670667

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.

 
[+][-]05.12.2006 at 01:13PM PDT, ID: 16670856

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]05.15.2006 at 08:01AM PDT, ID: 16682944

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.

 
[+][-]05.15.2006 at 03:22PM PDT, ID: 16686296

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.

 
[+][-]05.16.2006 at 01:51AM PDT, ID: 16688740

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]05.16.2006 at 10:02AM PDT, ID: 16692520

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.

 
[+][-]05.17.2006 at 02:17AM PDT, ID: 16697518

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]05.17.2006 at 07:40AM PDT, ID: 16699636

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.

 
[+][-]05.17.2006 at 07:44AM PDT, ID: 16699675

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

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

 
[+][-]05.17.2006 at 09:21AM PDT, ID: 16700614

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.

 
[+][-]05.30.2006 at 09:24AM PDT, ID: 16791086

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]06.05.2006 at 11:14PM PDT, ID: 16839965

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

Zone: Databases Miscellaneous
Tags: sql, 2000, access, permissions, server
Sign Up Now!
Solution Provided By: Netminder
Participating Experts: 4
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32