SELECT DATENAME(month, '10/31/2005') AS 'Month Name',
DATENAME(month, '10/31/2005') + ' ' + DATENAME(year, '10/31/2005') AS 'MonthYear Name'
“I sense many useless updates in you... Useless updates lead to fragmentation... Fragmentation leads to downtime...Downtime leads to suffering..Fragmentation is the path to the darkside.. DBCC INDEXDEFRAG and DBCC DBREINDEX are the force...May the force be with you" --
I've never had the need to do that, so I don't have a script handy. But it has come up several times, so do a search on this forum and you should find a solution.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.