createdb.sql

来自「电子商务入门套件是一个电子商务网络店面」· SQL 代码 · 共 67 行

SQL
67
字号
IF NOT EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'~~##CMRCStarterKitDB##~~')
BEGIN
	USE master
	
	CREATE DATABASE [~~##CMRCStarterKitDB##~~] 
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'autoclose', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'bulkcopy', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'trunc. log', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'torn page detection', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'read only', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'dbo use', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'single', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'autoshrink', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'ANSI null default', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'recursive triggers', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'ANSI nulls', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'concat null yields null', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'cursor close on commit', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'default to local cursor', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'quoted identifier', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'ANSI warnings', N'false'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'auto create statistics', N'true'
	
	
	exec sp_dboption N'~~##CMRCStarterKitDB##~~', N'auto update statistics', N'true'

END

GO




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?