Enumerating SQL Servers from .NET 2.0

Posted by: Julia Lerman Blog - Dont Be Iffy..., on 29 Jan 2006 | View original | NEW 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: 1089 | Hits: 131

Similar Posts

  • New article: How to detect and avoid memory and resources leaks in .NET applications more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Create or Manage XPDL 1.0 & 2.1 packages using Aspose.Workflow more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • Announcing the WebsiteSpark Program more
  • RadScheduler for Silverlight learning series, part 3: Add, Edit, and Delete Appointments more
  • Create charts & add ad hoc capabilities to .NET Web & WinForm apps more
  • Understanding Reverse Proxy Servers and the Mailman more
  • Migrating to Postgresql with my friend NHibernate more
  • Adding Persistence to the .NETOOP Edit in Place control. 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