Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog


Channel Description:

Product Support and Discussion

older | 1 | .... | 27 | 28 | (Page 29) | 30 | 31 | .... | 36 | newer

    0 0

    What is the statement generated?

    I think you are missing some single quotes.

    Try

    SET @sql = '-SQL "RESTORE DATABASE ' + @databasename + ' FROM DISK = ''''\\kprod-nas03\sqlbackups\' + @sitename + ''''' WITH PASSWORD=''''fjfelejl'''' SOURCE = '''' + @DatabaseName + '''', MOVE DATAFILES TO ''''D:\SQLData'''' , MOVE LOGFILES TO ''''D:\SQLLogs'''' ,
    MAILTO = ''''pam.ozer@kareo.com'''', RECOVERY,
    CHECKDB = ''ALL_ERRORMSGS, DATA_PURITY, EXTENDED_LOGICAL_CHECKS'''

    0 0

    Hi,
    Can RedGate Backup restore a SQL 2012 Backup db onto SQL 2008?
    We have a need of set up transactional replication via backup and restore for SQL 2012 database to SQL 2008 and currently MS backup does not support restore db onto lower version of SQL.
    Thanks

    0 0

    Now I get this error
    Syntax error: '\\kprod-nas03\sqlbackups\FULL_DB009_superbill_2039_prod_20140321_112322_encr.sqb''' after ''


    -SQL "RESTORE DATABASE superbill_2039_prod FROM DISK = ''\\kprod-nas03\sqlbackups\FULL_DB009_superbill_2039_prod_20140321_112322_encr.sqb'' WITH PASSWORD=''fjfelejl'' SOURCE = '' + @DatabaseName + '', MOVE DATAFILES TO ''D:\SQLData'' , MOVE LOGFILES TO ''D:\SQLLogs'' ,
    MAILTO = ''pam.ozer@kareo.com'', RECOVERY,
    CHECKDB = 'ALL_ERRORMSGS, DATA_PURITY, EXTENDED_LOGICAL_CHECKS'

    Thanks for helping me with this. I'm at my wits end with this ConfusedConfused

    0 0

    Try

    SET @sql = '-SQL "RESTORE DATABASE ' + @databasename + ' FROM DISK = ''''\\kprod-nas03\sqlbackups\' + @sitename + ''''' WITH PASSWORD=''''fjfelejl'''' SOURCE = ''''' + @DatabaseName + ''''', MOVE DATAFILES TO ''''D:\SQLData'''' , MOVE LOGFILES TO ''''D:\SQLLogs'''' ,
    MAILTO = ''''pam.ozer@kareo.com'''', RECOVERY,
    CHECKDB = ''ALL_ERRORMSGS, DATA_PURITY, EXTENDED_LOGICAL_CHECKS'''

    0 0

    Quote:
    Can RedGate Backup restore a SQL 2012 Backup db onto SQL 2008?

    No it can't.

    0 0

    I'm looking to do something like this:

    Daily backups held for 14 days
    BiMonthly backups held for 6 months
    Yearly backups held for 4 years

    DECLARE @exitcode int
    DECLARE @sqlerrorcode int
    Declare @backupCMD varchar(4000) = ''
    ,@biMonthly varchar(500) = ''
    ,@yearly varchar(500) = ''

    Select @biMonthly = case when datepart(day, getdate()) in (1,15) then ', COPYTO = ''Link NAS'', ERASEFILES = 190, FILEOPTIONS = 5' else '' end
    ,@yearly = case when DATEPART(dayofyear, getdate()) = 1 then ', COPYTO = ''LINK NAS'', ERASEFILES = 1825, FILEOPTIONS = 5' else '' end

    set @backupCMD = '-SQL "BACKUP DATABASE [MyDB] TO DISK = ''L:\Backup\<AUTO>.sqb'' WITH ERASEFILES_ATSTART = 7' +
    ', FILEOPTIONS = 4, CHECKSUM, DISKRETRYINTERVAL = 30, DISKRETRYCOUNT = 10, COMPRESSION = 4' +
    ', COPYTO = ''\\SERVER\SQLBACKUP\'', ERASEFILES = 14, FILEOPTIONS = 5' +
    @biMonthly +
    @yearly +
    ', INIT, THREADCOUNT = 23"'

    Select @backupCMD

    EXECUTE master..sqlbackup @backupCMD, @exitcode OUT, @sqlerrorcode OUT
    IF (@exitcode >= 500) OR (@sqlerrorcode <> 0)
    BEGIN
    RAISERROR ('SQL Backup failed with exit code: %d SQL error code: %d', 16, 1, @exitcode, @sqlerrorcode)
    END

    Is this supported? Should I approach this by a differnt means?

    0 0

    In an environment using SQL Backup Pro 7.6.0.26 to perform backups over 30+ instances and 180+ DBs. We have been using the product for almost 2 years now (various versions) and have not had any issues we were not able to resolve.

    This one has me stumped though.

    Nothing has changed in the setup of any of the jobs however in the last two weeks, ALL of the jobs have not been honouring the ERASFILES command. A sample of the one of the jobs is as below - all of them use the same command - ERASEFILES = xx


    EXECUTE master..sqlbackup '-SQL "BACKUP LOGS [xxxxxx] TO DISK = ''xxxxx\<AUTO>.sqb''
    WITH ERASEFILES = 5,
    MAILTO_ONERROR = ''xxxxxxxxx.com'',
    PASSWORD = ''<ENCRYPTEDPASSWORD></ENCRYPTEDPASSWORD>'',
    CHECKSUM, DISKRETRYINTERVAL = 30, DISKRETRYCOUNT = 10, COMPRESSION = 4, KEYSIZE = 256, THREADCOUNT = 4"'

    The issue is that despite having this flag set and despite the jobs completing successfully (ie. the correct new back file being created), not all of the files that ought to meet the criteria for deletion are being removed.

    A sample (with confidential details redacted) for one of the jobs shown in the example above :


    SQL Backup log file 7.6.0.29

    ----------------------- PROCESSES COMPLETED SUCCESSFULLY --------------------

    14/04/2014 7:30:00 AM: Backing up xxxxx (transaction log) on xxxxx instance to:
    14/04/2014 7:30:00 AM: xxxxxxx.sqb

    14/04/2014 7:30:00 AM: BACKUP LOG [xxxx] TO VIRTUAL_DEVICE = 'SQLBACKUP_2D00135A-E6AE-4EFD-9389-25EA23D8C06F', VIRTUAL_DEVICE = 'SQLBACKUP_2D00135A-E6AE-4EFD-9389-25EA23D8C06F01', VIRTUAL_DEVICE = 'SQLBACKUP_2D00135A-E6AE-4EFD-9389-25EA23D8C06F02',
    VIRTUAL_DEVICE = 'SQLBACKUP_2D00135A-E6AE-4EFD-9389-25EA23D8C06F03' WITH BUFFERCOUNT = 24, BLOCKSIZE = 65536, MAXTRANSFERSIZE = 1048576, NAME = N'Database (xxxxx), 14/04/2014 7:30:00 AM', DESCRIPTION = N'Backup on 14/04/2014 7:30:00 AM Server:
    xxxxxx Database: xxxxxx', FORMAT, CHECKSUM

    14/04/2014 7:30:00 AM: Backup data size : 2.500 MB
    14/04/2014 7:30:00 AM: Compressed data size: 20.000 KB
    14/04/2014 7:30:00 AM: Compression rate : 99.22%

    14/04/2014 7:30:00 AM: Processed 0 pages for database 'xxxxxx', file 'xxxxxx' on file 1.
    14/04/2014 7:30:00 AM: BACKUP LOG successfully processed 0 pages in 0.193 seconds (0.000 MB/sec).
    --------------------------------------------------------------------------------
    14/04/2014 7:30:04 AM: Deleting old backup file: xxxxxx.sqb
    14/04/2014 7:30:04 AM: Deleting old backup file: xxxxxx.sqb

    14/04/2014 7:35:16 AM: SQL Backup process ended.

    14/04/2014 7:35:16 AM: Deleted msdb entries older than 16/10/2013 7:35:16 AM
    14/04/2014 7:35:16 AM: Deleted local history entries older than 16/10/2013 7:35:16 AM


    So you will note that is has removed some old files. However, if I look in the folder that holds these log backups, I can see that it has not removed all of the files that ought to have been removed. The circled files are a sample of those that should have been deleted.




    So there is not a permissions issues - the account running the job is both able to create and delete files, no errors are appearing in log file for the jobs, and yet still, files are not being deleted.

    This is causing us headaches for capacity management as we are being constantly pinged with various LUNs going over their thresholds and in some cases (where the backup files are very large) running out of space. With this many SQL instances and databases this is not something that any one of us on my team have bandwidth to be able to look at each day manually.


    Can someone please help to explain why this is happening and let me know if any extra information that might help to identify what is going on here ?

    0 0

    As part of our DR procedures we want to start to use the Redgate option option "Split backup into multiple files". This is to reduce the size of a single backup file to make things easier when we manually copy the backups to a 3rd location. As part of out testing I now need restore this backup onto a server which does not have redgate. I've used the sqb2mtf utility to convert the seperate files from .sqb to .bak, but when I try to restore the backup using the following command:

    RESTORE DATABASE [Live_Reports] FROM DISK = N'F:\MultiFile\FULL_Live_Reports_20140414_081818_01.bak', DISK = N'F:\MultiFile\FULL_Live_Reports_20140414_081818_02.bak' WITH FILE = 1, MOVE N'Live_Reports' TO N'G:\MSSQL\SQL.DATA\Live_Reports.mdf', MOVE N'Live_Reports_log' TO N'E:\MSSQL.1\LOGS\Live_Reports.ldf', NOUNLOAD, STATS = 10
    GO

    I get the error:

    Msg 3183, Level 16, State 1, Line 1
    RESTORE detected an error on page (1:100919) in database "Live_Reports" as read from the backup set.
    Msg 3013, Level 16, State 1, Line 1
    RESTORE DATABASE is terminating abnormally.

    The server I have tried this on does have Redgate installed and I can sucessfully restore the .sqb files using the Redgate GUI. I have tried to running sqb2mtf and restoring twice and get the same error both times but on different pages.

    Can anybody confirm if they have sucessfully converted a multi file backup from .sqb to .bak and been able to restore it.

    0 0

    SQL Backup can apply different retention settings to either:

    - backup files found on local and network shares (ERASEFILES and ERASEFILES_REMOTE) OR
    - the backup and copyto locations (ERASEFILES_PRIMARY and ERASEFILES_SECONDARY)

    What you could do is set up the backup task to use the ERASEFILES option to delete old files in the primary backup folder. You can't use ERASEFILES_REMOTE nor ERASEFILES_SECONDARY as it will apply to both the 6-month and 4-year backup folders. Instead, use the standalone file deletion procedure to clean up files in those 2 folders. You would need to set up a daily SQL Agent job that runs something like this:

    EXEC master..sqlbackup '-sql "ERASE FULL_BACKUPS FOR [mydb] FROM DISK = [folder that holds 6 months worth of backups] KEEP = 190"'
    EXEC master..sqlbackup '-sql "ERASE FULL_BACKUPS FOR [mydb] FROM DISK = [folder that holds 4 years worth of backups] KEEP = 1825"'

    Another suggestion is if you back up a lot of databases, I would suggest you place the backup files in their own database-specific folder using the DATABASE tag i.e. instead of '... TO DISK = ''L:\Backup\<AUTO>.sqb'' ', use '... TO DISK = ''L:\Backup\<DATABASE>\<AUTO>.sqb''. This avoids SQL Backup having to scan all the files in a folder that holds backups from many different databases during the deletion process, thus saving disk and processing cycles and speeding up things considerably.

    0 0

    Two possibilities I have come across when ERASEFILES doesn't work as expected:

    - the backup files password has changed, causing SQL Backup not to be able to read the header in the backup file

    - de-duplication is used, causing the file attributes to change and not meet SQL Backup's expected file attributes

    0 0

    It didn't occur to me to break those out into separate commands.

    Thanks!

    0 0

    Thanks Pete! The former will explain the situation for us - the encryption key was changed on these files a couple of weeks ago.

    Perhaps this is something that ought to be noted in the UI when changing/setting an encryption key ie. if you set or change the encryption key, you will manually need to delete any back up files that used the old key because of this issue of not being able to read the headers.

    And probably something in the log file that also points to the issue and thorws a warning ie. "Warning xxxx file was not able to be deleted as encryption key does match the key currently stored on the job"

    0 0

    Instead of first using the sqb2mtf utility, you might be better restoring all the .sqb files in a single script. To specify multiple files please refer to the section titled "FROM DISK argument" in this document. Don't forget that the script will need to invoke the SQL Backup extended stored procedure (as shown in the Examples is this document).

    https://documentation.red-gate.com/display/SBU7/The+RESTORE+command

    0 0

    Version: SQL Backup Pro 7.2.1.4
    Backing up a non-clustered Microsoft SQL Server 2012

    I can run manual backups fine but none of the scheduled backups on jobs run. The time comes to run and the job immediately says outcome Failed. Right-clicking on the job and pressing START yields the same result.

    The manual backup job is identical to the scheduled one with the exception that it is scheduled.

    Where do I start?

    Thanks in advance for your help.

    0 0

    Check the account assigned to run the job, and that it has rights to run the sqlbackup extended stored procedure.

    0 0

    That was it. I checked in SSMS and I changed the job owner and BAM! Now it's working great.

    Thanks!

    0 0

    As technology developed, broken machinery increasingly wide scope , not only for use in mineral processing industry , but also can be widely used in the cement industry , and play a significant role. Crusher equipment industry ushered in a new market , the production of the crusher manufacturers also will continue to increase. Chang Lei mechanical professional R & D , production and sales of various specifications crusher, crushing equipment , the enterprise has been a constant effort to solve the customer's problem , think customers are thinking, and strive to make the crusher industry leader . Pet Bottle Crushing Machine is commonly used in mining gravel crushing equipment.

    Henan Daswell Machinery is a professional manufacturer of mining machine for almost 30 years in China. We are dedicated to supplying our customers with best service and products, our major products include:mobile jaw crusher,If you are interested in our products, please contact us freely: sales@daswell.com

    Pet Bottle Crushing Machine has the following features: 1 , low running costs , smooth , low noise, dust pollution. 2 , high chrome hammer mini impact crusher , impact resistance, abrasion resistance , impact force ; 3 , heat-treated forged eccentric shaft . 4 , compact structure, the machine rigidity , the rotor has a large moment of inertia . 5, long life: super alloy composite hammer , you can turn around and use , the average life expectancy has increased four -fold.Pet Bottle Crushing Machine

    As China crusher technology to continuously improve R & D , Pet Bottle Crushing Machineand other high- technology equipment are favor by the Eastern European countries , my plant produced the Sand firearms sales rose steadily throughout the country diesel jaw crusher, the majority of new and old customers alike. Henan Daswell Machinery Equipment Co., Ltd. is specialized in industrial milling , construction sand , mine crushing , power generation equipment research , development and production of high-tech enterprises.

    0 0

    Quarry , mining need to use stone crushing machinery, such as cone crusher , small jaw crusher , mini impact crusher , such as broken machinery . Lime Stone Crusher is widely used in a variety of ore crushing , railway , highway, energy, cement , chemical, construction and other industries. The crusher is widely used in mining, smelting, building material, highway , railway, water conservancy and other departments.

    Henan Daswell Machinery is a professional manufacturer of mining machine for almost 30 years in China. We are dedicated to supplying our customers with best service and products, our major products include:small crusher,If you are interested in our products, please contact us freely: sales@daswell.com

    Lime Stone Crusher has the following features:1 , a small amount of wear parts with extra hard wear-resistant material made ??of small size , light weight portable water well drilling rigs, easy to replace the broken machine parts . 2, the back plate and the board hammer gap can be easily adjusted . 3 , the rotor back can withstand extremely high rotor moment of inertia and the impact hammer crushing force . 4 , wear and tear of wearing parts than a small mini hammer crusher , metal utilization. 5 , This machine is designed to optimize low-speed , multi- mini impact crusher crushing chamber , the back-breaking than the average speed reduced by 20 % -25% , with low power consumption for high production capacity.Lime Stone Crusher

    According to the Henan Daswell technical personnel, Lime Stone Crusher can be used for a break , can also be used for secondary crushing , but also realize a molding. Henan Daswell is specialized in producing crushed stone production line equipment, sand making crusher, mobile crushing equipment , stone production lines, professional production of river gravel crusher, gravel crusher, rock mini stone crusher, limemini stone crusher, stone production line equipment manufacturers .

    0 0

    In recent years , as China 's rapid economic development, China 's status in the international community is also rising . Environmental protection crusher equipment has become a worldwide is recognized as a new series of highly efficient crushing equipment, Henan Daswell produced Jaw Crushers fully equipped , the daily output of up to 30-400 tons, loved by the users . New production of this equipment will not only progress crushing efficiency and production capacity , but also to expand the range of applications , from limestone to basalt , from stone production to a variety of ore crushing , efficient completion of a variety of pieces, fine , super fine crushing homework.

    Henan Daswell Machinery is a professional manufacturer of mining machine for almost 30 years in China. We are dedicated to supplying our customers with best service and products, our major products include:small jaw crusher,If you are interested in our products, please contact us freely: sales@daswell.com

    Jaw Crushers has the following features:1, with shaping function , the product was cubic shape , packing density . 2, the effective control of the particle size , particle shape small rock crusher, compact structure , machine rigidity. 3, the selection of the most high-end production of materials combined with the world's most advanced manufacturing processes to ensure quality and efficient equipment . 4 , can not be broken in the foreign material into the crushing chamber so that the sudden increase in load , the toggle plate through their own fault protect other parts from damage.Jaw Crushers

    My company has always followed the procedure for each charge , for each product, for every user is responsible for the quality, dedication to customer service . It is understood that the effect of Jaw Crushers is the best Jaw Crushers, in the concentrator at home is very popular. My company's products are exported to Indonesia, Australia , Southeast Asia , Eastern Europe , South America , Middle East and Africa and other countries and regions , with reliable and stable quality abroad.

    0 0

    Promotion of economic development , China's infrastructure construction industry has also been a new development opportunity. Since crusher eccentric shaft does not move while passing crushing force , so that the structure can withstand greater force to crush the crushing and fine crushing very adaptable . Jaw Crusher By adopting the design principles of intergranular special laminated crushing chamber and matching speed, replace the traditional single particle crushing principle , to achieve the selectivity of the material crushing, crushing particle size uniformity .

    Henan Daswell Machinery is a professional manufacturer of mining machine for almost 30 years in China. We are dedicated to supplying our customers with best service and products, our major products include:mobile stone crusher,If you are interested in our products, please contact us freely: sales@daswell.com

    Jaw Crusher has the following features:1, crusher applies to both the soft hardness of the material but also for very large materials. 2, the crushing chamber depth and no dead zone, increased feed capacity and output ; 3 , mini impact crusher feed opening large , high crushing chamber to meet the material hardness, block degree , the product powder less ; 4 large crushing ratio : clinker can be one or two roller mills, limestone two , three broken into a crushing . 5 , broken-function , high efficiency , mechanical abrasion , low energy consumption , comprehensive and high efficiency.Jaw crusher

    Jaw Crusher has a fine , flexible adjustment of product size . Uniform particle size , large crushing ratio . The machine runs smoothly , green energy, exported to foreign countries more than 20 countries, the majority of users.

older | 1 | .... | 27 | 28 | (Page 29) | 30 | 31 | .... | 36 | newer