[SQL] Creating a new database with a TEMPLATE did not work

2013-02-25 Thread mkumbale
Hi, I am new to PostgreSQL.  I have an empty PostgreSQL DB containing tables
but no data.  I issued the following command in PGADMIN SQL editor:

CREATE DATABASE "NewDefault"
  WITH OWNER = postgres
   ENCODING = 'UTF8'
   TEMPLATE = Default
   TABLESPACE = pg_default
   LC_COLLATE = 'English_United States.1252'
   LC_CTYPE = 'English_United States.1252'
   CONNECTION LIMIT = -1;

Although it created the NewDefault DB, it does not contain any of the tables
in Default.  Default was disconnected when I executed this command.  

What am I doing something wrong?

Thanks,
Murali



--
View this message in context: 
http://postgresql.1045698.n5.nabble.com/Creating-a-new-database-with-a-TEMPLATE-did-not-work-tp5746627.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql


Re: [SQL] Creating a new database with a TEMPLATE did not work

2013-02-26 Thread mkumbale
Adrian:

Thanks for the prompt reply.  I was able to create a new DB by renaming
Default to another name.  This was a carry over from our project which was
previously using SQLExpress.  

Thanks again for the reply.

Regards,
Murali



--
View this message in context: 
http://postgresql.1045698.n5.nabble.com/Creating-a-new-database-with-a-TEMPLATE-did-not-work-tp5746627p5746706.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql