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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:54:25+00:00 2026-05-16T14:54:25+00:00

My application connects to an arbitrary (configurable) instance of SQL Server. If the instance

  • 0

My application connects to an arbitrary (configurable) instance of SQL Server.

If the instance is local, the application needs to ensure that the SQL service is started before connecting.

Given the name of the instance, how do I determine the name of the service to start?

  • 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-16T14:54:25+00:00Added an answer on May 16, 2026 at 2:54 pm

    Per Books Online, the default instance service name called MSSQLSERVER and named instances have the service name MSSQL$InstanceName. See “Setting Up Windows Service Accounts” in Books Online.

    I suppose there’s a theoretical corner case where someone has managed to install MSSQL with different service names, but that seems extremely unlikely. And if someone does, they should expect to have problems.

    Depending on your target application userbase, you might just try to connect to the instance and if it fails ask the user to ensure it’s running and the name is correct. Or you could enumerate all instances on the box and ask them to pick one (there are a few questions here about enumerating instances).

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

Sidebar

Related Questions

Suppose that i have an application that connects to a sql server, and this
Our application connects to a SQL Server database. There is a column that is
I have an application that connects to a number of SQL Servers for monitoring
Currently I have an application that connects to a Terminal Server over TCP/IP using
I made an android application which connects to a local web service on my
My application connects to several SQL Server instances (Using SMO and ADO.net), these connections
Every time my PHP application connects to my SQL Server database, the following gets
I have a web application connects web service on a machine uses proxy server.
In my .NET application I am connecting to Microsoft SQL Server 2005 or 2008
I have an application which connects to SQL Server 2000 (using a generic SQL

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.