Reply to Re: server version

Your name:

Reply:


Posted by John Bell on 12/28/06 12:20

Hi

You can test the version you are using and make the code run conditional on
that setting such as

IF CAST(LEFT(CAST(SERVERPROPERTY('productversion') AS varchar(30)),1) AS
smallint) < 9 GOTO EndofScript
PRINT CAST(LEFT(CAST(SERVERPROPERTY('productversion') AS varchar(30)),1) AS
smallint)
EndofScript:

John

"John Bell" <jbellnewsposts@hotmail.com> wrote in message
news:4592d4b6$0$31237$da0feed9@news.zen.co.uk...
> Hi
>
> The SERVERPROPERTY function will give you similar information see
> http://sqlserver2000.databases.aspfaq.com/how-do-i-know-which-version-of-sql-server-i-m-running.html
>
> John
>
> "fireball" <fireball@onet.kropka.eu> wrote in message
> news:emu0hh$opo$1@atlantis.news.tpi.pl...
>>I need to test, wheather my scripts run under proper instance version (ie.
>>if it is 2005).
>> I only know @@VERSION, but taht's not it. Any suggestions?
>>
>>
>>
>
>

[Back to original 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

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