From jfradkin@wazagua.com Fri Jan 14 21:12:19 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id ECE993A1AE0 for ; Fri, 14 Jan 2005 21:12:19 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18017-06 for ; Fri, 14 Jan 2005 21:12:12 +0000 (GMT) Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140]) by svr1.postgresql.org (Postfix) with ESMTP id 0C9383A19DE for ; Fri, 14 Jan 2005 21:12:12 +0000 (GMT) Received: from jfradkin ([66.15.127.235]) by out001.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20050114211212.UPXY28025.out001.verizon.net@jfradkin> for ; Fri, 14 Jan 2005 15:12:12 -0600 From: "Joel Fradkin" To: 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 Message-ID: <003c01c4fa7e$1d463460$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_003D_01C4FA54.34702C60" X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from [66.15.127.235] at Fri, 14 Jan 2005 15:12:12 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=3.077 tagged_above=0 required=5 tests=HTML_MESSAGE, MSGID_DOLLARS X-Spam-Level: *** X-Archive-Number: 200501/107 X-Sequence-Number: 19895 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

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.
© 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-- From mike@fuhr.org Sun Jan 16 01:50:52 2005 X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3525D3A3AFB for ; Sun, 16 Jan 2005 01:50:52 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78869-09 for ; Sun, 16 Jan 2005 01:50:38 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 1315B3A3B15 for ; Sun, 16 Jan 2005 01:50:40 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j0G1ob1D056467 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 15 Jan 2005 18:50:40 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j0G1obx0034907; Sat, 15 Jan 2005 18:50:37 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j0G1oaom034906; Sat, 15 Jan 2005 18:50:36 -0700 (MST) (envelope-from mfuhr) Date: Sat, 15 Jan 2005 18:50:36 -0700 From: Michael Fuhr To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: I am writing a MS SQL server conversion utility and am having an issue with timestamp Message-ID: <20050116015036.GA34820@winnie.fuhr.org> References: <003c01c4fa7e$1d463460$797ba8c0@jfradkin> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003c01c4fa7e$1d463460$797ba8c0@jfradkin> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/114 X-Sequence-Number: 19902 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/