Spaces:
Sleeping
Sleeping
File size: 608 Bytes
f53fbd9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | :setvar DemoDatabase "CustomerAIDemo"
IF DB_ID(N'$(DemoDatabase)') IS NULL
BEGIN
EXEC(N'CREATE DATABASE [$(DemoDatabase)]');
END
GO
USE [$(DemoDatabase)];
GO
-- SQL Server 2025 vector features are preview features.
ALTER DATABASE SCOPED CONFIGURATION
SET PREVIEW_FEATURES = ON;
GO
-- SQL Server 2025 compatibility level. Comment this line if your preview build
-- does not expose compatibility level 170 yet.
BEGIN TRY
ALTER DATABASE [$(DemoDatabase)] SET COMPATIBILITY_LEVEL = 170;
END TRY
BEGIN CATCH
PRINT 'Could not set compatibility level 170 on this build. Continuing.';
END CATCH;
GO
|