newsgroups-index (beta)

Current group: pgsql.sql

I am writing a MS SQL server conversion utility and am having an issue with timestamp

I am writing a MS SQL server conversion utility and am having an issue with timestamp  
Joel Fradkin
 Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp  
Michael Fuhr
From:Joel Fradkin
Subject:I am writing a MS SQL server conversion utility and am having an issue with timestamp
Date:Fri, 14 Jan 2005 16:15:02 -0500
This is a multi-part message in MIME format.

------=_NextPart_000_003D_01C4FA54.34702C60
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Any one have a good idea for dealing with a timestamp where only time is
available on some of the source records?

Some records have both time and day.

My MSSQL database has 290 tables so splitting the fields would be a very
large project.

Is there a way to add just the time part of date time to timestamp?



Joel Fradkin



Wazagua, LLC
2520 Trailmate Dr
Sarasota, Florida 34243
Tel. 941-753-7111 ext 305



jfradkin@wazagua.com
www.wazagua.com
Powered by Wazagua
Providing you with the latest Web-based technology & advanced tools.
C 2004. WAZAGUA, LLC. All rights reserved. WAZAGUA, LLC
This email message is for the use of the intended recipient(s) and may
contain confidential and privileged information. Any unauthorized review,
use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply email and delete and destroy
all copies of the original message, including attachments.









------=_NextPart_000_003D_01C4FA54.34702C60
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable




charset=3Dus-ascii">












style=3D'font-size:10.0pt;
font-family:Arial'>Any one have a good idea for dealing with a timestamp =
where
only time is available on some of the source records?



style=3D'font-size:10.0pt;
font-family:Arial'>Some records have both time and =
day.



style=3D'font-size:10.0pt;
font-family:Arial'>My MSSQL database has 290 tables so splitting the =
fields
would be a very large project.



style=3D'font-size:10.0pt;
font-family:Arial'>Is there a way to add just the time part of date time =
to
timestamp?



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>Joel Fradkin





style=3D'font-size:
12.0pt'> 





style=3D'font-size:10.0pt;
font-family:Arial'>Wazagua, LLC

style=3D'font-size:10.0pt;font-family:
Arial'>2520 Trailmate Dr
face=3DArial>style=3D'font-size:10.0pt;font-family:Arial'>

style=3D'font-size:10.0pt;font-family:
Arial'>Sarasota
style=3D'font-size:
10.0pt;font-family:Arial'>,
face=3DArial> =
style=3D'font-size:10.0pt;font-family:Arial'>Florida
size=3D2
face=3DArial> =
size=3D2 face=3DArial>style=3D'font-size:10.0pt;font-family:Arial'>34243size=3D2 face=3DArial>style=3D'font-size:10.0pt;font-family:Arial'>

Tel.  941-753-7111 ext 305





style=3D'font-size:
12.0pt'> 





style=3D'font-size:10.0pt;
font-family:Arial'>href=3D"mailto:jfradkin@wazagua.com">jfradkin@wazagua.com

www.wazagua.com

Powered by Wazagua

Providing you with the latest Web-based technology & advanced =
tools.

© 2004. WAZAGUA, LLC. All rights reserved. WAZAGUA, LLC

 This email message is for the use of the intended recipient(s) and =
may
contain confidential and privileged information.  Any unauthorized =
review,
use, disclosure or distribution is prohibited.  If you are not the
intended recipient, please contact the sender by reply email and delete =
and
destroy all copies of the original message, including =
attachments.





style=3D'font-size:
12.0pt'> 





style=3D'font-size:10.0pt;
font-family:Arial'>

 



style=3D'font-size:
12.0pt'> 









------=_NextPart_000_003D_01C4FA54.34702C60--
From:Michael Fuhr
Subject:Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp
Date:Sat, 15 Jan 2005 18:50:36 -0700
On Fri, Jan 14, 2005 at 04:15:02PM -0500, Joel Fradkin wrote:

> Any one have a good idea for dealing with a timestamp where only time is
> available on some of the source records?

TIMESTAMP values contain a date and time. If you have only times
then they'll have to go in a TIME column or you'll have to use a
bogus date in a TIMESTAMP column (ugly).

> Some records have both time and day.
>
> My MSSQL database has 290 tables so splitting the fields would be a very
> large project.

Couldn't a conversion be done programatically? Or are there too
many special cases that need wetware intervention?

> Is there a way to add just the time part of date time to timestamp?

Not that I'm aware of. Unless I'm mistaken you'll have to use
separate DATE and TIME columns and set the date to NULL, else assign
a bogus date where the date is missing, which wouldn't smell very
nice.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match
   

Copyright © 2006 newsgroups-index   -   All rights reserved   -   Impressum