This Microsoft® Visual C++® console sample demonstrates how to backup or restore the pubs sample database by using the Virtual Device Interface feature of Microsoft® SQL Server™.
C:\Program Files\Microsoft SQL Server\80\Tools\Devtools\Samples\Backup\Simple
Open the simple.dsw in Microsoft® Visual C++® 6.0 and compile this program. Make sure to do the following before compiling.
To run the sample, open a Command Prompt window, and then change the current directory to where simple.exe is located. Run the program by entering "simple [b|r]".
The program requires one command line parameter. This parameter can be one of the following:
This sample is designed for use with Mixed Mode security. Comments explaining how to implement Windows Authentication mode are provided in the code.