Back up a SQL Database Using SQL/DMO

Category:
Database
Type:
Snippets
Difficulty:
Intermediate
Author:
Sanjaya Warakagoda

Version Compatibility: Visual Basic 6

More information:
See comments within code for usage/explanation. Requires a reference to SQL/DMO object library.

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

Declarations:

Code: