Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


sqlsafe restore


sqlsafe restore

Author
Message
SQL_Surfer
SQL_Surfer
Old Hand
Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)Old Hand (398 reputation)

Group: General Forum Members
Points: 398 Visits: 1076
I need to restore lastest full backup and latest differential backup file using xp_ss_restore

I am using this command. But I'm getting follwoing error. Can you please help?


xp_ss_restore did not complete. An error(0,1) was encountered. Please check the parameters and their values. [v4.6.0.0]

SQLsafeCmd output:
------------------
SQLsafe Enterprise-scale Backup and Recovery CLI Version 4.6.312.4023
Copyright (c) 2004-2007 BBS Technologies, Inc., All Rights Reserved.
<http://www.idera.com/>

1 is an invalid parameter for Restore.

--- End of SQLsafeCmd output ---
Msg 50000, Level 16, State 1, Line 14
One or more operations failed to complete.


DECLARE @ResultCode INT

EXEC @ResultCode = [master].[dbo].[xp_ss_restore]
@database = 'NewDB',
@filename = '\\Server\Z$\afull_201403091027.safe',
            @withmove = '"NewDB_Data"   "F:\SQLData\NewDB_New_Data.MDF"',
            @withmove = '"NewDB_Log"   "G:\SQLData\NewDB_New_log.LDF"',
             @disconnectusers = '1',
@server = 'MyServer'
            @Recoverymode='StandBy'


            IF(@ResultCode != 0)
RAISERROR('One or more operations failed to complete.', 16, 1);
richardbriansmith-814479
richardbriansmith-814479
Forum Newbie
Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: General Forum Members
Points: 5 Visits: 210
It looks like you have a comma missing after @server ~.

Details of my similar project here ...

https://richardbriansmith.wordpress.com/2015/08/14/2110/
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search