Solved

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

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.

740 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