|
-
May 26th, 2010, 02:48 PM
#1
Thread Starter
Frenzied Member
Any controls to show data source selection?
I want to include the ability for the end user to create connections to different databases using the same (or similar) dialogs that are available at design time, such as the Connection String builder, Selection Data Source (ODBC) screen, etc. Is this something built into .NET or only available via third party/custom controls?
Any help would be appreciated.
-
May 26th, 2010, 07:01 PM
#2
Re: Any controls to show data source selection?
It would be fairly simply to create your own dialogue for setting connections properties. If you have SQL Server installed then you could probably use SMO to display the inbuilt dialogues. As for the Data Link Properties dialogue, that is part of Windows. You can open that by creating a file with a ".udl" extension and opening it by calling Process.Start. When the dialogue is closed, the file will contain the connection string.
-
May 26th, 2010, 09:11 PM
#3
Thread Starter
Frenzied Member
Re: Any controls to show data source selection?
 Originally Posted by jmcilhinney
It would be fairly simply to create your own dialogue for setting connections properties. If you have SQL Server installed then you could probably use SMO to display the inbuilt dialogues. As for the Data Link Properties dialogue, that is part of Windows. You can open that by creating a file with a ".udl" extension and opening it by calling Process.Start. When the dialogue is closed, the file will contain the connection string.
Interesting about the udl file. I'll give that a shot, thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|