473,509 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sp_spaceused

Hi,

In our environment sp-spaceused returns:
Allocated: 500
Unallocated: -100

Enterprise Database Taskpad shows that our total database size = 400 MB
(320 used; 80 unused)

Windows Explorer shows also that MDF file is more or less 400 MB.

What does sp_spaceused exactly ???
How do I SELECT the 320;80 of the taskpad with a query ???

Greetings,

Arno de Jong, The Netherlands.
Jul 20 '05 #1
1 3894
Most likely the statistics are not updated. Have you tried with the
@updateusage option? Or you can run DBCC UPDATEUSAGE on the database or on
the specific table. Refer to SQL Server Books Online for more details.

--
- Anith
( Please reply to newsgroups only )
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
28870
by: Brad Tobin | last post by:
On a production database, there is a 2GB database, when I run sp_spaceused it indicates a very high quanity of unused space. The database has been shrunk & free space sent to the OS. Why is this...
6
21112
by: Robin Tucker | last post by:
I want to look at the size of the current database, so I can create a new one if it gets too big (we are working around the 2gb MSDE limit for our customers). I would like to do something like...
1
5829
by: Hennie de Nooijer | last post by:
Hi I'm executing SP_SpaceUsed in a stored procedure like this : Exec ('SP_SpaceUsed '+ @table) This works great but when i want to execute it for a table in a other database i'm running in...
1
1024
by: Saiyou Anh | last post by:
Hi! There's a plenty free space on the drive, while the "unallocated space" column shows negative number when I use sp_spaceused. The database file has been setup as "automatically grow" already....
4
7049
by: spilich | last post by:
I have a large table that I recently purged a year of data from. However, the table size in sp_spaceused hasn't decreased as much as I would expect. (there are no text or large object columns on...
1
1050
by: Philip Yale | last post by:
At my current workplace, whenever I check table sizes using the 'reserved' column from sysindexes, or sp_spaceused, I get a total for all user tables which exceeds the physical size of the...
1
1345
by: Harcharan Jassal | last post by:
I have done this experiment on one of the tables. There is table called build havinf nvText Field with large no of records. I want to drop that column and recover space. These are the results I...
2
4691
by: Peter CCH | last post by:
I encounter one weird problem, I have a database with around 7 GB ... when I delete a bunch of data from it, it suppose to reduce the database file size, but weirdly, the file size increase to 8...
2
10303
by: Desmodromic | last post by:
The command below runs fine from within Management Studio exec sp_MSforeachtable @command1="exec sp_spaceused '?' " However, I'd like to run it via sqlcmd. I've tried various combinations of...
30
5629
by: Neil | last post by:
Yikes! My database, which had been consistently 1 gig for a long time, went from being 1 gig to 3 gigs overnight! Looking at the nightly backups, the database increased on average about 5-15 MB per...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7505
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4729
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
440
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.