You are here: Re: How to build a procedure that returns different numbers of columns as a result based on a parameter « MsSQL Server « IT news, forums, messages
Re: How to build a procedure that returns different numbers of columns as a result based on a parameter

Posted by serge on 11/24/06 04:26

> To your question: if you need to return different sets of columns under
> different circumstances, I'd use different stored procedures for each
> result set.

This was one of the options we considered before going with the method
we want to use.

> The use of dynamic SQL as in your example has some downsides
> and some risks that you should avoid if at all possible.
>
> See http://www.sommarskog.se/dynamic_sql.html

We will continue to consult this great article as we continue
working on this project.

Thanks Hugo.

 

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

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