Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Problem adding user to MSSQL Express

Posted on 2007-11-14
10
681 Views
Last Modified: 2008-09-08
I have a windows 2005 server
I have installed MSSQL Express
I have copied my databases from existing MSsql database.
I have ASP code that access the database.
ASP code worked on other server with full version of MSSQL server.
This is the error the software gives:
Login failed for user 'administrator'. The user is not associated with a trusted SQL Server connection.

I need step my step instructions to fix the Database or Users
I have the Query tool, and can manage the databases.
0
Comment
Question by:yahoolane
  • 4
  • 2
  • 2
10 Comments
 
LVL 31

Expert Comment

by:James Murrell
ID: 20283229
Open up your control panel, go to administrative tools->Internet Information Services. Open up the properties of the virtual directory that you're using click the directory security tab. Click the edit button in Anonymous access... In this window change the user to the one you want.
0
 
LVL 1

Author Comment

by:yahoolane
ID: 20283304
Sorry cs97jjm3:
No Joy
How will that allow access to the database?
0
 
LVL 31

Expert Comment

by:James Murrell
ID: 20283717
0
Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 1

Author Comment

by:yahoolane
ID: 20284065
I am not trying to connect from a different machine.
The database is running on the same machine as the IIS is being served from.

I can change the config file of the software (ASP) to choose a user,
I have tried all users, but no Joy.

0
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 250 total points
ID: 20287657
The error message indicates that it is trying to connect using trusted authentication.

There are many reasons that this happens, but since its a new install, and since you mention you're plugging in logins into the connection string, I'm guessing that:

Your old SQL Server is configured to allow SQL logins, and your web app is configured to log in using SQL authentication.

Your new SQL installation is configured to ONLY allow trusted logins (it always logins using the currents windows user, and disregards any login or password that you supply) - this is default, but your web app is still configured to log in using SQL authentication

So, you need to download SQL Express tools from here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=C243A5AE-4BD1-4E3D-94B8-5A0F62BF7796&displaylang=en

Then connect to your SQL Express, and change it to allow SQL AND Trusted logins.

0
 
LVL 1

Author Comment

by:yahoolane
ID: 20289453
Here is a step my step I was looking for.
http://www.hostmysite.com/support/vps/windows/mixedmode/

Now need to add a user, looking for solution for this.
0
 
LVL 1

Author Comment

by:yahoolane
ID: 20290418
Here it is in a nutshell, but I like the link above
http://msdn2.microsoft.com/en-us/library/ms188670.aspx
0
 
LVL 30

Expert Comment

by:nmcdermaid
ID: 20293868
So you've sorted it all out now?
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

837 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question