Thursday, June 7, 2007

How do you know diskspace used by tables in a SQL database?

Use the following stored procedure to view space used by every table:

exec sp_spaceused


Or you can use the undocumented foreachtable function in combination with that.


exec sp_MSforeachtable 'exec sp_spaceused ''?'';'

How to reclaim the diskspace from SQL log file (.LDF)?

To reclaim disk space from SQL log file

- Detach the database using Enterprise manager or Stored procedure.
- Delete the log file physically
- Attach the database using Enterprise Manager which will create a new log file for the database

Wednesday, May 30, 2007

Windows XP STOP Error 0x0000023

Recovery from this error is done with following process.

  • Boot from Windows XP installer disk and choose Recovery console,
  • login to Windows XP installation giving problem and
  • Run 'Chkdsk' with '/r' option
0x23 error is because of FAT problems, checkdisk (chkdsk) recovers from problem.

Subscribe free via email

Enter your email address:

Delivered by FeedBurner

...