I enjoy reading from Brent Ozar.
I liked his review of Sql Server 2008 in his blog where he compared it with Lady Gaga's premier album The Fame and its sophomore.
Go ahead and have a read and enjoy
So I am a developer. Or should I say a web developer. I write code for a living. I love coding. I also love talking about it. Indeed we do find ourselves having to learn new technologies is a short spell of time. On this blog, I will try keep abreast with technological challenges. Join me in learning and sharing with the community our journey in coding.
Thursday, October 07, 2010
Using TRUNCATE_ONLY in SQL Server 2008
After upgrading to SQL Server 2008 from 2005, I got an error with one of my scripts. I am using Sql 2008 SqlExpress 10GB.
This is my T-SQL
And I get this error:
Msg 155, Level 15, State 1, Line 1
'TRUNCATE_ONLY' is not a recognized BACKUP option.
So I asked myself if there is an option similar to what 'TRUNCATE_ONLY' was doing in 2005?
I posted a query at Ask Sql Server Central
I got very nice responses, including a link to this article by Brent Ozar
Check out the responses above, hope it helps you if you are upgrading to Sql Server 2008.
You can also read further on this article on how to configure Sql Server 2008
BACKUP LOG "pathtomylogfile" WITH TRUNCATE_ONLY;
And I get this error:
Msg 155, Level 15, State 1, Line 1
'TRUNCATE_ONLY' is not a recognized BACKUP option.
So I asked myself if there is an option similar to what 'TRUNCATE_ONLY' was doing in 2005?
I posted a query at Ask Sql Server Central
I got very nice responses, including a link to this article by Brent Ozar
Check out the responses above, hope it helps you if you are upgrading to Sql Server 2008.
You can also read further on this article on how to configure Sql Server 2008
Subscribe to:
Posts (Atom)