You are here: Re: Re-display result set without re-running query in Query Analyzer? « MsSQL Server « IT news, forums, messages
Re: Re-display result set without re-running query in Query Analyzer?

Posted by Erland Sommarskog on 04/09/06 22:33

just.an.imbecile (johntarr@gmail.com) writes:
> I appreciate the advice on @@rowset and I will be sure to set it to a
> variable. The problem is that quite often there are multiple rows
> returned, so I am forced to either re-run the query (which I don't want
> to do because it may bog down the DB). Or I could select into a temp
> table, but again I am concerned about a performance hit.

If your main concern is to keep down the load, then just skip extras
with the 'n/a' stuff, and just run the SELECT right away.


--
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

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