Quantcast
Viewing all articles
Browse latest Browse all 3587

Re: getdate() vs. current_date() in a user-defined function in ASE 15.0.3

It is a very good question. Hope someone who has access to the code will tell us the difference.

I confirm the UDF works perfectly:

 

create function dbo.test

returns datetime

as

begin

declare @res datetime

select @res=convert(char(12), current_date()) + convert(char(8), current_time())

return @res

end

go

select dbo.test()

go

-------------------

Aug 28 2013  3:02PM


Viewing all articles
Browse latest Browse all 3587

Trending Articles