on 01-26-2015 9:13 PM
Hi,
I'm not able to delete oldest backup with sp_deletesmobj stored procedure... I'm sure that I'm wrong...
If I run with...
sp_deletesmobj "syb_tsm", "PRD"
OK, all object are deleted... but I would like to delete only older then 50 days
declare @PIPPO DATETIME
set @PIPPO = DATEADD(day, -50, GETDATE())
exec sp_deletesmobj "syb_tsm", "PRD", "*", "c:\obj.txt", "*", "*", @PIPPO
The system display e message like:
Could not execute statement.
The name 'Dec 7 2014 10:14PM' is not a valid identifier.
Sybase error code=203
Severity Level=16, State=3, Transaction State=0
Line 128
Have you got any idea?
Per the manual, syntax is:
sp_deletesmob “syb_tsm“, “server_name"{, “database_name”, “object_type”, “dump_type", “until_time", “bs_name"}
You are passing @PIPPO as the 7th parameter, it should be the 6th.
-bret
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.