We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3aaddcc + 1d65e5b commit 58d491eCopy full SHA for 58d491e
1 file changed
sp_DatabaseRestore.sql
@@ -1,3 +1,13 @@
1
+IF OBJECT_ID('dbo.CommandExecute') IS NULL
2
+BEGIN
3
+ PRINT 'sp_DatabaseRestore is about to install, but you have not yet installed the Ola Hallengren maintenance scripts.'
4
+ PRINT 'sp_DatabaseRestore will still install, but to use that stored proc, you will need to install this:'
5
+ PRINT 'https://ola.hallengren.com'
6
+ PRINT 'You will see a bunch of warnings below because the Ola scripts are not installed yet, and that is okay:'
7
+END
8
+GO
9
+
10
11
IF OBJECT_ID('dbo.sp_DatabaseRestore') IS NULL
12
EXEC ('CREATE PROCEDURE dbo.sp_DatabaseRestore AS RETURN 0;');
13
GO
0 commit comments