sql server 2008 - Create Function Date -


I am trying to create a function with 2 parameters, the first absolute date is an int

 < Code> What do I do Function: Function ('2014-04-20', 5) Results '2013-11-20' function ('2013-11-10', 2) Results in '2013-09-10' Monthly date of construction amount (@d_date DATE, @___interminent INT) date @in_new date as the return date; SET @in_new = DATEAD (MM, - @ in_mn_adjust, @in_date); Back to @in_new; End;   

Choose 'dbo.monthdifference' ('2014-04-22', 3) Run away.

What I'm doing wrong

Announcement @rarchcharger (10) Announced @Ruchik Vertra (10) set @tr = '2012/10/23' set @ root = dateAD (month, -2, convert (date, @tr, 102)) < / pre>

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -