Hello!
I have database, that has 2 ldf. I try to do backup log via a program that uses ODBC Driver (SQL Server Native Client 10.0 ODBC ). But the backup file is not created. And application doesn't catch exception. Application connects to MS SQL Server using information of user, that has all roles to do backup. Database has FULL RECOVERY model. When I performed a command that is used in the application, MS SQL Server does backup log and backup log is created. My application uses the this connection string:
oss << "DRIVER={" << MSSQLDriver.c_str() << "};"
<< "Server="<<address.c_str()<<";"
<< "Network=DBMSSOCN;"
<< "Initial Catalog=my_database_1;"
<< authTypeString.c_str();
if (port > 0) {
oss << "Port = " << port << ";"
<< "Address="<<address.c_str()<<"," <<port<<";";
, where address is IP adress
Application use this command:
BACKUP LOG [my_database_1] TO
DISK = N'C:\mssql_backup_via_idr\my_database_1_log_backup_1374.bak'
This command is performed successfully via MSSQL Managment Studio, but unsuccessfully via application that uses a driver SQL Server Native Client 10.0 ODBC.
I don't understand why backup log isn't created. Does problem depend on the driver?
Thanks