SELECT CONVERT(VARCHAR(10),CONVERT(DATETIME, '20120101', 121),101)
Tip #2 - Coverting HHMMSS into HH:MM:SS
SELECT STUFF(STUFF('211532', 3, 0, ':'), 6, 0, ':')
Tip #3 - xp_cmdshell does not work with temp tables / table variables. Use Global Temp Tables ## (Stackoverflow :) link)
Tip #4 - Enable xp_cmdshell in SQL Server - SO Link
Tip #5 - Testing Dynamic SQL Code with EXEC command - SO Link
Happy TSQL Revising!!!
No comments:
Post a Comment