New answers tagged

0

I tested with "Window Certificate Store - Current User" and "Windows Certificate Store - Local machine (localhost) and concluded to. Existence of any object related to Always Encrypted features (master key, column master key and the certificates used to create the master key) is limited to the database only. So simple backup and restore process works fine. ...


0

Red Gate tools include both schema and data compare utilities that can be run against a "source" and "target" database. These tools provide detail comparisons and can generate scripts to make A = B or B = A. Any Server Specific items (e.g. SIDs in sys.Database_Principals) will be different.


0

Once the backup is restored to target DB, it will be reflecting the state of source DB at the time of backup. From my understanding, restore is almost a drop and recreate of DB in target server. Normally, if Prod DB is restored to a non-prod - logins/Users accounts may be different, or if any alerts are configured to make any data changes thru triggers/SP's ...


0

Just to provide an alternative to exporting to a file via BCP or SSIS, you can export this data to a new database (as suggested by Denis Rubashkin in the comments) and then create a backup of that database. The benefits that exporting data to a secondary database provide over exporting the table to a .csv or some other external flat file are as follows: ...


0

Power-shell script will be a very helpful and easy way to do this. Here is the sample script that will help you to backup availability group database at different backup target, depends on which node is primary. I'm using dba-tools power-shell commands in this script. You can install all the modules by simply running Install-Module dbatools in Powershell ...


2

I'd recommend using the BCP utility. From that documentation: Copying table rows into a data file (with a trusted connection) Basic This example creates a data file named StockItemTransactions_character.bcp and copies the table data into it using character format. At a command prompt, enter the following command: bcp WideWorldImporters.Warehouse....


1

The only way to check if backup is reliable is to restore it. DBCC Checkdb is not needed after successful restore if you just want to be sure that backup is reliable.


2

Here is the summary of what I understood between both the backup tools. The definition for mysqldump given in manual page The mysqldump client utility performs logical backups, producing a set of SQL statements that can be executed to reproduce the original database object definitions and table data. It dumps one or more MySQL databases for backup or ...


0

If you check the documentation for Ola Hallengren's solution, you'll see under "Which permissions are needed for the SQL Server Maintenance Solution to work?" the following: DatabaseBackup: sysadmin DatabaseIntegrityCheck: EXECUTE on dbo.DatabaseIntegrityCheck, VIEW DEFINITION on dbo.CommandExecute, VIEW DEFINITION on dbo.CommandLog, VIEW SERVER ...


1

If you used the optional feature table partitioning. You could easily drop the previous years partitions without affecting the current year. If it were me I would partition by month and sub partition by hour. You might want to keep more than the current year online. Hence partition by month would allow you to keep a rolling 11 months if you wanted and drop ...


1

Backups over the network are risky as network connectivity is not redundant. While you can setup your server to have multiple Network Interface Cards (NICs), if one were to fail while sending the stream of data establishing a connection from the secondary NIC would still cause a disruption to the original stream, which in this case, will cause a backup ...


0

Create a symlink on your host so that Mariabackup thinks /var/lib/mysql exists. Then delete the symlink once you're done. $ sudo ln -s /mnt/data /var/lib/mysql


0

650*1024/15/3600 = 12.3 MB/s. Sounds like you have a 100 Mbit network connection for backup. In that case, using a compressed backupset instead of image copy will significantly reduce the time it takes to backup the database. – Balazs Papp


3

Specify the tag for the database backup as well: BACKUP AS COMPRESSED BACKUPSET DATABASE TAG MyTAG PLUS ARCHIVELOG TAG MyTAG; Ok, I tested this, this does not add the specified tag to the controlfile backup. The below creates an additional controlfile backup and adds the specified tag to that as well: BACKUP AS COMPRESSED BACKUPSET DATABASE TAG MyTAG ...


0

You should don't have any issues I have done this many times before with no big issues. One thing to consider is that if you have binaries in E drive, you may have some issues, otherwise should be ok to go. From what I remember in the past you should check OS privileges, once I had issues with the SQL Server account access to the drives. Another tip: ...


2

Try to increase the timeout period by adding -TO <time period in minutes> to your command: -S server name -D ALL -T DB -R D:\SQL_BACKUP\SQL_EXPRESSMAINT_LOGS\FULL_BACKUP_LOGS -RU DAYS -RV 5 -B D:\SQL_BACKUP\SQL_FULL_BACKUP -BU DAYS -BV 5 -TO 25 ExpressMaint issues tab


2

If you run pg_dump with the --clean option then the generated SQL dump would contain drop statements for all dumped objects (note that when using the custom format and pg_restore you don't need to decide on this when dumping, but when restoring). However if the target database contains tables (or other objects) that were not contained in the source, those ...


0

The exact syntax used varies depending on what version of MySQL you are using, but the basic version of mysqldump (without any other options) you are using will run: CREATE DATABASE /*!32312 IF NOT EXISTS*/ `test` /; DROP TABLE IF EXISTS `test1`; CREATE TABLE `test1` (. . . You can check this if you are concerned, before running the second statement, ...


Top 50 recent answers are included