473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

what approach for client specific conn string?

I'm developping a windows app that will be sold to different clients. The
app connects to a Database located on my server. That app is installed on
multiple machines for each client.
Each client will have his own database on my server. What would be the best
approach to keep the connection data secure and easily manageable? I don't
want to have the connection string or parameters in the app.config file. One
of my fears is also to give a version to a client with the connection string
for another client giving him access to the wrong DB.
I was thinking that one of the easiest way might be to have their sys admin
enter that info during installation and to store it encrypted in a text
file. Is it a good solution?

How would you go about that?

Thanks

B
Nov 20 '05 #1
2 1353
You could store it in the registry as well, encrypted just to be extra safe.
If you really want to make sure that nothing gets mixed up, You could load
the info encrypted in the DB which you could put there at install time.
"Benoit Martin" <bm*********@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
I'm developping a windows app that will be sold to different clients. The
app connects to a Database located on my server. That app is installed on
multiple machines for each client.
Each client will have his own database on my server. What would be the best approach to keep the connection data secure and easily manageable? I don't
want to have the connection string or parameters in the app.config file. One of my fears is also to give a version to a client with the connection string for another client giving him access to the wrong DB.
I was thinking that one of the easiest way might be to have their sys admin enter that info during installation and to store it encrypted in a text
file. Is it a good solution?

How would you go about that?

Thanks

B

Nov 20 '05 #2
Thank you for your suggestion,

here is what I've been thinking about doing:


The customer will enter a code during installation. I'll use a module with
all the settings data for each cutomer. The app will go to the appropriate
data using the code that we entered at install time. This code would have to
be stored in the registry or a text file (I think registry is a better
idea). The data will also have to be strongly encrypted to avoid a customer
de-compiling the app and finding out about all the settings of all
customers.

The advantage of this technique is that the only time I have to worry about
making a mistake is when I give out the code to the customer. I should be
able to do that without making any mistakes.

Please let me know what you think about this approach. Any issues (security
etc...) you can see?

PS: I forgot to mention that the number of different customers is more in
the dozen (at most) than the hundreds or thousands.

thx

"William Ryan" <do********@comcast.nospam.net> wrote in message
news:eQ**************@TK2MSFTNGP11.phx.gbl...
You could store it in the registry as well, encrypted just to be extra safe. If you really want to make sure that nothing gets mixed up, You could load
the info encrypted in the DB which you could put there at install time.
"Benoit Martin" <bm*********@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP09.phx.gbl...
I'm developping a windows app that will be sold to different clients. The app connects to a Database located on my server. That app is installed on multiple machines for each client.
Each client will have his own database on my server. What would be the

best
approach to keep the connection data secure and easily manageable? I don't want to have the connection string or parameters in the app.config file.

One
of my fears is also to give a version to a client with the connection

string
for another client giving him access to the wrong DB.
I was thinking that one of the easiest way might be to have their sys

admin
enter that info during installation and to store it encrypted in a text
file. Is it a good solution?

How would you go about that?

Thanks

B


Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
2
by: Raquel | last post by:
The following is a piece of code from my client application which is trying to call stored procedure SP1: String callstmt = "CALL DB2ADMIN.SP1(?,?,?)"; CallableStatement clst1 =...
7
by: Christian Maslen | last post by:
Hi all, I've been trying to get a distributed transaction working between a ..Net client and DB2/UDB. I've tried the following combinations: Client Server Win 2000 SP4 ...
2
by: diffuser78 | last post by:
Hi, I have the following code for a cline and server which I got from a small tutorial on the web. #!/ usr/bin/env python # tms.py (SERVER) import socket import sys
7
by: lmnorms1 | last post by:
Hello, I am trying to update an access database record date field that matches a specific date. The code is not working. Anyone have any advice? Here is the code: Dim gConnString As String =...
4
by: whitemoss | last post by:
Hi, I've made some changes to my coding..but unfortunately, there were errors when compiling it..dunno how to solve it..hope anyone can help me...the errors: client.c: In function senddata:...
1
by: tsic | last post by:
Bonjour, je suis bloqué ilya preque 2 semaines dans le code suivant. je veut que le client et le serveur envoyent leurs message d'une maniere comme msn. je crois qu'ilya quelque chose à ajouter dans...
84
by: Patient Guy | last post by:
Which is the better approach in working with Javascript? 1. Server side processing: Web server gets form input, runs it into the Javascript module, and PHP collects the output for document prep....
18
by: Stephan Beal | last post by:
Hi, all! Before i ask my question, i want to clarify that my question is not about the code i will show, but about what the C Standard says should happen. A week or so ago it occurred to me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.