Add a Database to a SQL Server

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

Version Compatibility: Visual Basic 6

More information:
This function allows you to add a new database to a SQL Server. You can also optionally add 1 or more tables to the new database. Refer to the comments for usage and limitations of the function.

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

Declarations:

Code: