Month: June 2011

Service Pack 1 for SharePoint 2010 Products is Now Available for Download‏

Let the good times roll… http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=984 Some of the much awaited features: Site Recycle Bin Service Pack 1 will introduce long awaited Site Recycle Bin functionality that enables self-service recovery of site collections and sites. Shallow Copy If you’re using Remote BLOB Storage you’ve probably realized that when moving Site Collections (Move-SPSite) between content databases each unit of unstructured data (BLOB) was round tripped (I.e. uploaded and subsequently downloaded again) serially during the move. StorMan.aspx In Service Pack 1 we are bringing back an improved StorMan.aspx, enabling users to better understand where their quota is going and act upon that information to reduce the size of their...

Read More

SharePoint 2010–Powershell to determine Database Sizes in Farm

Earlier I wrote about how to use Powershell to dump out the Site Collection Storage Usage for a Farm, and this works well for when you want to analyze your farm usage in terms of capacity management and being able to manage your Site Collections, but one of the other key areas of SharePoint operations is to backup those site collections and know that you’ve got enough space for your backups and restores.  In this case you’ll want to become familiar with a couple different PowerShell commandlets, Get-SPContentDatabase (for only content databases) and Get-SPDatabase (for all databases in the farm). The first step is to grab a database and pipe it through the Get-Method in order to explore what items are available to us: $db = GetSPContentDatabase WSS_Content $db | Get-Method And again we’ll get a nice list of objects in the $db TypeName: Microsoft.SharePoint.Administration.SPContentDatabase Name                                MemberType    Definition —-                                ———-    ———- Type                                AliasProperty Type = TypeName AddBackupObjects                    Method        System.Void AddBackupObjects(Microsoft.SharePoint.Administration.B… AddFailoverServiceInstance          Method        System.Void AddFailoverServiceInstance(string failoverServerInstance) ChangeDatabaseInstance              Method        System.Void ChangeDatabaseInstance(string databaseServiceInstance)… Clone                               Method        System.Object Clone() Delete                              Method        System.Void Delete() … DiskSizeRequired                    Property      System.UInt64 DiskSizeRequired {get;} … Username                            Property      System.String Username {get;set;} Version                             Property      System.Int64 Version {get;} WarningSiteCount                    Property      System.Int32 WarningSiteCount {get;set;} WebApplication                      Property      Microsoft.SharePoint.Administration.SPWebApplication WebApplicatio… Now, from here we know we’re going to use the Get-SPDatabase in combination with the DiskSizeRequired property to list out all the database in...

Read More

SharePoint 2010–RSS Feeds

By now, everyone is probably familiar with the RSS icon… RSS has a couple definitions… originally called RDF Site Summary or Rich Site Summary, eventually everyone started calling it “Really Simple Syndication”.  If you really want to get technical you can read all the latest specifications at the RSS Advisory board site here: http://www.rssboard.org/rss-specification RSS feeds benefit publishers by letting them syndicate content automatically. A standardized XML file format allows the information to be published once and viewed by many different programs. They benefit readers who want to subscribe to timely updates from favorite websites or to aggregate feeds from many sites into one place. Also very useful when you want to add fresh content to your own website by pulling from another site’s RSS feed and displaying the information to your viewers!  Updated content without the hassle of writing it. Generally there are two types of RSS Feed: Internal or External. Implementation: Internal RSS Feed Web Part: Any RSS Feed link (xml) which is hosted inside a company intranet is categorized as a RSS Feed internal link. SharePoint servers’ security can be configured in two ways: Kerberos or NTLM. If Kerberos authentication in configured (enabled) on your SharePoint server then you can use an out of the box RSSViewer Web Part to render an RSS feed coming from the internal RSS feed link. To enable Kerberos authentication on...

Read More

SharePoint 2010 | Using DataFormWebPart to Display File Attachments

Creating a site for a business unit and they wanted to display an attachments link for certain list items in a custom built DataFormWebPart.  Seemed pretty straightforward to just add the attachment column to the DataFormWebPart, however when rendered it was a yes/no value, not very useful as we don’t care IF there is an attachment, we want the link to the attachment. So instead of this column, we can crack open the XSL Editor and the following to our DataFormWebPart to display the attachment button: <SharePoint:AttachmentButton ControlMode="Edit" Enabled="true" ItemId="{@ID}" runat="server" Visible="false"/> <SharePoint:AttachmentsField ControlMode="Display" ItemId="{@ID}" EnableViewState="true" FieldName="Attachments"...

Read More