Groups | Blog | Home
all groups > sql server clients > february 2006 >

sql server clients : Dynamic Query in View


Bob Beauchemin
2/10/2006 8:19:27 AM
Views cannot have parameters, but table-valued user-defined functions can.
They don't necessarily have the same performance as views, but this sounds
like what you want. You can do subqueries on TVF too, unlike resultsets that
are returned from stored procedures.

Bob Beauchemin
http://www.SQLskills.com/blogs/bobb

[quoted text, click to view]

Rogers
2/10/2006 10:18:14 AM
Can I use variable name in the view? because the result set is depend on
different database not the same database, so I am wondering if I can use
this as a dynanice query in the view then my problem would be solved.

Thanks in advance

AddThis Social Bookmark Button