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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -