Click here to Skip to main content
16,006,564 members
Home / Discussions / Database
   

Database

 
GeneralRe: Browse through list of databases on server Pin
Colin Angus Mackay11-Nov-04 4:23
Colin Angus Mackay11-Nov-04 4:23 
GeneralConnectionString for Server Pin
Vector711-Nov-04 1:36
Vector711-Nov-04 1:36 
GeneralRe: ConnectionString for Server Pin
Daniel Turini11-Nov-04 1:59
Daniel Turini11-Nov-04 1:59 
GeneralRe: ConnectionString for Server Pin
Vector711-Nov-04 2:15
Vector711-Nov-04 2:15 
GeneralRe: ConnectionString for Server Pin
Luis Alonso Ramos21-Nov-04 15:39
Luis Alonso Ramos21-Nov-04 15:39 
GeneralRe: ConnectionString for Server Pin
Mekong River11-Nov-04 14:00
Mekong River11-Nov-04 14:00 
GeneralRe: ConnectionString for Server Pin
Luis Alonso Ramos21-Nov-04 15:37
Luis Alonso Ramos21-Nov-04 15:37 
GeneralDate Format Pin
Brendan Vogt11-Nov-04 0:57
Brendan Vogt11-Nov-04 0:57 
Hi,

Can someone please help me to format a date in a SQL query coming from SQL Server. I want to format it the way that I like it. Below is what I found in the MSDN library. I want it to display yyyy-mm-dd. Do you this it maybe better to concatenate a string by using YEAR(), MONTH(), and DAY()? Surely there must be a way?

Without century (yy) With century (yyyy) Standard Input/Output**
- 0 or 100 (*) Default mon dd yyyy hh:miAM (or PM)
1 101 USA mm/dd/yy
2 102 ANSI yy.mm.dd
3 103 British/French dd/mm/yy
4 104 German dd.mm.yy
5 105 Italian dd-mm-yy
6 106 - dd mon yy
7 107 - Mon dd, yy
8 108 - hh:mm:ss
- 9 or 109 (*) Default + milliseconds mon dd yyyy hh:mi:ss:mmmAM (or PM)
10 110 USA mm-dd-yy
11 111 JAPAN yy/mm/dd
12 112 ISO yymmdd
- 13 or 113 (*) Europe default + milliseconds dd mon yyyy hh:mm:ss:mmm(24h)
14 114 - hh:mi:ss:mmm(24h)
- 20 or 120 (*) ODBC canonical yyyy-mm-dd hh:mi:ss(24h)
- 21 or 121 (*) ODBC canonical (with milliseconds) yyyy-mm-dd hh:mi:ss.mmm(24h)
- 126(***) ISO8601 yyyy-mm-dd Thh:mm:ss:mmm(no spaces)
- 130* Kuwaiti dd mon yyyy hh:mi:ss:mmmAM
- 131* Kuwaiti dd/mm/yy hh:mi:ss:mmmAM

Thanks
BRENDAN

GeneralRe: Date Format Pin
Michael Potter11-Nov-04 9:58
Michael Potter11-Nov-04 9:58 
GeneralCASE function Pin
Brendan Vogt11-Nov-04 0:56
Brendan Vogt11-Nov-04 0:56 
GeneralRe: CASE function Pin
Christian Graus11-Nov-04 9:07
protectorChristian Graus11-Nov-04 9:07 
GeneralRe: CASE function Pin
Michael Potter11-Nov-04 10:06
Michael Potter11-Nov-04 10:06 
GeneralStored Procedure and ADO.NET Pin
mysorian10-Nov-04 11:22
professionalmysorian10-Nov-04 11:22 
GeneralRe: Stored Procedure and ADO.NET Pin
Christian Graus10-Nov-04 11:30
protectorChristian Graus10-Nov-04 11:30 
GeneralRe: Stored Procedure and ADO.NET Pin
mysorian10-Nov-04 12:07
professionalmysorian10-Nov-04 12:07 
GeneralRe: Stored Procedure and ADO.NET Pin
Christian Graus10-Nov-04 12:12
protectorChristian Graus10-Nov-04 12:12 
GeneralRe: Stored Procedure and ADO.NET Pin
mysorian10-Nov-04 12:46
professionalmysorian10-Nov-04 12:46 
GeneralBizzare SQL Query Problem Pin
Tristan Rhodes10-Nov-04 10:49
Tristan Rhodes10-Nov-04 10:49 
GeneralRe: Bizzare SQL Query Problem Pin
Christian Graus10-Nov-04 11:28
protectorChristian Graus10-Nov-04 11:28 
GeneralRe: Bizzare SQL Query Problem Pin
Tristan Rhodes11-Nov-04 6:06
Tristan Rhodes11-Nov-04 6:06 
GeneralNever Mind - Solved It Pin
Tristan Rhodes11-Nov-04 8:30
Tristan Rhodes11-Nov-04 8:30 
GeneralRe: Never Mind - Solved It Pin
Christian Graus11-Nov-04 9:03
protectorChristian Graus11-Nov-04 9:03 
GeneralRe: Bizzare SQL Query Problem Pin
Michael Potter11-Nov-04 10:16
Michael Potter11-Nov-04 10:16 
GeneralExcel data type problem Pin
@LX10-Nov-04 4:42
@LX10-Nov-04 4:42 
Generalbuild a cbo box Pin
skicrud10-Nov-04 3:53
skicrud10-Nov-04 3:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.