473,383 Members | 1,716 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,383 software developers and data experts.

System DSNs, SQL and regedit

We're trying to automate inserting system DSNs using a .reg file. The
file works up to a point, but so far I have not found a way to insert
the proper password. The authentication method is SQL server, not NT.

The relevant section of the file looks like
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\vbWhadev a]
"Driver"="C:\\WINNT\\System32\\SQLSRV32.dll"
"Server"="DBSERVER"
"LastUser"="vbWhadeva"
"PWD"="knucklehead"
The PWD, I admit, was a blind stab in the dark.

Anyone worked this out? Googling and KB searches aren't doing it for
me, but I might be looking in all the wrong places.
Jul 20 '05 #1
1 3909
You need to specify the SQL Server login and password in your connection
string since these are not stored in the DSN. It would be a security
hole if these were stored with the DSN.

--
Hope this helps.

Dan Guzman
SQL Server MVP

-----------------------
SQL FAQ links (courtesy Neil Pike):

http://www.ntfaq.com/Articles/Index....partmentID=800
http://www.sqlserverfaq.com
http://www.mssqlserver.com/faq
-----------------------

"Samuel Checker" <sc@pffcu.com> wrote in message
news:20*************************@posting.google.co m...
We're trying to automate inserting system DSNs using a .reg file. The
file works up to a point, but so far I have not found a way to insert
the proper password. The authentication method is SQL server, not NT.

The relevant section of the file looks like
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\vbWhadev a]
"Driver"="C:\\WINNT\\System32\\SQLSRV32.dll"
"Server"="DBSERVER"
"LastUser"="vbWhadeva"
"PWD"="knucklehead"
The PWD, I admit, was a blind stab in the dark.

Anyone worked this out? Googling and KB searches aren't doing it for
me, but I might be looking in all the wrong places.

Jul 20 '05 #2

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

Similar topics

6
by: the_bass_man | last post by:
I need to be able to delete the value of something in my regedit using vb. Does any1 know how i would go about this. Thanks Ste
1
by: Option^Explicit | last post by:
I have seen some apps that are able to control/open regedit and highlight keys throughout the tree and open at a specified subkey. Something like a "Goto" function thats opens regedit at exactley...
7
by: Arpan | last post by:
Microsoft, in one of its "Help & Support" pages on ADO, says that a System DSN is three times faster than a File DSN. I find that a bit odd for the simple reason that won't it be faster for a...
6
by: dixie | last post by:
I want to run regedit and write a key from an event in a form in a more generic manner than the way I have done it here which is: RunReg = Shell("regedit.exe /s I:\APPFolder\SQLfix.reg", 0) ...
3
by: Chris Thunell | last post by:
Is there any way to programmatically create an odbc system dsn in vb.net? I have a bunch of DSNs that need to be created for SQL, Access, and Timberline and i thought that it would make my life...
3
by: Bernie Hunt | last post by:
I'd like to read a list of the ODBC DSNs set up on the computer. I thought I have seen how to do this but I can't seem to dag it. Can anyone help? Thanks, Bernie
3
by: RMDan | last post by:
I want a way to disable regedit, but enabling it with out using group policies? Im trying to make my computer safer and want to set up a set of files to enable/disable cmd(i ave bin doing it with...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi all, my problem is about services. I try comment you all steps for my issue: My development environment: Windows XP SP2
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.