Skip to content

Commit a18e689

Browse files
Update SampleDB.sql
1 parent 91c872d commit a18e689

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SQL/Samples/LdwSample/SampleDB.sql

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
14
------------------------------------------------------------------------------------------
25
-- Part 1 - Cleanup script
36
-- This part removes objects from sample database
@@ -219,4 +222,4 @@ FROM
219222
)
220223
WITH (
221224
content varchar(8000)
222-
) AS books;
225+
) AS books;

0 commit comments

Comments
 (0)