Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Database Tools - a newbie(ish) question
An odd question, but hopefully someone out there will be able to help.

I have a VB.NET application that access JET databases that is working fine.
My users now want to be able to change the location of the databases
(currently hard coded). In VB6 with ADO that was simple (I used to create th
e
connection objects, recordsets etc. manually). However, being clever (or so 
I
thought), I used the tools in Visual Studio to create my datasets, and as a
result am having significant dificulty in changing the connection.

I have found the Windows Forms Designer generated code that sets the
ConnectString Property in the InitializeComponent method of the form, I have
not yet tried retrieving the connection string from the registry at that
point, but that will require my user to restart the application if they
change the DB source (not a problem, but not what has happened previously). 
I
have tried changing the OLEDBDataConnection Object ConnectionString property
at the time the user changes it, but this does not seem to work. Do I need t
o
refresh the connection somehow?

All help appreciated, as usual...

Bernie Porter

Report this thread to moderator Post Follow-up to this message
Old Post
BernieP
10-19-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Visual Studio archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:56 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.