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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:08:35+00:00 2026-06-08T13:08:35+00:00

On my machine there are two instances of SQL Server SQLEXPRESS MSSQLSERVER I’m trying

  • 0

On my machine there are two instances of SQL Server
SQLEXPRESS
MSSQLSERVER

I’m trying to connect to the MSSQLSERVER, but I keep getting

{“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 25 – Connection string is not valid)”}

Here’s the connection string:

  connectionString="data source=.\MSSQLSERVER;Integrated Security=SSPI;initial catalog=OdeToFoodDB"
         providerName="System.Data.SqlClient"

I’m trying to get the server visible to remote connections, but it doesn’t work.

doing sqlcmd -L gets me:

Servers:
(local)
MACHINE1
MACHINE1\SQLEXPRESS

which seems strange given the fact that I disabled the SQLEXPRESS service, and only left the MSSQLSERVER running.

enter image description here

In Configuration Manager, in Network Configuration->Protocols for MSSQLSERVER I enabled the TCP/IP and Named Pipes, and in IP Addresses the setup is as follows:

IP1 & IP2
IP3 & IP4

but the server is still not available for remote access (netstat -nb shows no processes listening to 1433). My windows firewall is off.

Any ideas?

  • 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-08T13:08:36+00:00Added an answer on June 8, 2026 at 1:08 pm

    If your MSSQLSERVER is the standard instance it will take the name of the machine. So you should try:

    connectionString="data source=MACHINE1;Integrated Security=SSPI;initial catalog=OdeToFoodDB"
             providerName="System.Data.SqlClient"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

On a non-production machine, I have two instances of SQL Server 2005. I want
Since SQL Server Express is free to use, If I install two instances of
We're exploring different approaches for communicating between two different SQL Server instances. One of
We have a Service Broker application where we're communicating between two SQL Server instances
I am trying to invoke an EJB on JBoss 5.1.0 from two instances of
There are two instances of Javascript failing through Safari. It's only safari, I've tested
Here it goes. There are two emulator instances say A and B on same
I have the following situation. There is one central SQL Server (2008 R2, Standard
I have to deploy a C# application on a 64 bit machine though there
Is there any virtual machine to test Android? How can I debug the program

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.