Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 9th, 2004, 11:51 AM
Authorized User
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB.NET External Connection File

Hi. It has recently been decided by my company that to facilitate changes in the future, all database connection information such as sql server name, database name, login, password, etc. should be placed in an external text file, rather than residing within the VB.NET code. They want to avoid recompiling programs when changes occur.

The problem is that I have no idea how to do this. Any help, at this point, is greatly appreciated!

 
Old November 9th, 2004, 02:57 PM
Authorized User
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind, I have solved my own problem. For anyone else that may run into a similar issue, I used the App.Config Project add in to save all of my application settings.

 
Old November 9th, 2004, 02:58 PM
Authorized User
 
Join Date: Aug 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

As another aside, this is the website that provided me with the information I used: http://www.vbcity.com/forums/topic.asp?tid=76123






Similar Threads
Thread Thread Starter Forum Replies Last Post
find External IP Address in VB.NET remya1000 General .NET 2 March 4th, 2014 12:31 AM
Database connection to VB.NET am_kuthus Visual Studio 2008 2 June 13th, 2008 08:10 AM
call external program from vb.net praswani Pro VB.NET 2002/2003 2 October 18th, 2007 07:19 AM
Database Connection Using VB.NET prasanta2expert ADO.NET 2 January 20th, 2007 07:41 AM
Running an external program (.exe) in VB.net webgen VS.NET 2002/2003 1 July 18th, 2005 12:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.