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

Posted by Erland Sommarskog on 07/19/06 08:53

(billmiami2@netscape.net) writes:
> I selected the SQL Server 2000 option, but I'm still getting script
> that looks like it was made for SQL Server 2005. Are you able to make
> this work?

Yes. I did not actually try to run the script on SQL 2000, so there may
still be glitches. But I did get things like:

IF NOT EXISTS (SELECT * FROM dbo.sysobjects WHERE id =
OBJECT_ID(N'[dbo].[language_rule]') AND OBJECTPROPERTY(id, N'IsRule') = 1)
EXEC dbo.sp_executesql N'
CREATE RULE [dbo].[language_rule] AS @x IN (''E'', ''S'') OR @x IS NULL
'
GO

which it would not say on SQL 2005.

--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

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

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