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 8440121
In Process

The Archive Base Latest Questions

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

No matter what I try I keep getting the following error when I try

  • 0

No matter what I try I keep getting the following error when I try to run a simple select query to the database I created (I’ve run the exact query in the Management studio and it works fine and the login used is in the sysadmin group):

{“Cannot open database \”Test\” requested by the login. The login
failed.\r\nLogin failed for user
‘JackLarson’.”} System.SystemException
{System.Data.SqlClient.SqlException}

My connection string is:

Data Source=.\MPIT_TEST;Initial Catalog=Test;Integrated
Security=True;Connect Timeout=30;User Instance=True

  • 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-10T08:11:58+00:00Added an answer on June 10, 2026 at 8:11 am

    you have to set your server name in your connection string
    if your servername is SERVERSQLCOMPUTER your connection string will be:

    Data Source=SERVERSQLCOMPUTER \MPIT_TEST;Initial Catalog=[Test_MPITRACKER];Integrated Security=True;Connect Timeout=30;User Instance=True
    

    Moreover, always specify server name to be able to use your application on every computer in network entreprise (servername\serverinstance is an absolute path)
    .\serverinstance means that your application is on the same computer than your Sql server

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

Sidebar

Related Questions

For some reason i keep getting the following error when i try to set
No matter what I try I keep getting an infinite loop with this function:
I keep getting the error Stream was not writable whenever I try to execute
When I try to compile my erlang script I keep getting this error: (master@WN7-18TL6M1.amer.dell.com)15>
I have a simple problem but no matter what I try I can't see
I am trying to get this server to run however I keep getting an
i keep getting Compilation errors when i try to do this . .is there
Why am I getting authenicationFailed when I try to run deploy setup? I am
No matter what I try, it never matches the sign. I even tried using
I've been trying to override the file login.xml but no matter what I try,

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.