Skip to content

Commit f0de5ce

Browse files
committed
update
1 parent c68b297 commit f0de5ce

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

samples/databases/wide-world-importers/wwi-database-scripts/3-wwi-recreate.sql

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,25 @@ LOG ON
3131
SIZE = 100MB,
3232
MAXSIZE = UNLIMITED,
3333
FILEGROWTH = 64MB
34-
)
35-
COLLATE Latin1_General_100_CI_AS;
34+
);
3635
GO
3736

38-
ALTER DATABASE WideWorldImporters SET RECOVERY SIMPLE;
37+
ALTER AUTHORIZATION ON DATABASE::WideWorldImporters to sa;
3938
GO
4039

41-
ALTER DATABASE WideWorldImporters SET AUTO_UPDATE_STATISTICS_ASYNC ON;
40+
USE WideWorldImporters;
4241
GO
4342

44-
ALTER AUTHORIZATION ON DATABASE::WideWorldImporters to sa;
43+
ALTER DATABASE CURRENT COLLATE Latin1_General_100_CI_AS;
44+
GO
45+
46+
ALTER DATABASE CURRENT SET RECOVERY SIMPLE;
47+
GO
48+
49+
ALTER DATABASE CURRENT SET AUTO_UPDATE_STATISTICS_ASYNC ON;
4550
GO
4651

47-
ALTER DATABASE WideWorldImporters
52+
ALTER DATABASE CURRENT
4853
SET QUERY_STORE
4954
(
5055
OPERATION_MODE = READ_WRITE,
@@ -58,9 +63,6 @@ SET QUERY_STORE
5863
);
5964
GO
6065

61-
USE WideWorldImporters;
62-
GO
63-
6466
CREATE SCHEMA [Application] AUTHORIZATION dbo;
6567
GO
6668
EXEC sys.sp_addextendedproperty @name = N'Description', @value = N'Tables common across the application. Used for categorization and lookup lists, system parameters and people (users and contacts)', @level0type = N'SCHEMA', @level0name = 'Application';

0 commit comments

Comments
 (0)