There are quiet a few examples like this. I posted one ages ago;
I only code in VB.NET for a hobby (sad, I know...) so there might be better ways doing doing this than I have used. My source codepopulates a UI Windows form with the available sql server databases, then tables, then columns, andcan allows you to get a sample of rows or submit an sql query and return the result in a datagrid.
Fairly basic stuffonceyou get used to it, and thisshould help you get started.
Follow on Twitter
Subscribe to Feed