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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I completely empty a database while maintaining the structure?

Status
Not open for further replies.

hgate73

IS-IT--Management
Feb 22, 2008
80
0
0
US
I have a database that I need to completely empty of it's contents, but leave all the tables, relationships, etc... intact. How can I do this?
 
I presume that you want to delete the contents of a particular schema, not the entire db. If you did that (e.g. by emptying all the tables belonging to SYS or SYSTEM) you would disable the db permanently.

Do you mean just a schema, or really the whole db?

Regards

T
 
I might be using the wrong term here. I'm "duplicating" and entire stand-alone database solution, and the method of standing up the new database instance was to import the latest full dump file. However, the new location has no need for all of the records that the first location was using, so I need to "wipe clean" all the records from the import. Is that possible?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top