Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing a db name

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
Does anyone know how I can change the db name (keeping all the existing tables/funcitons) via sql or pgadmin?

Ive been looking around but can't really find where i'd do this ....

THanks :)
 
Surprises me that you could not find it. Its very easy to find.

Here is the prototype...

ALTER DATABASE name RENAME TO newname

Try that.

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top