954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

SQL Server Netwoking Setup

Hi all,

I have an application written in C#, it connects to a SQL database using SQL Server 2005 Express.

What I need to do is install my application on multiple computers on a network, but they must run from a single database on one of the machines, so I need to know how to setup the instances?

Do I only install the instance on the one machine running the database and then point the other apps to that machine\instance or do I need to install the instance on every machine and point that instance to the hosting computer and if so how do I do that?

Thanks in advance

NeroToxic
Newbie Poster
5 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

You should be able to install the C# program on a single network computer, create a shortcut to it on each client computer, then run an instance of it on each indivual client computer. You may have to change the connection string in the C# program to point to the machine on which the database is running, unless you have already done that.

Ancient Dragon
Retired & Loving It
Team Colleague
30,050 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Hi all,

I have an application written in C#, it connects to a SQL database using SQL Server 2005 Express.

What I need to do is install my application on multiple computers on a network, but they must run from a single database on one of the machines, so I need to know how to setup the instances?

Do I only install the instance on the one machine running the database and then point the other apps to that machine\instance or do I need to install the instance on every machine and point that instance to the hosting computer and if so how do I do that?

Thanks in advance


The two things you need to keep in mind are the database connection string and permissions. If the application is set up with a connection string pointing to the server and has access rights sufficient for the work to be done, everything will work even if you have multiple instances of the application on client machines.

Network applications usually have a module that lets users set this up with different databases, different connection strategies, and the like. Really all it does is create a connection string so that the application can open a connection to the database.

Ravalon
Posting Whiz in Training
213 posts since Dec 2006
Reputation Points: 84
Solved Threads: 15
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You