Solved

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

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

816 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

8 Experts available now in Live!

Get 1:1 Help Now