English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have an application in C# 2.0 installed in machine A. Now i want to run the exe from Macine B in the same network with out installing locally in B.
I triwed but getting DB errors, i want to know is it possible or not?

2007-03-09 00:33:32 · 3 answers · asked by Anzer 1 in Computers & Internet Programming & Design

Yes am storing the connection correctly and its in the config file.. I am sure connection is not the real prob..
Thank you for the replys,, I just wanted to know whether running an installed application from another machine is possible or not.

Thanks again
Anz

2007-03-09 01:27:17 · update #1

3 answers

As long as your program knows which machine to use for the database information the application can run anywhere. Generally database connectors allow you to specify an IP or "computer name". Most depends on what type of DBase is being used. All depends on your Code and type of database and how it connects.

2007-03-09 00:43:11 · answer #1 · answered by Tracy L 7 · 0 0

Yes you can. The connection string to the database should be placed in a configuration file rather than be hard-coded. Hard-coding it is an extremely bad practice which requires you to change the querystring in code and compile your application each time you change the DB server.

2007-03-09 09:13:09 · answer #2 · answered by Smutty 6 · 0 0

In principle, yes. In practice, care is needed; a system of locks is necessary so that two machines do not attempt to update the data base at exactly the same time. The application software needs to take this into account.

2007-03-09 08:46:09 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers