Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CheckDB Snapshots in other location #181
The use case is that in a Data drive with few space available, as CHECKDB operations create a snapshot of the databases in the drive and checks that instead, the problem is that there if there is not enough space available in the drive for the snapshot to generate operation will fail.
Could it be possible to add to generate DB snapshot manually in other location and perform the operation over it and then delete it as a feature to scripts? Maybe a param @SnapshotLocation to specify it needs to create it in other location and then execute the command.
This is a good idea. The risk is just that if the job is getting aborted for some reason, then the snapshot will not be deleted.
The best would be if Microsoft could add an option to the CHECKDB command, where the snapshots should be created. Please vote for this idea on UserVoice.
Then I would also add support for it in my scripts.