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

Empty Table

Status
Not open for further replies.

TamedTech

IS-IT--Management
May 3, 2005
998
GB
Hello Guys,

I've recently migrated to MsSQL from MySQL, and in MySQL DBTools i used to be able to run a process called 'empty table' that would clear the entire content of a table.

Now, in MsSQL, during application development i've managed to accidentaly :-D fill a table with over a million results, and deleting is a bit of an issue.

What is the best way to clear all those records? Keep in mind i'm really new, so keep it simple :-D

Thanks,

Rob
 
In query analyzer....


Truncate Table [!]TableName[/!]



-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Thanks George, just what I wanted to hear.

I'll give it a go in the morning and let you know how i go.

Thanks,

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top