Determine if a Database is Present in a SQL Server (ADO.NET)
Category:C#, VB.NET, ASP.NET
Author:Intelligent Solutions Inc.
Version Compatibility: Visual Basic.NET, ASP.NET
Requires an open sql client connection with privileges to read the master database. See comments.
Instructions: Copy the declarations and code below and paste directly into your VB project.