Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 3063 invoked from network); 18 Jul 2005 18:50:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2005 18:50:11 -0000 Received: (qmail 85509 invoked by uid 500); 18 Jul 2005 18:50:10 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 85476 invoked by uid 500); 18 Jul 2005 18:50:09 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 85463 invoked by uid 99); 18 Jul 2005 18:50:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2005 11:50:09 -0700 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_BY_IP,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gcaddd-derby-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2005 11:50:06 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DuagU-0000so-Ka for derby-dev@db.apache.org; Mon, 18 Jul 2005 20:49:46 +0200 Received: from 12.159.90.110 ([12.159.90.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jul 2005 20:49:46 +0200 Received: from David.Pickett by 12.159.90.110 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jul 2005 20:49:46 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: derby-dev@db.apache.org From: David Pickett Subject: Table Import Suggestions Date: Mon, 18 Jul 2005 18:49:29 +0000 (UTC) Lines: 44 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 12.159.90.110 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Originally, I posted this on Cloudscape's board, and was urged to send it on: Using the table import for the first time, I had a few ideas where it could be more friendly: - I had a good old fashioned fixed length file, but had to cut it up with other tools to import it. A non-delimited format would be nice. Access and Excel, for instance, have no problem with this. - My delimited file tools trim away empty trailing fields, but Cloudscape insisted on having them, so I had to modify my tools. Access and Excel, for instance, have no problem with this. - I suppose it is a subtle characteristic of Cloudscape, as with several other RDBMS, that ',,' is NULL and I suppose ', ,' is blank. Maybe there should be an option to have ',,' be considered blank, especially if the column is Not Null. (I haven't tried, maybe for Not Null it accomodates you, but I would be surprised if it did.) Admittedly, signalling NULL on import and export is a challenge often met through the 'blank is one space' solution. - It'd be really helpful if the record blowing up the import was *always* printed in the error message. - It'd be nice if I could skip the first line, which is often a header. - It'd be really handy if the input file could be a pipe, especially stdin. Then, I could stream unlimited amounts of data from the source to the destination, editing it on the fly. I might just write a 'pipe fitting' that chops off N lines to a temp file and imports in pieces. - Input file names seem to have to be absolute, which is a bit fussy. BTW, Cloudscape documentation generally has a weakness about saying whether things like the file name are for the client or the server (s/b the client, here). I see too many client-server examples using localhost, and wonder if they work as presented on 2 boxes. It is as if the writer assumes the client-server concept only works using one box. Many shops have nothing on the RDBMS server box but the server(s); it makes tuning and administration easier. Localhost will never work for those users. I do feel the documents are great for an open source product, but there's always room at the top, and my target here is their improvement. - I was glad to find that quoting was optional. The instructions are a bit terse. Hopefully, it supports the doubled doublequotes and doublequoted commas of formal CSV better then my Win2000 version of MS Access!