Received: from mercury.noida.hclt.com ([204.160.248.59]) by hub.org (8.9.3/8.9.3) with ESMTP id BAA33167 for ; Fri, 7 Jan 2000 01:17:03 -0500 (EST) (envelope-from sirishk@titanium.noida.hclt.com) Received: from sirishk.noida.hclt.com (sirishk [204.160.254.237]) by mercury.noida.hclt.com (8.8.7/8.8.7) with SMTP id LAA11627 for ; Fri, 7 Jan 2000 11:48:35 +0530 Message-ID: <003c01bf58d4$c013d720$edfea0cc@noida.hclt.com> From: "Sirish Kumar" To: "PostgreSQL Group" References: <383FE1C0.6114EC92@wgcr.org> Subject: Database creation Date: Fri, 7 Jan 2000 11:32:13 +0530 Organization: HCLT MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Hello, I tried to create database using embedded SQL through following statements ... exec sql begin declare section; char dbname[]="pgdb"; ... exec sql end declare section; main() { ... exec sql create database :dbname ; ... } On compilation ecpg gives parser error at "...create database..." statement. Can anybody help ? Thanks Sirish