To Create Search Service Application Using Existing Search Administration Database

$saAppPoolName = “Search App Pool” # Search Specifics, we are single server farm $searchServerName = (Get-ChildItem env:computername).value $serviceAppName = “Search Service Application” $searchDBName = “MSDEV01_SearchAdmin” # Grab the Appplication Pool for Service Application Endpoint $saAppPool = Get-SPServiceApplicationPool $saAppPoolName # Start Search Service Instances Write-Host “Starting Search Service Instances…” Start-SPEnterpriseSearchServiceInstance $searchServerName Start-SPEnterpriseSearchQueryAndSiteSettingsServiceInstance $searchServerName # Create the…


Azure media player streaming not working on Windows Server

Recently i came across a problem where while running azure media player in I.E 11 and on windows server, the video streams for 5 seconds and then stops streaming.    Solution for this problem is : in the Run window type “Services.msc”  and start “Windows Audio” service.  This will resolve the streaming issue. 


SharePoint 2013 App – Accessing SharePoint List

If you have created a list inside your SharePoint 2013 App project. Right now there is no direct navigation to the list. Only option available is to navigate directly through url of the list. ie.  http://Site Url/App Name/Lists/List Name   Other way to give user access to your list for CRUD operation is by adding…


SharePoint 2013 Customizing Suite Bar

  Before we start customizing the top bar lets get familiar with controls.   The top bar shows: 1. The Branding Title or Logo  2. Suite Bar with Links i.e Newsfeed, SkyDrive, Site 3. Welcome Control Suite bar is designed as an out-of-the-box delegate control.   Now I will explain adding my own link called…


Processing Xml Data in SQL Server

Processing Xml Data in SQL Server. The below code demonstrates the use of xml data as input and converting xml data into temporary table. Declare @xmlData xml = ‘<Root><ParentElement GuidanceKitId=”4ffbfee7-0878-4c67-9003-89e0b29b4684″ LocaleId=”920″></ParentElement><ParentElement GuidanceKitId=”d65ddd7d-cb99-e111-96e5-00155d16e526″ LocaleId=”123″></ParentElement></Root>’ DECLARE @handle INT;   EXEC sp_xml_preparedocument @handle OUTPUT, @xmlData; SELECT cast(GuidanceKitId as uniqueidentifier) GuidanceKitId, cast(LocaleId as int) LocaleId, 5 GuidanceKitRowId — Constant…


JavaScript Basics

  Getting Id of the Checkbox in JavaScript The below code snippet demonstrates toggling : On selecting one checkbox the other checkbox if selected gets unselected and vice-versa. 1: <script type="text/javascript" language=javascript> 2:  3: function fn() { 4: var checkbox = document.getElementById(‘<%= cbx1.ClientID %>’); 5: if (checkbox != null && checkbox.checked == true) { 6:…


Enabling Win 7 Desktop Experience on Windows Server 2008

  The below steps explain enabling Win 7 look and feel on Windows Server 2008.   Step 1: Go to  Start Button –> Right click on Computer –> Click on Properties –> Click on Advanced System Settings on right side.     System Properties window will open. On Advanced Tab click on Settings button for…


SharePoint Site Provisioning with SharePoint Object Model

  The below code can be re-used as is for creating any number of Site Collections and Sub sites. The code is provided for two of the scenarios: Case 1: Creating Site Collection and Sub Sites Inside It Case 2: Adding Sub Site to already existing Site Collection/Sub Site   Step 1: Microsoft.SharePoint DLL should…


Information Rights Management (IRM): There was a problem when trying to find the enterprise Rights Management Services (RMS) server

  We had a data migration project where we had to migrate the data from Documentum to SharePoint. During content uploading (documents) to the Document Library an error used to get logged in ULS logs with  the below details: “Information Rights Management (IRM): There was a problem when trying to find the enterprise Rights Management Services (RMS) server….


To enable "Show Tool Bar" option in Document Web Part through Code

I am going to explain a scenario where I had an OOB Document Web Part in one of my page and from code i had to enable the “Show Tool Bar” for that Web Part. The scenario can be achieved through reflection. The code is given below. splist -> The Document Library List webpartID -> Id of the Document…