Posts

Top Software Houses in Pakistan 2014

Image
Which one is the best Software Company in Pakistan? NetSol Technologies Ovex Technologies TRG Tech System Pvt Ltd Elixir Tech Ibds Tera Data Enterprise DB (Fusion Itech.) Kalsoft Si3 System Innovations Mentor Graphics Xavor Corporation CureMD Datum Square Macrosoft Pakistan i2c Inc Techlogix Mindstorm Studios Gameview Studios   

Get user profile properties in SharePoint with Javascript/Jquery object model

Hello, This post will show you, how you can a ccess theuser profile information in SharePoint with javascript using client object model. Thanks to  Alexander for writing this post  as it was much helpful. Insert this code in a CEWP 1 <script type= "text/javascript" src= "https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" ></script> 2 <script type= "text/javascript"   src= "/test/EMSKJS/spjs-utility.js" ></script> 3 <script type= "text/javascript" > 4   5 var   userInfoObj = getUserInfo_v2(_spUserId); 6 var   name = userInfoObj.Title; 7 var   email = userInfoObj.EMail; 8 </script> I have incorporated the new The parameter “_spUserId” is provided by SharePoint and represents the current user’s userID. The function takes one argument which can be a userID or a login name (domainlogin or appname:user). If you use domainuser a...

How to take backup and restore a SharePoint site or subsite (Not Site Collection)

Use this.. Enjoy :) Export - spweb – identity http : //sp2010:8083/abc -path c:\sitebkup\mysite.bak Import - SPWeb – identity http : //sp2010:8083/ict -path c:\sitebkup\mysite.bak

Confluence SharePoint Connector Error

Hello! While wrestling with Confluence and SharePoint i got following error in my ULS logs. I Google it and found that the machine key is not same across all of my servers in the farm. I move ahead and checked it manually and found the machine key is identical across all the servers. After contacting Atlassian support i found that i need to remove some configuration from my database. They provided a workaround and it worked like a magic for me. Error: Unable to decrypt persisted value (SPCONTEXT: Current User: XXXXXXXX\XXXXXXXX, Current Web Application: SharePoint - XXXXXXXX.XXXXXXXX.com80, Current URL: http://XXXXXXXX.XXXXXXXX.com/_layouts/Atlassian/ConfluenceSettings.aspx, User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; MS-RTC EA 2)): System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --...

SharePoint 2010 PowerShell Script to restart a Search query component

Following is the code. $SearchApp = Get-SPEnterpriseSearchServiceApplication -identity "Search Service Application" $SearchApp | Get-SPEnterpriseSearchQueryTopology | Get-SPEnterpriseSearchQueryComponent | Where-Object {$_.ServerName -eq 'NT-IRVA-1446'} | Restart-SPEnterpriseSearchQueryComponent

How to copy data from one table to another in SQL Server 2008

How to copy data from one table to another in SQL Server 2008 insert into MultiMedia.dbo.MovieSongs(Col1,Col2,Col3) select Col1,Col2,Col3 colums from MultiMedia_Temp.dbo.MovieSongs

How to get data in temp table and then copy it to another table in SQL Server

How to copy data from temp table in SQL server 2008? with MovieSlice as           (                 select  moviestock .moviesuffix,count( moviesongs.id_song) as songsCount from  moviestock inner join moviesongs on  moviestock .moviesuffix = moviesongs.moviesuffix group by  moviestock .moviesuffix     )     UPDATE      MovieStock SET      MovieStock .songsCount = MovieSlice.songsCount FROM      MovieStock INNER JOIN     MovieSlice ON     MovieSlice.moviesuffix =  MovieStock .moviesuffix