Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6350857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:53:28+00:00 2026-05-24T21:53:28+00:00

I am using in built sql server 2005 which comes with visual studio 2008

  • 0

I am using in built sql server 2005 which comes with visual studio 2008 in my project.
This is my connection string.

SQLConnection oConnection = new SQLConnection("Data Source=.\SQLExpress Initial Catalog=Fas"); 

When I try to open the connection like oConnection.open() I am getting error like “Login failed for this user. User is not associated with trusted connection.”
By some googling I get the idea that I am using Windows authentication mode. So how can I change it to mix mode authentication? I dont have separate sqlserver installed on my system.
It is same that comes with visual studio 2008

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:53:28+00:00Added an answer on May 24, 2026 at 9:53 pm

    It is a “Separate SQL Server”, Visual Studio just installs it for you. There is no difference between it and the SQL Express installation you would get from Microsoft.com.

    You’ll want to fire up SQL Express Management Studio. It should be under “Microsoft SQL Server 2005” in your start menu. Connect to the SQLEXPRESS instance; once connected, under “Object Explorer”, right click the server itself, hit properties, then Security.

    Using Mixed Mode isn’t the best for security practices since it requires storing a username and password in a connection string somewhere. If you are using a web server project, your best bet would be to add the NETWORK SERVICE as a data reader / writer, or db_owner depending on your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using built-in SQL Server 2005 that comes along with Visual Studio 2008.
I'm using the built in web server in Visual Studio to test some pags
Project being built on ASP.net v 2 VB.net IIS 6 SQL Server 2005 database
i have built a reporting services report off SQL server 2005 and am having
I have a website that is built in ASP.NET 3.5 & SQL Server 2005,
I'm currently building a project that references SQL Server 2005 Assemblies, but I would
Little background: Recently I upgraded SQL server management studio 2005 by applying the patch
I have a sql server 2005 table which has xml store in a text
All I have built a windows form application using VS 2005 Standard edition which
Sproc in SQL Server 2005 parses, compiles and runs successfully via SQL Management Studio.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.