You are here: Re: Things I didn't know until today « MsSQL Server « IT news, forums, messages
Re: Things I didn't know until today

Posted by MC on 01/24/07 20:17

YOu can also use UPDATE TOP :)

MC

"amaxen" <Amaxen1@gmail.com> wrote in message
news:1169669614.239808.78900@v33g2000cwv.googlegroups.com...
> You can use a Select top @variable in sql server 2005:
>
> Thus:
>
>
> --'Throttle' the result set:
> Select Top (@MaxBatchSize)
> KeyID
> , LId
> , ArrivalDt
> , CaptureDt
> , Lat
> , Long
> From GPSData
> Order By CaptureDt Desc
>
> Makes messing with Set Rowcount *so* redundant :-)
>

 

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

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