Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a requirement such as an app is installed on a particular system which is a server on a lan. Here the administrator provides some configuration settings and save it in an ini file. When the other computers on the LAN opens the windows forms application, the ini file should be read and then the application is launched according to the file settings. I know this might not be possible due to permissions and all. So I was thinking maybe during installing the app on the server it creates a SQL database and store the settings in the tables. When the client computers on LAN run the application they just read the database on the server and do the same. I just have this idea but I am not sure is it achievable and if it is can someone throw some insight on it. '

Any help is appreciated. Thanks in advance
Posted

do you have sql server or any other database server? is it accessible from other machines in you LAN? then you can create database on that DB server and your client application can connect to database server with database connection string.

check below links for how you can secure connection string data
http://msdn.microsoft.com/en-us/library/89211k9b(v=vs.110).aspx[^]
http://msdn.microsoft.com/en-us/library/ms178372(v=vs.100).aspx[^]
Encrypting windows application connection strings[^]
http://www.asp.net/web-forms/tutorials/data-access/advanced-data-access-scenarios/protecting-connection-strings-and-other-configuration-information-cs[^]
 
Share this answer
 
Are you using SQL Server database? If yes -
-while installing, install it in Mixed Mode Authentication
-Install SQL Server Management Studio on the same machine
-Start SQL Server Management Studio.
-Login with User Name and Password provided while installation
-You will see SQL Server instance name something as MYPC/SQLEXPRESS (if you are using Express edition)
-Build connection string
-Use in your app and connect to the database over network.

Make sure you have proper setting in Firewall & anti virus software, which may block your connection to database.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900