Re: Date settings with SQL Server 2000
From: Hari (hari_prasad_k_at_hotmail.com)
Date: 04/29/04
- Next message: John Bell: "Re: SQL2K and loops in SP"
- Previous message: Nikola Milic: "sqlmaint"
- In reply to: Totto: "Date settings with SQL Server 2000"
- Next in thread: Tibor Karaszi: "Re: Date settings with SQL Server 2000"
- Reply: Tibor Karaszi: "Re: Date settings with SQL Server 2000"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 13:22:34 +0530
Hi,
Have a look into "SET DATEFORMAT" command in books online.
Sample:
SET DATEFORMAT dmy
GO
DECLARE @var1 datetime
SET @var1 = '31/12/03'
SELECT @var1
GO
Thanks
Hari
MCDBA
"Totto" <taa.nospam@norcon.no> wrote in message
news:u1ggFlbLEHA.2736@TK2MSFTNGP11.phx.gbl...
> Hi,
> I have a "Closed" system (SCADA)i.e not changable, that is storing to SQL
> Server 2000.
> The date format from the SCADA system is dd.mm.yyyy but the SQL server
only
> wants yyyy.mm.dd. How do I change the date format in SQL Server 2000 to
> recognise the format from the SCADA system.
> Tnx
> Totto
>
>
- Next message: John Bell: "Re: SQL2K and loops in SP"
- Previous message: Nikola Milic: "sqlmaint"
- In reply to: Totto: "Date settings with SQL Server 2000"
- Next in thread: Tibor Karaszi: "Re: Date settings with SQL Server 2000"
- Reply: Tibor Karaszi: "Re: Date settings with SQL Server 2000"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|