Sharepoint 2010 Database Storage double in size

Hi,
I've noticed something interesting about content databases on SharePoint 2010. I appears that size of the database is double the size of the content. Is this how SharePoint is designed?
For example, the web application content database "Current storage used: 2837 MB" in Central Admin, but if I check the actual content database size in DB Server it shows 4223 MB.

1st we need to identify that which thing is causing this issue:
open the SQl management Studio and connect to the SQL server from here:
right click on the Database > Reports > Standard Reports > Disk
Usage By Table
Check which table is chewing all the space(i.e alldoc, audit, alldocstream etc). if it is audit then you have to think becuase audit table never count towards quota.
2nd) also check if there is any white/free space in the content db.
3rd) make sure not too much data in the Site collection Admin recycle bin(2nd stage), this is not counting towards the quota.
4th) run the below script to force the recalculate the space of the site collection.
$URL = "https://<spsite>/<sitecollection>"
$Site = Get-SPSite -identity $URL
$Site.RecalculateStorageUsed()
$site.Usage.Storage
please share the result.
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

Similar Messages

  • SharePoint 2010 Database maintenance for beginners / developers

    Hey,
    here is a thing which I concern myself with from time to time.
    As a fulltime developer for SharePoint, I'm not quite familiar with maintaining it's databases. So after I set up my dev environment I usually don't care about maintaining the system. The logical consequence is that the system begins to slow down after a
    while.
    I don't have the time (and - to be honest - not the muse) to deep dive into the recommended maintaing plans by microsoft but I want to keep the performance of my system on an acceptable level. So I read the best practices provided by microsoft about index
    defragmentation, reorganizing, shrinking and so on but for me it's quite difficult to fully dive into these things without spending to much of my business time.
    So I wander if there are any execution-ready T-SQL scripts or something like that, which I can run from time to time to prevent my databases from to high fragmentation. I found some scripts for a stored procedure which reorganizes a particular index. But
    what I am thinking about is a script which iterates through all databases, all tables and all indexes and reorganizes them.
    I'm not looking for the perfect mainenance plan to achieve the best possible performance - I just want to prevent my dev environment from slowing down to much.
    Are there any scripts like that out there? or do you have other tips for me?
    Thank you!

    Hi,
    The steps to configure the maintenance plan is very easy and wont take more than 10 minutes. It is one time activity. It is nothing but drag and drag drop the required tasks from the Tool bar. You can schedule the maintenance plan to run on specific
    time or can run directly on demand basis.
    http://social.technet.microsoft.com/wiki/contents/articles/13956.sharepoint-2010-how-to-create-a-sql-server-2008-r2-maintence-plan-for-sharepoint.aspx 
    If you are looking only for SQL scripts then you may need to post in SQL forum, because maintenance plans will be almost similar for SharePoint Databases/or any SQL DBs.
    Please remember to mark your question as answered &Vote helpful, if this solves/helps your problem. ******************************************************************************************
    Best Regards,
    Pavan Kumar Sapara
    s p kumar

  • Reporting Services 2012 in SharePoint 2010 - SQL database edition?

    We currently have a SharePoint 2010 farm, running on a SQL Server 2008 R2 Standard database.  On one of the SharePoint 2010 servers, we have an instance of Reporting Services 2008 Enterprise running in SharePoint integrated mode.  (We require Enterprise
    for data-driven subscriptions)
    We'd like to upgrade to Reporting Services 2012 for Data Alerts and a few other new features.  However, I noticed something on
    this blog stating that the SharePoint 2010 database server edition needs to match the Reporting Services edition. My concern is that I've not seen any official mention of this in Microsoft's documentation, and would like to avoid upgrading to Enterprise
    for the SharePoint 2010 database if I can avoid it.
    So, what I'd like to run is:
    SharePoint 2010
    SharePoint database: SQL Server 2008 R2 Standard
    Reporting Services 2012 Enterprise
    Reporting Services database: same as SharePoint database, so SQL Server 2008 R2 Standard
    Is this possible?  Or do I need to upgrade the SharePoint database to SQL Server 2008 R2 Enterprise?  
    Alternatively, could I install a separate database engine just for Reporting Services to host its databases (for example, SQL Server 2012 Enterprise), so I don't have to mess around with upgrading the SP database?

    While you don't need to upgrade your SQL 2008 R2 to 2012, you will need to install an instance of SQL 2012 & SSRS 2012. They can be side-by-side and independent of each other. The following blog post provides steps to do so,
    http://www.madronasg.com/blog/how-configure-sql-server-reporting-services-2012-use-sharepoint-2010#.UuEVd2Ao74Y
    Dimitri Ayrapetov (MCSE: SharePoint)

  • Deactive sharepoint 2010 soultion

    dear all
    I changed sharepoint 2010 database server.I took backup form different database.
    I restored my database but when I wanted to restore centrall admin DB I get an Error.
    So I decided to  config all setting again(in a new central admin).but unfortunately  there were some WSP solutions which deployed in my old central DB and I haven't them now.
    one of these web part is used in my main page so when my main page wants to load I get an Error something like this:
    Could not load file or assembly 'star4user, Version=1.0.0.0, Culture=neutral, PublicKeyToken=29359d1f47e21621' or one of its dependencies. The system cannot find the file specified.
    how Can I save my main page.
    this an urgent need.Please please help me.
    tnx in advance

    Hi  Sara,
    For opening the Web Part Maintenance page by just adding the following query string to the page URL
    ?contents=1 So, if your page URL is 'http://servername/sitename/home.aspx' then after appending the query string it should look like ' http://servername/sitename/home.aspx?contents=1'
    Using this approach, we can open the web part maintenance page , close or delete these wrong web part.
    Reference:
    Opening Web Part Maintenance Page
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Sharepoint 2010 - configuration database size limit

    Hi,
       We have below scenario in our production farm. Ours is a SharePoint 2010 Enterprise Edition server.
    Medium size farm (4 WFE, 4 App Servers, Content DBs in separate tier. No SharePoint search in this farm)
    Configuration DB reached 250+ GB. Please clarify below queries.
    1. What is the boundary limit for configuration database size?
    2. How we can scale the configuration database?
    3. Can we add multiple configuration database per farm?
    4. What are the best practices and regular maintenance activities to be done to keep the configuration db size under control?
    It would be really really great if someone gives some good knowledge in this area.

    1) Not aware of one
    2) You can add multiple files to the file group
    3) No
    Is the growth in the MDF or the LDF (log file)? If it is in the log file, are you using high availability (Clustering, Mirroring, Log Shipping, AlwaysOn)? If so, you need to run a BACKUP LOG periodically to maintain the LDF size, or allow you to truncate
    the LDF.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Reduce Size or delete unwanted entries from tables AllDocStreams,AllDocVersions,EventCache,EventLog of Sharepoint 2010 content database

    Size or delete unwanted  entries from tables AllDocStreams,AllDocVersions,EventCache,EventLog  of Sharepoint 2010 content database:
    We using  powershell  scripts to migrate data between   two  sharepoint  2010 sites .
    While  doing migration  we  delete all  document libraries  & list  form  destination  site  and then run  powershell to migrate data from  source to destination. We following this  process
    twice in a week.
    But in doing  so  we found the above mention tables (AllDocStreams,AllDocVersions,EventCache,EventLog ) of destination Sharepoint Content database  are growing at an alarming rate. 
    Wish to know  how  could get rid of  unwanted  data stored in these tables.

    Hi,
    This is old thread but here is your answer for some of the tables you mentioned
    http://blogs.msdn.com/b/sowmyancs/archive/2012/06/29/alldocversions-amp-alldocstreams-table-size-after-upgrading-to-sharepoint-2010.aspx
    Cheers

  • SharePoint 2010 content database size issues alldocs streams

    HI All,
    We are planning to do migration from sharepoint 2010 to sharepoint 2013. our database team identified that "all docs streams" and "audit log table" using almost 300 gig
    we dropped "audit log" table today almost 100 gig
     but still "all doc streams" table size is almost 147 gig
    how to handle this situation before migration?
    do I need to migrate as it is or do I need to work on "all doc streams" table
    hot to handle database size
    which way you recommend ? what are the best practices
    please see database table size
    can any one please send me step by step implementation?
    Thanks,
    kumar
    kkm

    First off, touching SharePoint database tables is completely unsupported.
    http://support.microsoft.com/kb/841057
    You shouldn't be making changes within the database at all and you're putting yourself out of support by doing so.
    AllDocStreams is your data. You need to have users clean up data, or move Site Collections to new Content Databases if you feel you need to reduce the size of the table itself.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SharePoint 2010 Content database growing too fast

    Hi,
    I have a SharePoint 2010 Content database wss_content_DB which is 197 GB BUT when I calculate my site collection I can see they have used only about 70 GB. I know there is Auditdata table which is about 27 GB. Couple of days ago my content DB was about 105
    GB and it Audit data log was set to unlimited once  I noticed that I set to 90 days since then it jumped to 197 GB.
     I have no idea what is going on.
     Now I need to know
     - why it is showing 197 GB in SQL server
     - How can I trim audit log
     -  Why suddenly it's increased to 197 GB from 105 GB
    Any help will be greatly appreciated.
     Abdul

    There is a way to deal with this table. There is an stsadm command (stsadm -o trimauditlog) as part of the infastructure update that will allow you to manage this data.
    #Powershell Script to trim old AuditData table records.
    $currentDate = Get-Date
    #Number of days we want to keep data in the table
    $NumberOfDays = -90
    $DateToDelete = $currentDate.AddDays($NumberOfDays)
    $DateString = ‘{0:yyyyMMdd}’ -f $DateToDelete
    $STSADMCMD = “stsadm -o trimauditlog -date $DateString -databasename WSS_ContentDB”
    invoke-expression “$STSADMCMD”
    WHY IT SUDDENLY INCREASED:
    Do this query on your SQL Instance: DBCC SQLPERF(logspace)
    This will show you how the size of LOGfiles (LDF) and how much is unused, if you have alot of unused space it indicates you dont have a recent DB backup - normally backup would write log data to MDF file .
    Normally you will not shrink DBs, only if you have deleted alot of data and you are not going to use space again so only do a shrink if you REALLY needs to.
    http://www.microsoft.com/en-us/download/details.aspx?id=24282

  • SharePoint content database size limit

    Hi All,
    I am just verifying whether my method is a right way to do it.
    I created a site collection and I am need to clone the sites. I tried Export/Import but the permissions are not copied as I use a third party tool for column level permission.
    The work around I found is to restore the site with new content database (all permissions are copied). I need to create 100 of those same exact site collection (for different users). I am planning on creating new content database within the same web
    application and resorting the site collection to the new content DB.
    Microsoft supports content DB of 4TB size.
    But my question is if I create multiple content DB (each does not exceed 200 MB) will there be any performance issue? Is it a right way to do it?
    100*200(MB) = close to 2 GB.
    I will be having 5 web application each with the 100 site collection and a content DB for each site collection with 200 MB.
    Is there anything wrong to do it this way?

    Hi Maddy.r,
    from the article it is stated the limit that 500 content database per farm.
    Limit                      
                            Maximum value                      
                            Limit type                      
                            Notes                      
    Number of content databases
    500 per farm
    Supported
    The maximum number of content databases per farm is 500. With 500 content databases per web application, end user operations such as opening the site or site collections are not affected. But administrative operations such as creating a new site collection
    will experience decrease in performance. We recommend that you use Windows PowerShell to manage the web application when a large number of content databases are present, because the management interface might become slow and difficult to navigate.
    sharepoint 2010 and 2013, have difference, and the capability for sharepoint 2013 is better than 2010.
    addition,
    i heard there is solution to have multiple farm instead, since the limitation is by farm, then if you able to create multiple farm, it may increase the bar for your environment limitation.
    http://www.informit.com/articles/article.aspx?p=2131832&seqNum=2
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SharePoint 2010 web analytics not working - not all web requests hitting the logging database

    Hi there, I have 2 windows 2008 web front end servers, 1 windows 2008 application server and 2 clustered windows 2008, SQL Server 2008 SP2 clustered servers in my farm. 
    I am having trouble getting Web Analytics configured and googled for days and followed everything I have found but still no luck.  The problem is that the logging database is only logging requests to Central admin URL only but if I hit any other
    site in my farm it doesn't log in the database.  Hence why I am not getting any reports in the front end. 
    These are also missing from the ULS logs too.  Only central admin entries in the logs.
    Anyone seen this before?
    Thanks

    Hi CharlieBoy,
    Please enable the verbose ULS log for category "Web Analytics Services category", then see if there are more related ULS log message appearing (may need to wait a day).
    Also check the following 2 articles about troubleshooting the web analytics issue, which should be helpful.
    http://blogs.msdn.com/b/sharepoint_strategery/archive/2012/03/16/troubleshooting-sharepoint-2010-web-analytics.aspx
    http://blogs.technet.com/b/manharsharma/archive/2012/10/13/sharepoint-2010-web-analytics-troubleshooting-reporting-db.aspx
    Thanks
    Daniel Yang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem rename sharepoint 2010 search service application admin database

    Hi all,
    i have a problem that hopefully someone has an answer to.  i am not too familiar with sharepoint so please excuse my ignorance.
    we have sharepoint 2010 on a windows 2008r2 server.  everything seems to work fine.  but as you know, the default database names are horrendous.  i have managed to rename all of them, except for the "search service application" admin
    database.
    the default is: Search_Service_Application_DB_<guid>
    the other 2 databases (crawl and property) were renamed without a problem.
    we are following the article from technet on how to rename the search service admin db (http://technet.microsoft.com/en-nz/library/ff851878%28en-us%29.aspx).  it says to enter the following command:
    $searchapp | Set-SPEnterpriseSearchServiceApplication -DatabaseName "new database name" -DatabaseServer "dbserver"
    however, i get an error about identity being null.  no big deal, i add the -Identity switch and the name of my search service application.  but the real problem comes the error it throws:
    Set-SPEnterpriseSearchServiceApplication : The requested database move was aborted as the associated search application is not paused.
    At line:1 char:54
    + $searchapp | Set-SPEnterpriseSearchServiceApplication <<<<  -Identity "Search Service Application" -DatabaseName "SharePoint2010_Search_Service_Application_DB" -DatabaseServer "dbserver"
        + CategoryInfo          : InvalidData: (Microsoft.Offic...viceApplication:
       SetSearchServiceApplication) [Set-SPEnterpriseSearchServiceApplication], I
      nvalidOperationException
        + FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.SetSearchS
       erviceApplication
    when i look at the crawling content sources, i see "Local SharePoint Sites" and it's status is Idle.  i even looked at this article on how to pause the search to no avail.  (http://technet.microsoft.com/en-us/library/ee808864.aspx)
    does someone know how i can rename my Search Service Applcation Admin database properly?  or at least "pause" that service so i can rename it?
    thank you all in advanced

    If you want to have no guids for your search admin db, i recommend you check out this script :)
    just delete your search service application (assuming you have just started)
    Alpesh Nakar's Blog
    Alpesh
    Just SharePoint Just SharePoint Updates
    SharePoint Conference Southeast Asia
    Oct 26-27 2010 Contributing Author
    SharePoint 2010 Unleashed
    MCTS: SharePoint 2010 Configuration
    MCITP: SharePoint 2010 Administrator

  • Databases running in compatibility range, upgrade recommended. Sharepoint 2010 SP2 after installing December 2013 CU

    I just installed December 2013 CU for Sharepoint 2010 with SP2.  I runned the Product Configuration Wizards a couple of time and exexute "PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures".
     But still I'm left with one database that is out of date.
    The following databases have versions that are older than the current SharePoint software, but are within the backwards compatible range: 
    Search_Services_Application_DB_0256be25a85b4c3081387181e4a8c6c7.
    Do you know what can I try next to fix this?
    Thanks!

    Hi Steve,
    In the Upgrade log what is the error when PSconfig attempts the Upgrade, I am assuming it completes with a warning?
    Cheers,
    -Ivan

  • Content Database Status Error in SharePoint 2010 Central Administration

    Hi,
    I am having a new problem with SharePoint 2010 on Windows Server 2008 R2. I have SQL Server 2008 R2 as SharePoint Database on Windows Server 2008 R2. I have total no. of
    Seven Content Databases for one Web Application. I found
    two of my Content Databases showing Error under the
    Database Status column in Manage Content Database section in
    Central Administration. Five Content Databases are showing
    Started.
    Would someone please guide how to resolve it and whats wrong is going on? 
    Thanks in advance.

    What is the output of:
    $db = Get-SPContentDatabase <error'ed db name>
    $db.Status
    And can you set it to Started?
    $db = Get-SPContentDatabase <error'ed db name>
    $db.Status = "Online"
    $db.Update()
    Trevor Seward, MCC
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Create a visual web part which get data from excel sheet and import it into sql server database in sharepoint 2010 (development)

    Hi,
    I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
    I want to do it using visual webpart.
    Please help to solve the issue.
    Thanks in advance!
    Regards
    Rajni

    Hi  Rajni,
    Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
    and import it to SQL  database.
    1.Create a Visual Web Part Project:Create
    Visual Web Parts in SharePoint 2010
    2.Read the excel workbook by using SPFile class:
    http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
    http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
    3.Export the excel workbook to SQL Server:
    http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to add new database server instance in Sharepoint 2010?

    I have installed SQL server 2012 BI edition and I have been trying to add new SQL Server reporting services in Sharepoint 2010 central admin .But When I click "ok "after giving the new SQL server name in the SQL Server reporting service creating
    process, I get an error stating "This user does not have permission on the SQL server".Though ,I have given this user dbcreator role on that particular database instance.Could you please help me out?

    Does the initial installation account used to set-up the farm have these permissions on the database?
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

Maybe you are looking for

  • How to update selected list items in SharePoint 2010?

    Hello All I have a list containing field named "Category". I want to develope a solution which will take two inputs: Old Category and New Category. The expected result is: all the list items will be fetched which have Old Category input value in thei

  • Can't delete folder I created in Home directory

    I created a music folder as an alternate to iTunes in my Home directory.  Recently it started acting funny: wouldn't open in finder, wouldn't allow me to rename it, and now won't let me move or delete it.  I tried unlocking it and checked that I have

  • Problems with PSE 8 Catalog

    I have been using PSE 7 and have about 8,000 photos in the catalog. I recently upgraded to PSE 8 and really like the product except that my catalog seems to become corrupted. I am not certain exactly whether this occured when I upgraded or subsequent

  • Excpetion while calling NewObjectArray 2 times

    I am calling a C++ method from another C++ code 2 times. First time, it works ok but second time, JVM throws an exception and terminates. Any idea ? It throws an exception while calling _env->NewObjectArray  I have posted relavant portion of my metho

  • Broken Phone, useless media card?

    I had device encryption enabled on my old blackberry, but now the keyboard won't work, so the device is pretty much useless! Is there a way I can put the card into my computer and read the data from it?  Otherwise, it looks like I'm going to lose al