You are here: Re: SQL Server 2005 Script Generation « MsSQL Server « IT news, forums, messages
Re: SQL Server 2005 Script Generation

Posted by billmiami2 on 07/19/06 09:03

I just ran the script generator on a single table using the SQL 2000
option and here's what it produced:

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[IF_Parameters]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[IF_Parameters](
[Param_Name] [varchar](50) NOT NULL,
[Param_Value] [real] NULL,
CONSTRAINT [PK_IF_Parameters] PRIMARY KEY CLUSTERED
(
[Param_Name] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END

Here's the script using the SQL 2005 option

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id =
OBJECT_ID(N'[dbo].[IF_Parameters]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[IF_Parameters](
[Param_Name] [varchar](50) NOT NULL,
[Param_Value] [real] NULL,
CONSTRAINT [PK_IF_Parameters] PRIMARY KEY CLUSTERED
(
[Param_Name] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END

It looks the same to me.

Bill

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация