Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8A2CC476AFB for ; Wed, 11 Sep 2002 16:02:32 -0400 (EDT) Received: from livm.net (unknown [66.95.101.8]) by postgresql.org (Postfix) with SMTP id 34E45476A49 for ; Wed, 11 Sep 2002 16:02:30 -0400 (EDT) Received: (qmail 24318 invoked from network); 11 Sep 2002 20:02:31 -0000 Received: from unknown (HELO mhegarty) (66.95.101.20) by public.livm.net with SMTP; 11 Sep 2002 20:02:31 -0000 From: "Long Island Vision Management" To: Subject: DDL import question Date: Wed, 11 Sep 2002 16:02:24 -0400 Message-ID: <000001c259ce$28b23d60$b392ffcc@mhegarty> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01C259AC.A1A09D60" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/129 X-Sequence-Number: 5668 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C259AC.A1A09D60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit hi everyone, I am trying to figure out how to import a DDL I got from one of out developers into a postgres DB. I am using linux RH 7.1 and version 7.2.2 or pgsql. The developers are using some visio and access tools to generate the database structures and DDL files and I want to import them to pgsql. Is it as simple as issuing something like the following psql -U username dbname < file.ddl I tried that and I am getting errors. Some are quote problems and others seem to be from the CREATE statements. I figure there has to be a script of some kind to do this type of import since DDL's are pretty standard. I read about a hack to work around this by setting up ODBC connections and stuff, but there has to be an easier way. Thanks in advance for all you help -Matt ------=_NextPart_000_0001_01C259AC.A1A09D60 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
hi everyo= ne, I am=20 trying to figure out how to import a DDL I got from one of out developers i= nto a=20 postgres DB.  I am using linux RH 7.1 and version 7.2.2 or=20 pgsql.  The developers are using some visio and access tools= to=20 generate the database structures and DDL files and I want to import them=20 to pgsql.  Is it as simple as issuing something like the=20 following
    psql -U username dbname = <=20 file.ddl
 
I tried t= hat and I=20 am getting errors.  Some are quote problems and others seem to be from= =20 the CREATE statements.  I figure there has to be a script of some= kind=20 to do this type of import since DDL's are pretty standard.  I rea= d=20 about a hack to work around this by setting up ODBC connections and stuff, = but=20 there has to be an easier way.
 
Thanks in= advance=20 for all you help
-Matt
 =20
------=_NextPart_000_0001_01C259AC.A1A09D60--