Determine whether a SQL Server exists ..

Posted by: Sahil Malik - blah.winsmarts.com, on 17 Sep 2006 | View original | Bookmarked: 0 time(s)

.. don't try connecting to it boy!! "Does this SQL Server exist or not"? That is a good question. I noticed this question come up in the ADO.NET public newsgroup recently. Most of the answers are "DUhh .. try connecting to it". Of course, That is the straightforward approach to this question is - lets try and connect to it, if it connects - it must exist eh? I feel that approach is incorrect for two reasons: a) Your SQL Server may not accept your credentials - or the pool may be full. And yet the SQL Server did exist, but didn't feel like talking with you.b) You will be stuck due to connection timeout issues. Thus creating an unresponsive application. So you need to answer the real question - "Does this SQL Server...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1436 | Hits: 78

Similar Posts

  • Migrating to Postgresql with my friend NHibernate more
  • Adding users to a TFS project when youre not on the domain more
  • An alternative to Crystal more
  • OleDb Parameters to access FoxPro Data from .NET more
  • LINQ to Entities, Entity SQL, Parameterized Store Queries and SQL Injection more
  • Building Interactive User Interfaces with Microsoft ASP.NET AJAX: Retrieving Server-Side Data Using Web Services more
  • Script to Inventory Print Servers more
  • date validations more
  • Client Cache Headers more
  • Scale Cheaply - Sharding 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