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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:15:03+00:00 2026-05-18T05:15:03+00:00

On my prod server, I have 2 instances of SQL server, SQL Server 2000

  • 0

On my prod server, I have 2 instances of SQL server, SQL Server 2000 is the default instance, and I have \SQLEXPRESS2008 as an additional named instance. In my web project, I need to connect to the default, SQL 2000 instance.

I’m using LINQ to SQL in Visual Studio 2008.

In the Server Explorer in Visual Studio, I can create a connection to the DB, see all the tables, correctly generate the LINQ to SQL classes, etc.

In Management Studio I can connect to the DB, see everything, edit, etc.

When I try and run my web project code, however, I get:

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: Named Pipes
Provider, error: 40 – Could not open a
connection to SQL Server)

My connection string in the web project looks like:

<add name="myConnectionString" connectionString="Data Source=myServer.com;Initial Catalog=myDB;Persist Security Info=True;User ID=sa;Password=XXXXX" providerName="System.Data.SqlClient" />

(I’m testing with the sa account out of desperation).

I have other web projects running fine and utilizing the DB, but this is the only one using the LINQ to SQL classes (if that matters)

Help appreciated

Jonathan

  • 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-18T05:15:03+00:00Added an answer on May 18, 2026 at 5:15 am

    If the web server is the same as the SQL server, just use . as the server name; much simpler.

    If the web server us not the same as the SQL server, ensure that there is line-of-sight between these servers through any firewalls etc. Also ensure that the server name resolves (in many ways, it is simpler to use the IP address in the connection string if name resolution cannot be guaranteed).

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

Sidebar

Related Questions

I have a stored procedure in a test instance of a sql server (named
I have an ASP.NET project that also uses a SQL MDF File. My target
I have to delete some table data in prod. db and for the records
I have a long running query that returns a large data set. This query
I have an Glassfish ESB based CASA app running in production system (Win 2k3)
I have this ASP.NET MVC application that I now want to separate out the
bit of a curly one here let me know if you have any ideas..
I am running nginx 0.6.32 as a proxy front-end for couchdb. I have my
whats a good way to be able to keep 2 connection strings to SQL
UPDATE 2 This is a known bug/feature with the way Ruby 1.9.2 loads files.

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.