Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UFD in Stored Procedure

Status
Not open for further replies.

emcevoy

Programmer
Feb 4, 2001
144
0
0
CA
hi

I am wondering if any of you have any samples of using a UFD in a stored procedure to pass the function a datetime.

I am using crystal reports which cannot see UFD's but can pass a stored proc a variable.

If anyone has any samples I would be extremely greatfull!

thanks

Eileen McEvoy
Authorized Crystal Engineer
Crystal Reports Consultant and Trainer
emcevoy@crystalconsulting.ca
 
Do you mean udf?
Do you mean getdate()?

declare @d datetime
select @d = getdate
select id, dbo.myfunc(id, @d)
from tbl



======================================
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top