SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Datetime Formats

By Doug Deneau,

Typically this could be compiled in the Master database so that it is always available from any user database that you may be working in.  You can also add this as a Query Shortcut configured in the Options for Management Studio. (Located at Tools...Options, Environment...Keyboard...Query Shortcuts)  Then this tool is a <CNTL><KEY> away from your work.

Total article views: 2429 | Views in the last 30 days: 2
 
Tags
convert    
datename    
datepart    
datetime    
style    
 
Contribute