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!

Large Empty Table

Status
Not open for further replies.

guber

Programmer
Jan 4, 2002
27
US
I have a table in my database and this table receive temporary data from txt files (I do this using bcp.exe)

I load the data and if its ok, I transfer to the final table.

But they have a problem... this table (the table is empty now...) have 110 MB allocated... and they are very stranger... (slower...)

There isn´t any index or foreingn key...


Someone can help me ?


Thanks...

 
Why not drop the table after use, then re-create it (either immediately or better still, when next you want to load it up again)
HTH Dickie Bird (:)-)))
 
How can you tell that the space allocated is 110MB. How can access be slow if the table is truly empty? You shouldn't need to drop and recreate tables. Try this.

exec sp_spaceused table_name, @updateusage=true

@Updateusage=True instructs the procedure to update the space usage information which can be out of date. If you want to get the best answer for your question read faq183-874 and thread183-468158.


Terry L. Broadbent - DBA
SQL Server Page:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top