Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / September 2006

Tip: Looking for answers? Try searching our database.

Connection string

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stig-Arne Basberg - 13 Sep 2006 08:08 GMT
I would like to make it easy for users of my app to change database. Not
everyone knows all the necessary settings in a connection string, so is
there any way for me launch the database "Connection properties" window
(same as when generating a connection string in VS2005) from my application?

Regards Stig
Miha Markic [MVP C#] - 13 Sep 2006 08:42 GMT
Hi Stig,

Well, you still can but you'll have to parse/adjust connection string (just
google around and you'll find plenty of examples such as
http://groups.google.com/group/microsoft.public.dotnet.framework.adonet/browse_f
rm/thread/fa85d5af8ae2bac9/2c09b11eb6b489eb?lnk=st&q=show+data+link+window+group
%3A*adonet*&rnum=2&hl=sl#2c09b11eb6b489eb
).
However, I would recommend using your code - with DbConnectionStringBuilder
derived classes and DbDataSourceEnumerator derived classes it shouldn't be
hard.

Signature

Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

>I would like to make it easy for users of my app to change database. Not
>everyone knows all the necessary settings in a connection string, so is
[quoted text clipped - 3 lines]
>
> Regards Stig
Stig-Arne Basberg - 13 Sep 2006 09:29 GMT
Thanks, I'll try that.

Stig

> Hi Stig,
>
[quoted text clipped - 12 lines]
>>
>> Regards Stig

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.