Solved

VB.NET Application migrating from SQL Server 2005 to SQL Express

Posted on 2007-03-28
3
188 Views
Last Modified: 2012-05-05
Hi, I am tring to migrate an application that I have written in VB.NET using VS2005, from using a SQL Server 2005 database to a SQL Express database.

Basically I have migrated the database into SQL Express and set up the relevant users, and am trying to use the same connection string with the data source being the only change.

However when running the application, I now get the error.
"Login failed for user 'APPUSER'. The user is not associated with a trusted SQL Server Connection.

The previous login string was
User ID=APPUSER;Password = xxx;Data Source="localhost";Provider="SQLOLEDB.1"

the new login string is
User ID=APPUSER;Password = xxx;Data Source=".\SQLEXPRESS";Provider="SQLOLEDB.1"

Any help to get me going again will be very much appreciated.

Thanks
...Steve
0
Comment
Question by:swtiley
[X]
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
  • 2
3 Comments
 
LVL 28

Expert Comment

by:imran_fast
ID: 18806705
Check the user you have in IIS and check if the APPUSER has access on sql server logins on your database.
0
 
LVL 1

Author Comment

by:swtiley
ID: 18806801
Hi Imran,

I think you are on the right track, but this is a Windows Application not a Web. However you are right in that if I try and sign into SQL Server Management Studio with the user / login APPUSER,then I get the same message.

Therefore how do I make this user / login associated with a trusted SQL Server Connection

Thanks...
0
 
LVL 28

Accepted Solution

by:
imran_fast earned 500 total points
ID: 18807082
First login to your sql server using sa or windows authentication. then in security expand logins in the left hand object browser then add a new user appuser (if not exists)assign its password after that give it access on the particular datbase

check this link for steps

http://msdn2.microsoft.com/en-us/library/aa337562.aspxc
0

Featured Post

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

636 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