We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91c872d commit a18e689Copy full SHA for a18e689
SQL/Samples/LdwSample/SampleDB.sql
@@ -1,3 +1,6 @@
1
+if db_name() = 'master'
2
+ throw 50001, 'This script cannot be executed in master database. Create new database and run the script there.', 1;
3
+
4
------------------------------------------------------------------------------------------
5
-- Part 1 - Cleanup script
6
-- This part removes objects from sample database
@@ -219,4 +222,4 @@ FROM
219
222
)
220
223
WITH (
221
224
content varchar(8000)
- ) AS books;
225
+ ) AS books;
0 commit comments