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 2000 Forums
 SQL Server Development (2000)
 User Define Function

Author  Topic 

swarn
Starting Member

12 Posts

Posted - 2003-01-21 : 06:41:59
Hi folks

I need to know that is this possible to call User Define Functions from ASP just like Store Procedures???

I have tried to find this information but so far no luck. please any body let me know..

thanks
swarn



nr
SQLTeam MVY

12543 Posts

Posted - 2003-01-21 : 06:48:10
udf's return a value so from asp you can

select dbo.myudf()
or for tables
select * from dbo.myudf()


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

swarn
Starting Member

12 Posts

Posted - 2003-01-21 : 06:57:10
thanks nr for quick reply.. just another question regard to same subject that so i can use following statement in ASP code as any normal sql statement to display results???? any where i can access to sample examples or scripts???

thanks again
swarn


quote:

udf's return a value so from asp you can

select dbo.myudf()
or for tables
select * from dbo.myudf()


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.



Go to Top of Page

nr
SQLTeam MVY

12543 Posts

Posted - 2003-01-21 : 07:06:28
Yep. Try it and see.
But if you want to do this consider making the udf's into stored procedures or putting SP wrappers around them.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -