SQL Server - sp_spaceused concern

Asked By Niti
07-Mar-07 10:59 AM
I used sp_spaceused on one of the table and here is the output.

name,rows,reserved,data,index_size,unused
CreditCard_Protect ,8041839,674793648 KB,665420648 KB,5219808 KB,4153192 KB

In the data column, I see 665420648 KB which turns out to be > 600 GB which
is not true. Actual size of the table is much less than 600 GB or am I
missing something here? Table has up to date Indexes.

-Nitin
SQL Server
(1)
Table
(1)
Updateusage
(1)
Column
(1)
Dbcc
(1)
Date
(1)
  Tom Moreau replied...
07-Mar-07 11:07 AM
Try:

dbcc updateusage (0, 'CreditCard_Protect')

and retry.

--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON   Canada
.
I used sp_spaceused on one of the table and here is the output.

name,rows,reserved,data,index_size,unused
CreditCard_Protect ,8041839,674793648 KB,665420648 KB,5219808 KB,4153192 KB

In the data column, I see 665420648 KB which turns out to be > 600 GB which
is not true. Actual size of the table is much less than 600 GB or am I
missing something here? Table has up to date Indexes.

-Nitin
  Adi replied...
07-Mar-07 11:13 AM
If you think that you get incorrect results, you use the
@updateusage  parameter to make SQL Server check the space that the
table uses.  Check BOL for sp_spaceused and dbcc updateusage.

Adi
  Niti replied...
07-Mar-07 11:31 AM
Thanks.
Create New Account
help
When to Add Column to SQL Server Table SQL Server Recommended time to add a column to an SQL Server table. Should adding a column to an SQL Server table be done while users are updating
export from Sql Server table to delimited text ";" SQL Server Please fast way export from Sql Server table to delimited text ";" with ado and vb6. Tks SQL Server Discussions SQL Server (1) Bulk
PL / SQL code to load data from a flat file into a MS-SQL Server table SQL Server Hi everybody, I am very new to MS-SQL Server and I need the PL / SQL code to load data from a flat file into
Upsizing large Access table to SQL Server SQL Server I am using SQL Server 2005 Express and want to upsize large tables from MS Access to SQL Server. The upsizing wizard is skipping the large tables without any error. The QueryTimeout value
Load the Data in to flat file from SQL Server Table. SQL Server I wanted to Load the data in to a flat file from a SQL Server table. . I know the options like BCP, DTS. . .but i want to know is there any