I want to insert some record to my database but i will get this error
"The log file for database 'Report_Day' is full. Back up the transaction log for the database to free up some log space."
so i tried to backup the transaction log fileby this command
1- EXEC sp_addumpdevice 'disk', 'RepDay_log1', 'C:\Program Files\Microsoft SQL Server\MSSQL$NetSDK\LOG\RepDay_log1.bak'
2- BACKUP LOG Report_Day TO RepDay_log1
The i get this error
"The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE."
what should i do to backup the transaction log?
Thank you
"The log file for database 'Report_Day' is full. Back up the transaction log for the database to free up some log space."
so i tried to backup the transaction log fileby this command
1- EXEC sp_addumpdevice 'disk', 'RepDay_log1', 'C:\Program Files\Microsoft SQL Server\MSSQL$NetSDK\LOG\RepDay_log1.bak'
2- BACKUP LOG Report_Day TO RepDay_log1
The i get this error
"The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE."
what should i do to backup the transaction log?
Thank you