mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Fix for sp_dboption in northwind-pubs if sqlversion>=12
This commit is contained in:
Binary file not shown.
@@ -53,7 +53,12 @@ if db_name() <> 'pubs'
|
||||
|
||||
GO
|
||||
|
||||
execute sp_dboption 'pubs' ,'trunc. log on chkpt.' ,'true'
|
||||
if CAST(SERVERPROPERTY('ProductMajorVersion') AS INT)<12
|
||||
BEGIN
|
||||
exec sp_dboption 'pubs','trunc. log on chkpt.','true'
|
||||
exec sp_dboption 'pubs','select into/bulkcopy','true'
|
||||
END
|
||||
ELSE ALTER DATABASE [pubs] SET RECOVERY SIMPLE WITH NO_WAIT
|
||||
GO
|
||||
|
||||
execute sp_addtype id ,'varchar(11)' ,'NOT NULL'
|
||||
|
||||
Reference in New Issue
Block a user