Project Description:
Modify Existing DLL in C++ to add additional functionality
Language:
C++ (Managed)
Background Information:
The attached DLL connects to the local default instance of SQL Server and Backs up the database using
the Virtual Device Interface. This allows me to use this DLL in C#, and backup to Managed Streams,
compressed or encrypted. I need some changes to alter the constructor to accept username/password
and for the Backup event to be multithreaded.
## Deliverables
Example:
using VdiDotNet;
VdiEngine BackupDevice = new VdiEngine();
[login to view URL]("BACKUP DATABASE " + DatabaseName + " TO VIRTUAL_DEVICE='{0}' WITH STATS = 1", CompressedBackupStream);
Changes Required:
1. Make this DLL accept parameters so that it can connect to remote servers
- username
- password
- servername
- integrated
I would like the constructor overloaded as follows:
- For a local server, trusted link:
VdiEngine();
- For a remote server, trusted link:
VdiEngine(string sServerName);
- For a remote server, specify login and password:
VdiEngine(string sServerName, string sUserName, string sPassword);
2. Add Support for multiple devices. device count is set with [[login to view URL] = 1;]
I need this to be able to return a variable number of streams to C# using multiple threads for speed.
I also need an example in C# of how to use these streams with multiple threads. In C# I would like to
be able to call a function like this:
BackupDatabase("northwind", "C:\[login to view URL]", 3)
The result of whcih would back up the northwind database over 3 files called:
[login to view URL]
[login to view URL]
[login to view URL]