Iam getting the following exception
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot perform a backup or restore operation within a transaction.
Query:
String backupQuery="BACKUP DATABASE jiffy TO disk=?";
Iam using hibernate for database transactions:
tx =session.beginTransaction();
SQLQuery selectQuery=session.createSQLQuery(backupQuery);
selectQuery.setString(0, path);
selectQuery.executeUpdate();
tx.commit();