Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 How to pass the parameters to sql view?

Author  Topic 

Swati Jain
Posting Yak Master

139 Posts

Posted - 2009-01-23 : 09:15:39

Hello all,

Necessarily I have to use the Sql views.
but How to pass the parameters to sql view?

swati

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-23 : 09:22:44
you cant. for passing parameters it should be either procedure or UDF
Go to Top of Page

Swati Jain
Posting Yak Master

139 Posts

Posted - 2009-01-23 : 12:09:47
quote:
Originally posted by visakh16

you cant. for passing parameters it should be either procedure or UDF



what is udf? can in it be created in sql2005?
can it be treated like views?
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2009-01-23 : 12:11:19
yup. udfs are user defined functions. you can create a table valued udf which will provide you table as resultset. refer below for more details

http://www.sqlteam.com/article/user-defined-functions
Go to Top of Page
   

- Advertisement -