September 1, 2011 at 11:15 am
Need t-sql script to backup a sql 2005 sp2 database with compression.
This is not working on SQL 2005:
BACKUP DATABASE myDatabase TO DISK = 'C:\BackupFolder\myDatabase.BAK' WITH COMPRESSION
September 1, 2011 at 11:18 am
Compression is a 2008 feature. Didn't exist in SQL 2005. You can use third-party solutions for that, or back up to a compressed directory/drive. Or upgrade SQL Server, of course.
- Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
Property of The Thread
"Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon
September 1, 2011 at 11:19 am
Express12 (9/1/2011)
Need t-sql script to backup a sql 2005 sp2 database with compression.This is not working on SQL 2005:
BACKUP DATABASE myDatabase TO DISK = 'C:\BackupFolder\myDatabase.BAK' WITH COMPRESSION
compression was introduced in SQL 2008 i believe;
the backup command for SQL 2005 doesn't mention compression at all:
http://msdn.microsoft.com/en-us/library/ms186865(v=SQL.90).aspx
Lowell
September 1, 2011 at 11:20 am
thx ALL.. my bad !
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply