Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 0.16 KB  |  hits: 15  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Converting smalldatetime in T-SQL
  2. SELECT Top 1 CONVERT(smalldatetime,[ShipDate],1) FROM [Order]
  3.        
  4. SELECT Top 1 CONVERT(varchar(8),[ShipDate],1) FROM [Order]