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.
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.
Re: Any controls to show data source selection?
Quote:
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!