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.
| Author |
Topic |
|
ZarrinPour
Yak Posting Veteran
66 Posts |
Posted - 2008-08-29 : 04:10:54
|
| Hi allCould anyone tell me how i can retrieve the list of User Defianed Functions of a database?Kind Regards,Nothing is quite impossible! |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-08-29 : 04:14:03
|
[code]select *from INFORMATION_SCHEMA.ROUTINESwhere ROUTINE_TYPE = 'FUNCTION'[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-29 : 04:14:18
|
| select * from INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_TYPE='FUNCTION' |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2008-08-29 : 04:15:16
|
it is CS  KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2008-08-29 : 04:16:12
|
use small characters [ sniped ] E 12°55'05.25"N 56°04'39.16" |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-29 : 04:16:16
|
quote: Originally posted by khtan
it is CS  KH[spoiler]Time is always against us[/spoiler]
|
 |
|
|
sunil
Constraint Violating Yak Guru
282 Posts |
Posted - 2008-08-29 : 04:17:11
|
| select * from sys.objects where type in ('FN','TF') |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-08-29 : 04:20:57
|
quote: Originally posted by sunil select * from sys.objects where type in ('FN','TF')
and use sysobjects table if sql 2000better to use INFORMATION_SCHEMA views as it will be same in both 2000 & 2005 |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-08-29 : 04:55:57
|
quote: Originally posted by sunil select * from sys.objects where type in ('FN','TF')
You should also include 'IF' which is for SQL_INLINE_TABLE_VALUED_FUNCTIONMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|