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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:46:06+00:00 2026-05-18T08:46:06+00:00

I had a windows application, it will connect to online database if network is

  • 0

I had a windows application, it will connect to online database if network is available.
and connect to local database if no network is available.

So application requires SQL Server in client machine, for offline data storage.
In setup creation, if I specify the prerequisite as SQL Server 2005 Express, then setup will check for SQL Server 2005 Express only. It won’t check for full version is installed or not.

Now my problem is..

If the client computer has one or more instance(s) of SQL Server installed already (i.e SQL Server 2008 Express or a full version i.e. Enterprise/Standerd/Developer edition) for the user, an option needs to be shown to choose the instance on which application has to store data for offline usage.

  1. Is there any way to specify OR criteria for SQL Server in the prerequisite as if any of the instance exists??
  2. if more than one instance or version exists, it need to show all available SQL Server instances on this machine.. but I am not getting all instances.

I am using the following code to detect SQL Server instances,

        ManagedComputer mc = new ManagedComputer();           
        foreach (ServerInstance si in mc.ServerInstances)
        {
            liServers.Add(si.Name);
        }

Please help me..

Thanks

Ramanji.

  • 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-18T08:46:07+00:00Added an answer on May 18, 2026 at 8:46 am

    try this method from MSDN

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

Sidebar

Related Questions

I had used Server Explorer and related tools for graphical database development with Microsoft
I have an application that uses window.open() to generate dynamic popups. Unfortunately, I've had
I've had a Windows app in production for a while now, and have it
I've never had to do IPC on Windows before. I'm developing a pair of
I recently had a problem during the deployment of a windows service. Four computers
Has anyone had any luck with querying/changing SPNs on a Windows domain? Most of
I'm using Windows Vista and C#.net 3.5, but I had my friend run the
We have a .NET application that will be distributed through USB drive. End users
I am designing a library for my application, that wraps Windows smartcard subsystem. Physically,
So I'm trying to make a client for my server in C#, that accepts

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.