473,503 Members | 5,495 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Where is the location of System DSN Password?

233 New Member
I am having an issue with a system running Windows XP Pro. I have created a System DSN, tested the connection successfully, yet the application that uses the System DSN errors out stating that the username exists, but the password is incorrect. I can view the System DSN information in the registry, HKLM\Software\ODBC\ODBC.INI\<DSN name>, but I am uncertain where the password is stored. Even if I knew the whereabouts of the password, I would not think it would be in plain text. The user of the system has domain and local admin privileges, and the configuration of the System DSN is typically straightforward as I have never had an issue like this. Any help on this issue would be appreciated.

**edit**
I think I found the answer I was looking for in another thread. When using SQL authentication, the password for the System DSN is not stored. The password needs to be included in the connection string for the application.
Feb 2 '11 #1
1 23321
Chr Boc
1 New Member
Hello,

Yes, include the PASSWORD in your connection string :)

If you're wondering why, it's because the PASSWORD is hashed. Then, SQL authentication compares the hash (passed over a network). If they are a match, you connect :) In this way, the password is kept safe. i.e., it is not clear text.

P.S. There are also ways to keep the password safe inside your code or application configuration file. You could use a SecureString, or the more complicated (albeit safer) encryption in a configuration file. Here is a link to get you started: the language is C#: http://www.codeproject.com/KB/securi...igWinApps.aspx
Feb 3 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1763
by: ruflicks | last post by:
Hi all, i may be flamed but did not find anything on that. I have zope 2.7 running on windows 98 and I really like it. Problem is when i use the zope help system I am asked to give a login and...
21
3004
by: puzzlecracker | last post by:
Guys - Is it possible to find which way system stack grows? Perhaps, I am not precise enough: When a function is called, the return address of (callee) function is put on the stack. Thus, the...
3
17920
by: pontifikas | last post by:
I'm pretty damn sure there should be a System.Math library somewhere around .Net. But I cannot find it. What is the name of the reference for it? Any Ideas? What could I be doing wrong? ...
0
857
by: Saso Zagoranski | last post by:
Hi group! I've spent the last few days trying to make a simple WS-Transaction (using ..net 2.0). After using google for a few hours I saw the solution: the System.Transactions.WsTx...
3
17578
by: groovyjman21 | last post by:
Hi, I am using FXCop on my c# project and it is complaining about signing the assembly with a strong name key. All the documentation I can find says to do: using System.Reflection; .... ...
3
16138
by: Marco Shaw | last post by:
I've got some C# code to create a custom PowerShell cmdlet with these statements: .... using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; .... ...
4
4847
by: bobby | last post by:
Hello group, I just wanted to know where are system standard include and libraries directories in Ubuntu? I searched in usr/include and usr/local/include and I could not find any header?!! I...
4
10210
by: hon123456 | last post by:
Dear all, I try to type using system.linq in Visual studio 2005. But it complains that no namespace of System.ling is found. Maybe I need to add reference to System.linq. How can I add...
8
2686
by: DevInCode | last post by:
I'm working on a site that has been left to die for a few years. There is a login to access a certain part of the site. I can't figure out where this password is stored. When the private html...
8
18747
by: kini113 | last post by:
I want to update my database every night at 10pm. I have a Macro that runs all of the queries needed to update the database (which is also saved as a VBA module) and an AutoExec Macro to runs the...
0
7207
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
7291
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,...
1
7012
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...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5598
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,...
0
3171
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1522
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 ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
402
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...

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.