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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:25:07+00:00 2026-05-25T19:25:07+00:00

I have three computer in a office and I have installed my C#-2005 Project

  • 0

I have three computer in a office and I have installed my C#-2005 Project on all three

computers. But Problem is that Boss wants Sql-server-2000 on One PC out of three and other

would share the same.

I don’t know how to share Sql-server-2000 between three PC?. How to do?.

Confusion:-

Thanks for your co-operation but here I have a confusion on majority people said to check

TCP/IP address and consider the Connection string as per main server from client PC.

Suppose I have financial project and there would be thousand of connection string in a

project. As per above I have to change thousand of connection string as per main pc.

Now think it is a one customer’s need If I have ten cutomer having same offer than think How much time I have to waste on it?. I have to modify thousand of connection string ten time more?.

If it is true than it will take lots of time on installation to each customer.

I don’t know if it is only way?.

The Connection string I have utilized on my each winform is as below:

string connstr = "server=.;initial catalog=maa;uid=mah;pwd=mah";
SqlConnection conn = new SqlConnection(connstr);
conn.Open();

Here suggested about Config File and same I don’t know if some body give me idea about how to consider it with my C#2005 project than it will save my lots time.

  • 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-25T19:25:08+00:00Added an answer on May 25, 2026 at 7:25 pm

    When you connect to the database in your code, you’ll need a database connection string of some sort somewhere in there. Figure out the connection string for the Database server and set your code to point to that database server’s connection info; I bet you currently you have it pointed at localhost

    If you’re using SQL Server you may need to enable remote connections on the database server.

    added: you may need to modify firewall settings as well to allow SQL Server traffic (thanks Jared)

    .

    Edit: For putting the configuration string into a central location.

    Your posted code

    string connstr = "server=.;initial catalog=maa;uid=mah;pwd=mah";
    SqlConnection conn = new SqlConnection(connstr);
    conn.Open();
    

    Change to

    Assuming your application has a App.Config file then you’d add an entry in there like

    <add key="DBConnectionString" value="server=.;initial catalog=maa;uid=mah;pwd=mah"/>
    

    And change your C# code to be like

    string connstr = ConfigurationManager.AppSettings["DBConnectionString"];
    SqlConnection conn = new SqlConnection(connstr);
    conn.Open();
    

    Putting the ConfigManager call into a class might be a good idea if you have a lot of settings to retrieve and/or believe the configuration storage methodology might change down the road. Going with the above example is WAY better than having the string literal scattered throughout your code.

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

Sidebar

Related Questions

I have three computers on my LAN, one running ubuntu , one running openSuse
I currently have mirroring setup between three computers, principle, mirror, and witness. During the
At Home we have a lot of media Content on three computers. I was
Have three divs in a container that I want to float over a large
I have a site that calls AJAX. It works at my office, where I
I have three videos: a lecture that was filmed with a video camera a
Recently I have configure a hadoop platform with three computer:one is for namenode/jobtracker. The
First some background: VB.NET 2005 Application that accesses a MS-SQL back-end, using multiple Web
So I have been charged with the task of making all of the computers
I want to import my project from the repository that is on another computer

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.