Determine if a Database is Present in a SQL Server (ADO.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic.NET, ASP.NET

More information:
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.

Declarations:

Code: