473,597 Members | 2,718 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1378
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*********@ho tmail.com> wrote in message
news:u6******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message
news:eQ******** ******@TK2MSFTN GP11.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*********@ho tmail.com> wrote in message
news:u6******** ******@TK2MSFTN GP09.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
18958
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 any preconceived ideas about it. I have noticed, however, that every programmer I talk to who's aware of Python is also talking about Ruby. So it seems that Ruby has the potential to compete with and displace Python. I'm curious on what basis it...
2
1692
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 = conn.prepareCall(callstmt); String e = "000150"; clst1.setString(1,e); " clst1.setString(1,e);" fails with exception CLI0109E String data right truncation.
7
2921
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 DB2/UDB Ver 8.2 AIX server Win 2000 SP4 DB2/UDB Ver 8.2 Win 2000 Server SP4 Win XP SP2 DB2/UDB Ver 8.2 AIX server Win XP SP2 DB2/UDB Ver 8.2 Win 2000 Server SP4
2
2228
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
1277
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Customer development\VBNET\CSFV\CSFV.mdb;" Dim Conn As New OleDbConnection(gConnString) 'Actual Connection to database. Conn.Open()
4
3161
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: client.c:147: error: incompatible implicit declaration of function UpdateStatus client.c:37: error: previous implicit declaration of UpdateStatus was here The code is as below:
1
2205
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 les boucles. d'abord code serveur: from socket import * import socket, sys, threading class ThreadClient(threading.Thread):
84
3925
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. 2. Client side processing: Web server gets form input and passes it to PHP which includes the Javascript written in a way to make the form input processed on the client side and rendered (probably using DOM function calls) on that side as...
18
2445
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 that one can implement a very basic form of subclassing in C (the gurus certainly already know this, but it was news to me). What i've done (shown below) seems to work all fine and well, and does exactly what i'd expect, but i'm asking about
0
7894
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8044
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6705
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3893
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2409
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1496
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.