473,799 Members | 3,270 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

programmaticall y create system dsn in vb.net

Is there any way to programmaticall y 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******@pierce associates.com
Nov 21 '05 #1
3 4064
On Fri, 17 Jun 2005 11:03:24 -0400, "Chris Thunell" <ct******@pierc eassociates.com > wrote:

¤ Is there any way to programmaticall y 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************ ***********@sws pectrum.com> wrote in message
news:3l******** *************** *********@4ax.c om...
On Fri, 17 Jun 2005 11:03:24 -0400, "Chris Thunell"
<ct******@pierc eassociates.com > wrote:

¤ Is there any way to programmaticall y 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******@pierc eassociates.com > wrote in
news:eg******** ******@tk2msftn gp13.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********@rog ers.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
447
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 user. I know that .Net doesn't provide such functionalities therefore I went on MSDN Library and also on Google to look for any solution with no result... I first guessed that using WMI it could be doable (System.Management
11
19614
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 install Access 97 : When executing the install, I got successively two error messages (sorry, it's probable not exactly the same text than in the english version of access as I've just translated what my french access says) :
6
1979
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
4860
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 template). Now, the template also contains a placeholder for buttons used by each user control. The current solution needs each user control to create its buttons, like;
0
1569
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 codification subsequently produces the required web-controls for a page based on whether the page is eg. in view or update mode, examination of the user's security permissions for certain fields, etc. In VS2003 our "Page Master" (to use the VS2005 term)...
0
1543
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 in the website are not in Active Directory, as the website uses Forms Authentication. We need to be able to query the MS SQL server database for all email addresses and then programmatically (C#) create a distribution list entry in our...
4
5669
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) On each FileSystemItem Element, make two child nodes, one with the file name, one with the file size. ie. <filesystemitems> <filesystemitem>
4
2595
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 was to position it at the end of the report but its required at the middle of other entries. Can you give me tips and different approach how to programmatically adjust the height of the rectangle depending on the string it would need to write? ...
7
4974
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 resolves the subdomain traffic back to the default site (e.g. the site with empty host header). From there it is possible to rewrite and pass the traffic back to correct web app and use the referring agent to get original url, but this gets messy in...
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
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,...
1
10238
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
10030
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7570
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6809
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
5467
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
4145
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
2
3761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.