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

programmatically create system dsn in vb.net

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 easier if i had a little
program that would run to create these DSNs instead of manually installing
them on each pc. I'm lazy - what can i say! :)

The ODBC drivers are already installed, i just need to create specific DSNs.

Any thoughts?
Chris Thunell
ct******@pierceassociates.com
Nov 21 '05 #1
3 4048
On Fri, 17 Jun 2005 11:03:24 -0400, "Chris Thunell" <ct******@pierceassociates.com> wrote:

¤ 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 easier if i had a little
¤ program that would run to create these DSNs instead of manually installing
¤ them on each pc. I'm lazy - what can i say! :)
¤
¤ The ODBC drivers are already installed, i just need to create specific DSNs.

See the following thread:

http://makeashorterlink.com/?F2555184B
Paul
~~~~
Microsoft MVP (Visual Basic)
Nov 21 '05 #2
Anyone know how to do this with vb.net? This is a good example (below) but
was written for vb6.

"Paul Clement" <Us***********************@swspectrum.com> wrote in message
news:3l********************************@4ax.com...
On Fri, 17 Jun 2005 11:03:24 -0400, "Chris Thunell"
<ct******@pierceassociates.com> wrote:

¤ 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 easier if i had a
little
¤ program that would run to create these DSNs instead of manually
installing
¤ them on each pc. I'm lazy - what can i say! :)
¤
¤ The ODBC drivers are already installed, i just need to create specific
DSNs.

See the following thread:

http://makeashorterlink.com/?F2555184B
Paul
~~~~
Microsoft MVP (Visual Basic)

Nov 21 '05 #3
"Chris Thunell" <ct******@pierceassociates.com> wrote in
news:eg**************@tk2msftngp13.phx.gbl:
Anyone know how to do this with vb.net? This is a good example
(below) but was written for vb6.


Uhhh... if you read it, I believe Paul Clement did the code conversion...

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 21 '05 #4

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

Similar topics

9
by: Amadrias | last post by:
Hi, In one of my current projects, I am willing to create a secure zone such as Acronis does in its application to store some confidential information only accessible to the current machine...
11
by: Robert Lacoste | last post by:
Dear Access gurus, I was using since years Access 97, now under XP SP2, without any problem. However I've just reformatted my HD (viruses...), reinstalled XP SP2, and then I am no longer able to...
6
by: ad | last post by:
I use the code to create a DataGrid and filled with data, But the DataGrid1 didn't display in WebForm. How can I display the DataGrid after creating it? DataGrid DataGrid1 = new DataGrid();
5
by: Jonah Olsson | last post by:
Hello guys, I have an application which is built upon several user controls. That is, I have a default template (default.aspx) that I load a user control into (using placeholders in the...
0
by: Kevin Frey | last post by:
We have a data-centric application where all of the "layout" for each data centric page is to be codified (ie. it is expressed in C# code rather than being expressed declaratively). This...
0
by: joey.powell | last post by:
We have a website with hundreds of users. The users have each registered with their email addresses and other information, and these are stored in a Microsoft SQL Server database. The user accounts...
4
by: | last post by:
Hi all, I want to create a method that does the following: 1) Programmatically instantiate a new XmlDataSource control 2) For each file in a named directory, make a "FileSystemItem" element 3)...
4
by: nothix9 | last post by:
Hello guys, Ive been working this for 2 days, I am required to position a string using drawstring but the problem is its dynamic and changes depending on the database or source. A quick fix I thought...
7
by: lmeyers | last post by:
I implemented a URL rewriter which worked reasonably well, but now I am creating other sites on the same server (single IP). Because IIS will not accept subdomain wildcards (*.subdomain.com), it...
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...
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...
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
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
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
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,...

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.