govthamb
Starting Member
27 Posts |
Posted - 2009-08-13 : 03:31:20
|
Hi,I have a script of SQL Server 2000 DB which creates a database. I need to create the same DB in 2005 version. Please suggest me how do I convert the existing 2000 script to 2005 to create database. I do not know what are the specific changes I need to check before I execute this script in 2005 apart from Collation change.I have scripts of all the tables also which needs to be created in 2005. Please suggest me how do I proceed on this.Below is the 2000 create DB script-----------------------------------IF EXISTS (SELECT name FROM master.dbo.sysdatabases WHERE name = N'testApps') DROP DATABASE [testApps]GOCREATE DATABASE [testApps] ON (NAME = N'testApps_Data', FILENAME = N'f:\active\testApps_Data.MDF' , SIZE = 4249, MAXSIZE = 5501, FILEGROWTH = 100) LOG ON (NAME = N'testApps_Log', FILENAME = N'g:\active\testApps_Log.LDF' , SIZE = 3800, MAXSIZE = 5501, FILEGROWTH = 100) COLLATE SQL_Latin1_General_CP850_BINGOexec sp_dboption N'testApps', N'autoclose', N'false'GOexec sp_dboption N'testApps', N'bulkcopy', N'false'GOexec sp_dboption N'testApps', N'trunc. log', N'false'GOexec sp_dboption N'testApps', N'torn page detection', N'true'GOexec sp_dboption N'testApps', N'read only', N'false'GOexec sp_dboption N'testApps', N'dbo use', N'false'GOexec sp_dboption N'testApps', N'single', N'false'GOexec sp_dboption N'testApps', N'autoshrink', N'false'GOexec sp_dboption N'testApps', N'ANSI null default', N'false'GOexec sp_dboption N'testApps', N'recursive triggers', N'false'GOexec sp_dboption N'testApps', N'ANSI nulls', N'false'GOexec sp_dboption N'testApps', N'concat null yields null', N'false'GOexec sp_dboption N'testApps', N'cursor close on commit', N'false'GOexec sp_dboption N'testApps', N'default to local cursor', N'false'GOexec sp_dboption N'testApps', N'quoted identifier', N'false'GOexec sp_dboption N'testApps', N'ANSI warnings', N'false'GOexec sp_dboption N'testApps', N'auto create statistics', N'true'GOexec sp_dboption N'testApps', N'auto update statistics', N'true'GOif( (@@microsoftversion / power(2, 24) = 8) and (@@microsoftversion & 0xffff >= 724) ) exec sp_dboption N'testApps', N'db chaining', N'false'GOuse [testApps]GO |
|