Question : TSQL update date time

Hi, Expert

In TSQL, is it possible only update the year part of the "Date" data without modify month and date part?

for example, 2/3/1890 only update 1890 to 1990.

Answer : TSQL update date time

where @myYear is int parameter that shows the new year

for more info on dateadd (TSQL)

http://msdn.microsoft.com/en-us/library/ms186819.aspx
Random Solutions  
 
programming4us programming4us