Solved

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

Posted on 2007-03-28
3
181 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

16 Experts available now in Live!

Get 1:1 Help Now