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

  • SEARCH
  • Home
  • 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 8727323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:24:56+00:00 2026-06-13T08:24:56+00:00

I just installed [sql server express r2].I connect to my database from asp.net project

  • 0

I just installed [sql server express r2].I connect to my database from asp.net project with this connection string:

     "Data Source= my-PC\SQLEXPRESS;Integrated Security=true;Database=example"

The life was beutifull untill I added to project new database created in [Managment Studio] (example2).Suddenly I got this eror:

Cannot open database “example” requested by the login. The login failed.

Login failed for user ‘my-PC\love’.

After that I couldn’t connect either [example] and [example2].Then I tryed to use ‘sa’ login:

     "Data Source= my-PC\SQLEXPRESS;Database=example;User ID=my;Password=password"

No effect.
I read a lot of articles.I tryed to use all I can :I enable all [protocol names],disable firewall,use mixed mode but still not resolved problem.

Any idea?

Edit:

I can login to managment studio using “my” login and password.But from project in visual studio cant.

  • 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-06-13T08:24:57+00:00Added an answer on June 13, 2026 at 8:24 am

    For your second connection string: remove the “integrated security” section.

    However, using the SA login for anything, especially in your software is a really bad practice.

    The error you are getting in your first example indicates that the login does not have access to the new database. Pull up the login’s properties in SSMS (under Security -> Logins) and add the database on the “User Mapping” page.

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

Sidebar

Related Questions

Just this morning, I installed SQL Server 2008 Express SP2 from the Web Platform
I just installed sql server 2008 express on xp in vmware. My connection string
I just installed SQL Server Express 2012 on my home server. I'm trying to
i just installed sql server 2008 express in order to learn microsoft sql. why
I just installed VS2012 pro RC and SQL server Express 2012. I go to
I've just installed SQL Server 2008 Developer edition and I'm trying to connect using
I've just installed Microsoft SQL Server Express 2008 (with Reporting Services). My installation is
So I am just getting started with this. New to .NET, SQL Server, C#,
i just installed the full sql server 2008 express on my machine and i
I have just installed the MS SQL Server 2005 Express and, of course, I

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.