Solved

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

Posted on 2007-03-28
3
182 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
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

INTRODUCTION: While tying your database objects into builds and your enterprise source control system takes a third-party product (like Visual Studio Database Edition or Red-Gate's SQL Source Control), you can achieve some protection using a sing…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

867 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now