Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
12

Start SQL Server as an application, not a service, in minimal config mode, and only recovering master, from a command prompt: [path to this instance]\BINN\sqlservr.exe -c -f -T3608 (Add -s InstanceName if this is a named instance.) Now, in a different command prompt, connect using SQLCMD: sqlcmd -S InstanceName -E And issue a correction (triple-check ...


11

No, you can't. You have overwritten the database so your best course of action is to restore from the latest backup. If that is 4 months old, that's it, you lost 4 months of data. You should take backups more often and also before any critical operation (like this one) that has the chance of destroying data if it goes wrong. Addendum: Before you go and ...


10

Does the SIMPLE Recovery Model perform the same transaction logging as FULL Recovery Model? Technically, no. The simple recovery model minimally logs certain operations under certain conditions, just like the bulk-logged recovery model. keep record of each insert/update/delete transaction? Yes, your data modifications will be logged (with a few DML ...


10

AGs are based on Windows Clustering. The WSFC procedures for quorum loss apply. WSFC Disaster Recovery through Forced Quorum Force a WSFC Cluster to Start Without a Quorum Once the WSFC is running, you can then force AG, if needed. Perform a Forced Manual Failover of an Availability Group: After forcing quorum on the WSFC cluster (forced quorum), you ...


9

Since TDE relies on a certificate stored in master (which is used to encrypt the database encryption key), then this would work only work if you could restore the master database to another server in such a way that the certificate could be decrypted. This is the TDE encryption hierarchy: Service master key (protected by Windows; tied to the service ...


9

Most data warehouses are in Simple recovery model, and most true HA solutions require Full recovery (AGs, Mirroring). The minimum for Log Shipping is Bulk Logged, but that's not really true HA since there's no automatic failover. If that's the case for yours (because really, a data warehouse in Full recovery is banana-town-crazy), your best bet would be a ...


8

Could you please let me know the best option to proceed and least complexity to maintain Logshipping is your best option for Disaster Recovery since you are on standard edition. Make sure you test the disaster recovery - simulate it so that you are confident when a real disaster strikes. Note: In my company, we use LogShipping as a primary DR solution ...


8

SQL agent jobs are stored in the system msdb database, so backing up that database will do what you need. In a disaster, you can restore the entire msdb database, or, if necessary, recover individual jobs from a restored copy of msdb: Serverfault: Recovering a specific job definition from an MSDB backup? If you want them in a more immediately usable ...


7

There is no point in HA if anyhow DR technologies are allowed in simple recovery. Transaction log is a must for point-in-time recovery. The transaction log is what a DR technology uses to replay transactions that are done on Logshipped/mirrored databases, and since a log backup is not possible in simple recovery, you cannot configure HA/DR in simple recovery ...


7

It's because these methods rely on the transaction log, which itself is only reliable in the full recovery model. Please read the following page in its entirety, as there are several hints there about the differences between simple and full recovery, and why full is so important for DR: Why Does the Transaction Log Keep Growing or Run Out of Space? If you ...


6

What to do when your AlwaysOn cluster loses quorum? I have been into this situation especially with Multi-subnet clustering spanning different countries (NY-LD-HK). How to avoid Quorum Loss in a multi-subnet cluster ? Change the cluster default setting to a more relaxed monitoring state especially Cluster Heartbeat settings using CrossSubnetDelay, or ...


6

What is the advantage of Always On Failover Clustering vs Always On Availability Groups? The main advantages given 2012->2017 for an FCI is: No instance level metadata or objects required to be synchronized Databases can be in any recovery model Only one copy of the databases is required (1x total disk space required) Generally easier to troubleshoot as it ...


6

Another way is to just export to file using dbatools Get-DbaAgentJob -SqlInstance workstation\sql2016 | Export-DbaScript you can even script out your entire instance or subset including agent jobs, operators, logins, etc for disaster recovery purpose. Edit: Above will have the flexibility to filter out jobs that you do not need. Backup / restore of msdb ...


6

After several hours of research and examining the current situation I think I managed to solve the issue. (Many thanks to fellow user ypercube for the inspiration and for Erwin Brandstetter who in parallel came to the same solution.) So there were several layers of the problem. 1.) UPGRADE Upgrading with pg_upgrade 9.3.2 --> 10.5 should be made in two ...


5

Is there any way to fix database, without restore? No, you will have to do a restore. Please see this reference on how to do file and filegroup restores.


5

When you restored the primary the log shipping has broken. The only way to resume it is to re-initiate it, with a new full backup. End of discussion. We do schema and data changes for new Release deployment on to D2 database. And that is your real problem. Do all changes as code changes and deploy by running deployment scripts. When you want to migrate ...


5

1.If you want to restore a encrypted backup to another server as usual you encounter the following error Cannot find server certificate with thumbprint …... 2.Find the cert name : in this example vestacert SELECT * FROM sys.certificates 3.backup the cert from source server (Source encryptedserver) : BACKUP CERTIFICATE vestacert TO FILE = 'c:\...


5

Suppose I run the following query on a database with a recovery model of full: INSERT INTO dbo.MY_FAVORITE_MSFT_EMPLOYEES WITH (TABLOCK) SELECT 'SEAN GALLARDY' UNION ALL SELECT 'JOE SACK'; Under the full recovery model, SQL Server will write some representation of the data that was inserted to the transaction log. This allows redo threads on the secondary ...


5

One approach is to create a database containing only synonyms referencing the objects in the snapshot you need for reporting. Clients can then connect to the synonym database and run queries just as if they were using the snapshot directly. Whenever a new snapshot is created, run a script to update the synonyms with the new snapshot database name. Below is ...


4

Please don't. You don't want replication. It's a data distribution technology: it's not suitable for HA. Just to name one of the many shortcomings of using replication for HA, you won't have automatic failover (which seems to be a requirement) and you'll need to code it yourself. If you need HA, pick one among clustering (you can have a two-node cluster ...


4

During Hurricane Sandy (natural disaster) and recently when moving our data center (managed failover), I was in your situation. I have implemented Logshipping and was able to efficiently failover during the above scenarios. The technique that I used was reverse logshipping (swapping roles between primary and secondary) - which allows you to swap the log ...


4

You can restore the BACKUP with a different name in the same instance and follow steps below. 1) restore the database ( right click on databases > Restore ( it can be in the same instance )) with a differente name. 2) In this new database ( The restored one ) , open tables , search the table you've deleted, right button, Script table as > CREATE TO. This ...


4

UPDATE In order to start the instance without interfering with an existing running instance (e.g ORCL), before starting anything: sqlplus / as sysdba create pfile='/tmp/initORCL2.ora' from spfile='?/dbs/spfileORCL.ora'; exit Edit /tmp/initORCL2.ora, and modify (add if doesn't exist) the instance_name: *.instance_name='ORCL2' Prevent listener ...


4

In the simplest case, when you restore a database, you tell RMAN to recover it to the most recent point in time by applying all the redo (archived and online) that is available. That will re-apply any statements that were executed during normal database operations including things like dropping tables and deleting data. If you want to restore a database to ...


4

This is login and permission related error. What kind of account are you using to connect when you build the AOA features? If you are using a domain account you can fix this error it in two ways. Use the same domain account on all of the participating replicas. If you can't (allowed) change the account you could use the second option Add the service ...


4

If you have: 2 Datacenters 1 Server in Each DC Using SQL Server AlwaysOn Availability Groups Then the following happens: The Primary Datacenter Goes Down, Completely How do you continue business continuity? Assuming that the Availability Replicas are both set to Synchronous... Quorum will have most likely been lost - you'll need to force quorum on the ...


3

Short answer, yes. Longer answer, you'd need to remove database mirroring without bringing the database online. Then it's just a database in NORECOVERY so you can then restore transaction logs to it. Then bring it online and use it as normal.


3

There are a great many optoins here, the best ones to choose will depend greatly on your application and environments. At very least you need to specify what the bandwidth is between the sites, the sizes of the databases involved, and the amount of write activity they see each hour/week/day. As you are using SQL2008r2, look into compressed backups - this ...


3

You can use Deltacopy http://www.aboutmyip.com/AboutMyXApp/DeltaCopy.jsp it's a rsync solution for Windows, it can be used to sync files or folder between servers.


Only top voted, non community-wiki answers of a minimum length are eligible