[freetds] Get rid of milliseconds from MS SQL server

Patrick Gu Patrick.Gu at Ticketmaster.com
Fri Sep 30 17:49:19 EDT 2005


Fred,

Thanks, that's what I thought and I will make the conversion in the SQL
Server.

-Patrick 

-----Original Message-----
From: freetds-bounces at lists.ibiblio.org
[mailto:freetds-bounces at lists.ibiblio.org] On Behalf Of Frediano Ziglio
Sent: Friday, September 30, 2005 12:27 PM
To: FreeTDS Development Group
Subject: Re: [freetds] Get rid of milliseconds from MS SQL server

Il giorno ven, 30/09/2005 alle 10.48 -0700, Patrick Gu ha scritto:
> Hi,
> 
> I am using freetds 0.63 with DBD::ODBC to pull data from MS SQL Server
2000
> to RH AS3. But I am getting the milliseconds for the date columns in the
> format of
> YYYY-MM-DD HH:MI:SS.SSS, anyone know if there is a quick way in freetds or
> DBD::ODBC to set the format?
> 
> Thanks!
> 

Well... it depends. If server return (SMALL)DATETIME column FreeTDS
format it to ODBC format (the same you reported) if column is converted
by mssql you should check mssql documentation (tsql, cast, convert, set
dateformat...). I don't know if DBD::ODBC have options to set date
format for DATETIME... MS ODBC driver have an option to use system
setting to format data as system settings; FreeTDS don't have such
option for simplicity, and it do not even support precision setting on
date.

freddy77


_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds



More information about the FreeTDS mailing list