Enumerating SQL Servers from .NET 2.0

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 29 Jan 2006 | View original | Bookmarked: 0 time(s)

There's a cool new .net 2.0 feature I didn't know about until I needed to do this a few days ago. If your application has FullTrust, you can use the System.Data.Sql.SqlDataSourceEnumerator to get alist of available SQL servers (2000 and 2005 only). The query returns a DataTable which you can just attach to a combobox or drop down list. Dim instance As SqlDataSourceEnumerator = SqlDataSourceEnumerator.Instance Dim dt As DataTable = instance.GetDataSources() ...

Advertisement
Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1542 | Hits: 142

Similar Posts

  • RadScheduler for Silverlight learning series, part 3: Add, Edit, and Delete Appointments more
  • An Extensive Examination of LINQ: Using the Query Syntax more
  • PDC 2009 Sessions Posted more
  • Migrated from Community Server to DasBlog more
  • Migrating to Postgresql with my friend NHibernate more
  • Free Source Code - mojoPortal 2.3.0.1 Released more
  • Bulletproof Database Synchronization with dbForge Schema Compare for SQL Server 1.50 more
  • Caching Key Generation Considerations more
  • WebChart Drilldown Demo: A pathway to greater things more
  • WebChart Drilldown Demo: A pathway to greater things more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD