Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7876705
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:12:31+00:00 2026-06-03T03:12:31+00:00

I have 2 tables in SQL Server TbUrl INDEX SPACE 12,531 MB ROW COUNT

  • 0

I have 2 tables in SQL Server

TbUrl

  • INDEX SPACE 12,531 MB
  • ROW COUNT 247505
  • DATA SPACE 1.965,891 MB

Table structure:

CREATE TABLE [TbUrl](
    [IdUrl] [Int] IDENTITY(1,1) NOT NULL,
    [IdSupply] [Int] NOT NULL,
    [Uri] [varchar](512) NOT NULL,
    [UrlCod] [varchar](256) NOT NULL,
    [Status] [Int] NOT NULL,
    [InsertionDate] [datetime] NOT NULL,
    [UpdatedDate] [datetime] NULL,
    [UpdatedIp] [varchar](15) NULL

TbUrlDetail

  • INDEX SPACE 29,406 MB
  • ROW COUNT 234209
  • DATA SPACE 386,047 MB

Structure:

CREATE TABLE .[TbUrlDetail](
    [IdUrlDetail] [Int] IDENTITY(1,1) NOT NULL,
    [IdUri] [Int] NOT NULL,
    [Title] [varchar](512) NOT NULL,
    [Sku] [varchar](32) NOT NULL,
    [MetaKeywords] [varchar](512) NOT NULL,
    [MetaDescription] [varchar](512) NOT NULL,
    [Price] [money] NOT NULL,
    [Description] [text] NOT NULL,
    [Stock] [Bit] NOT NULL,
    [StarNumber] [Int] NOT NULL,
    [ReviewNumber] [Int] NOT NULL,
    [Category] [varchar](256) NOT NULL,
    [UrlShort] [varchar](32) NULL,
    [ReleaseDate] [datetime] NOT NULL,
    [InsertionDate] [datetime] NOT NULL

The size of TbUrl is very large compared with TbUrlDetail

The layout (design) of table TbUrl is less compared with TbUrlDetail but the data space it’s else.

I´ve done SHRINK ON DATABASE but the space of TbUrl doesn’t reduce.

What might be happening? How do I decrease the space of this table?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:12:32+00:00Added an answer on June 3, 2026 at 3:12 am

    Is there a clustered index on the table? (If not you could be suffering from a lot of forward pointers – ref.) Have you made drastic changes to the data or the data types or added / dropped columns? (If you have then a lot of the space previously occupied may not be able to be re-used. One ref where changing a fixed-length col to variable does not reclaim space.)

    In both cases you should be able to recover the wasted space by rebuilding the table (which will also rebuild all of the clustered indexes):

    ALTER TABLE dbo.TblUrl REBUILD;
    

    If you are on Enterprise Edition you can do this online:

    ALTER TABLE dbo.TblUrl REBUILD WITH (ONLINE = ON);
    

    Shrinking the entire database is not the magic answer here. And if there is no clustered index on this table, I strongly suggest you consider one before performing the rebuild.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 2 Identical tables in SQL Server 2008, one is the Live table
In SQL Server 2008 I have two tables. One table for users: id_user -
i have four tables like below in sql server 2008 : TABLE 1 ->
I have got two tables in SQL Server 2005: USER Table: information about user
I have to copy data from several tables from SQL Server to Oracle. The
I have SQL Server tables as follows: create table TableA ( id int primary
I have two tables in SQL Server, tbl_disputes and tbl_disputetypes . The tbl_disputes table
In an SQL Server 2008 database, I have tables such as: CREATE TABLE t_DeviceType
i have 3 tables in sql-server 2008 table A , table B , Table
I have a set of tables in SQL Server 2005 which contain timeseries data.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.