?
Solved

Problem adding user to MSSQL Express

Posted on 2007-11-14
10
Medium Priority
?
700 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
8 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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
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 1000 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Suggested Courses

829 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