Langsung ke konten utama

The style value the output format for the date/time

The style value can be one of the following values:







































































































































Without centuryWith centuryInput/OutputStandard
-0 or 100mon dd yyyy hh:miAM (or PM)Default
11011 = mm/dd/yy
101 = mm/dd/yyyy
USA
21022 = yy.mm.dd
102 = yyyy.mm.dd
ANSI
31033 = dd/mm/yy
103 = dd/mm/yyyy
British/French
41044 = dd.mm.yy
104 = dd.mm.yyyy
German
51055 = dd-mm-yy
105 = dd-mm-yyyy
Italian
61066 = dd mon yy
106 = dd mon yyyy
-
71077 = Mon dd, yy
107 = Mon dd, yyyy
-
8108hh:mm:ss-
-9 or 109mon dd yyyy hh:mi:ss:mmmAM (or PM)Default + millisec
1011010 = mm-dd-yy
110 = mm-dd-yyyy
USA
1111111 = yy/mm/dd
111 = yyyy/mm/dd
Japan
1211212 = yymmdd
112 = yyyymmdd
ISO
-13 or 113dd mon yyyy hh:mi:ss:mmm (24h)Europe default + millisec
14114hh:mi:ss:mmm (24h)-
-20 or 120yyyy-mm-dd hh:mi:ss (24h)ODBC canonical
-21 or 121yyyy-mm-dd hh:mi:ss.mmm (24h)ODBC canonical (with milliseconds) default for time, date, datetime2, and datetimeoffset
-126yyyy-mm-ddThh:mi:ss.mmm (no spaces)ISO8601
-127yyyy-mm-ddThh:mi:ss.mmmZ (no spaces)ISO8601 with time zone Z
-130dd mon yyyy hh:mi:ss:mmmAMHijiri
-131dd/mm/yy hh:mi:ss:mmmAMHijiri

Komentar

Postingan populer dari blog ini

sys.processes Status sp_who2 SQL Server

Taken from the books online reference for sys.processes  and the status column. dormant = SQL Server is resetting the session. running = The session is running one or more batches. When Multiple Active Result Sets (MARS) is enabled, a session can run multiple batches. For more information, see Using Multiple Active Result Sets (MARS). background = The session is running a background task, such as deadlock detection. rollback = The session has a transaction rollback in process. pending = The session is waiting for a worker thread to become available. runnable = The task in the session is in the runnable queue of a scheduler while waiting to get a time quantum. spinloop = The task in the session is waiting for a spinlock to become free. suspended = The session is waiting for an event, such as I/O, to complete.