Remove a Database From an SQL Server

Category:
Database
Type:
Snippets
Difficulty:
Intermediate
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
This example use the SQLDMO Object Library to drop a database from an SQL Server.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: