Connection string

S

Stig-Arne Basberg

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
 
S

Stig-Arne Basberg

Thanks, I'll try that.

Stig

Miha Markic said:
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/micr...+group:*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.

--
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/

Stig-Arne Basberg said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top