select getdate()select dbo.CalcTimeBetweenTwoDates('2004-11-16 15:30', '2007-11-21 07:31')select getdate()
Msg 4121, Level 16, State 1, Line 1Cannot find either column "dbo" or the user-defined function or aggregate "dbo.CalcTimeBetweenTwoDates", or the name is ambiguous.