Click here to Skip to main content
16,005,316 members
Home / Discussions / Database
   

Database

 
GeneralRe: Restore Database Pin
Anonymous7-Jul-05 20:36
Anonymous7-Jul-05 20:36 
GeneralProblem inserting record in Access database Pin
shapper7-Jul-05 1:54
shapper7-Jul-05 1:54 
GeneralImporting the data from xls to SQL server table through asp.net Pin
7-Jul-05 1:31
suss7-Jul-05 1:31 
GeneralMonitoring Sql Server2000............... Pin
under28117-Jul-05 1:30
under28117-Jul-05 1:30 
GeneralRe: Monitoring Sql Server2000............... Pin
under28118-Jul-05 1:54
under28118-Jul-05 1:54 
QuestionHow to change Date Format in SQL Server 2000 Pin
imshally817-Jul-05 0:45
imshally817-Jul-05 0:45 
AnswerRe: How to change Date Format in SQL Server 2000 Pin
jonathan157-Jul-05 1:55
jonathan157-Jul-05 1:55 
AnswerRe: How to change Date Format in SQL Server 2000 Pin
Rob Graham7-Jul-05 10:31
Rob Graham7-Jul-05 10:31 
SQL stores dates as binary information (assuming you used a datetime field type). The default disply format depends on the installed locale and collation order (and is likely being set by whatever UI you are using to display the dates).

For input of dates as strings, SQL Servers default is US English (mdy) order, but this can be changed with the statement 'Set DateFormat dmy' (for day, month, year order).

You can also use the convert function to convert the stored datetime values to varchar or nvarchar strings before returning the result, specifying the datetime style as a convert parameter "select mydate as convert(varchar(50),[theRealdatefieldName],103) from Mytable"

103 specifies the british dd/mm/yy format. See Sql Books Online help for Convert.

If you are looking at it in a UI (C# form), then you must either change current culture/language setting programatically or in control panel settings...

Absolute faith corrupts as absolutely as absolute power
Eric Hoffer

The opposite of the religious fanatic is not the fanatical atheist but the gentle cynic who cares not whether there is a god or not.
Eric Hoffer

GeneralUpdate More than one Table using ADO in Visual C++ 6.0 under one application Pin
Wisdom20046-Jul-05 22:35
Wisdom20046-Jul-05 22:35 
GeneralInvoking Java API from SQL Stored Procedure Pin
Member 20071356-Jul-05 19:27
Member 20071356-Jul-05 19:27 
GeneralRe: Invoking Java API from SQL Stored Procedure Pin
Rob Graham8-Jul-05 17:39
Rob Graham8-Jul-05 17:39 
GeneralSYNCRONISE MYSQL WITH SQL SERVER Pin
RajithCAlwis6-Jul-05 0:47
RajithCAlwis6-Jul-05 0:47 
Generalstoresql date time related Pin
Member 4472176-Jul-05 0:29
Member 4472176-Jul-05 0:29 
GeneralRe: storesql date time related Pin
Colin Angus Mackay6-Jul-05 0:48
Colin Angus Mackay6-Jul-05 0:48 
Generaldisbaling identity Pin
sianatia5-Jul-05 19:41
sianatia5-Jul-05 19:41 
GeneralRe: disbaling identity Pin
Rob Graham7-Jul-05 12:56
Rob Graham7-Jul-05 12:56 
GeneralRe: Crystal Report can not show data Pin
RajithCAlwis6-Jul-05 0:34
RajithCAlwis6-Jul-05 0:34 
GeneralRe: Crystal Report can not show data Pin
rajith20056-Jul-05 3:20
rajith20056-Jul-05 3:20 
GeneralHelp : i can't open a connection Pin
SmartSDR5-Jul-05 7:37
SmartSDR5-Jul-05 7:37 
GeneralRe: Help : i can't open a connection Pin
Michael Potter5-Jul-05 8:03
Michael Potter5-Jul-05 8:03 
GeneralRe: Help : i can't open a connection Pin
SmartSDR5-Jul-05 9:32
SmartSDR5-Jul-05 9:32 
GeneralRe: Help : i can't open a connection Pin
Michael Potter5-Jul-05 10:40
Michael Potter5-Jul-05 10:40 
GeneralRe: Help : i can't open a connection Pin
SmartSDR6-Jul-05 2:26
SmartSDR6-Jul-05 2:26 
GeneralT-SQL Problem Pin
WDI5-Jul-05 4:52
WDI5-Jul-05 4:52 
GeneralRe: T-SQL Problem Pin
Colin Angus Mackay5-Jul-05 5:00
Colin Angus Mackay5-Jul-05 5:00 

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.