Stopwatch class in .Net to log how much time it took for a code to run

31. August 2010
How many times have you wished to log how long a particular piece of code took to execute?  Maybe you are trying to track average request time or some such metric, or maybe send a warning message when a stored procedure takes longer than 1 second to execute. Well, you could do it with DateTime like so: 1: DateTime start = DateTime... [More]

Better Coding

Iftari and Sehri Deals in Lahore Pakistan – Year 2010

14. August 2010
Special Azadi Treat !!! Here is an exclusive list of all Iftari and Sehri deals across eating places in Lahore. Enjoy!   Iftari and Sehri Deals

Pakistan

SQL Server: Get Accurate Count of Rows for Large Tables

11. August 2010
Here is the query which is not only quick but reliable enough to retrieve accurate number of rows in a very large table like a table with 2,000,000,000,000+ rows table :)     SELECT SUM (row_count) FROM sys.dm_db_partition_stats WHERE object_id=OBJECT_ID('<table name>') AND (index_id=0 or index_id=1);

SQL Server

Tax Calculator for Salaried People for Year 2010-2011

5. August 2010
    Click here to download Microsoft Excel based Calculator for FREE!!!

Pakistan

How to show or add scroll bar in SharePoint Web Parts

5. August 2010
In order to display scroll bar in SharePoint list view web parts, a simple trick is to use jQuery. Following is the sample code that you can add in a hidden content editor web part that will add scroll bar in the given ID’s of the web parts on that page:   <script src="http://code.jquery.com/jquery-latest.min.js"></scr... [More]

SharePoint

How to locate version info of SharePoint

13. July 2010
A very nice and comprehensive post to show every possible (and latest) info regarding your SharePoint version related queries: How to Locate Version Info of SharePoint

SharePoint

SharePoint preupgradecheck error "An error occurred while parsing entity name"

23. June 2010
If you get stsadm –o preupgradecheck abort message saying something like “An error occurred while parsing entity name” then fear not and go to …\12\CONFIG\PreUpgradeCheck folder and look for the rules files. Now based on the error message, you can locate which rule went bizzerk. You can either fix your farm setting for example, may be aga... [More]

SharePoint

What is “Document Center” in SharePoint

4. June 2010
“Document Center” in SharePoint solves a common problem: How to make specific files available to a large group of users without giving them access to other files. For example, in a project site with 100 files, one of these files is a final report and should be made available to all other users. Instead of modifying the permissions for this final re... [More]

SharePoint

How to change hard coded URLs in InfoPath form templates, Universal Data Connection (UDC) files, and content types for specific scenarios in SharePoint

3. June 2010
Microsoft has provided a very neat tool which allows a SharePoint farm administrator to change hard coded URLs in InfoPath form templates, Universal Data Connection (UDC) files, and content types in SharePoint for specific scenarios. You can download this tool using following URL: Tool to change hard coded URLs in SharePoint

DIFFERENCE BETWEEN SHAREPOINT FOUNDATION AND SHAREPOINT SERVER

3. June 2010
Regarding “SharePoint Foundation” and “SharePoint Server 2010”, the important thing to understand is that SharePoint Foundation is the foundation, and SharePoint Server is simply an optional add-on package of more advanced features. In fact, you cannot install SharePoint Server by itself, because installing it automatically also installs SharePoint... [More]

SharePoint

List of all SharePoint 2010 Power Shell Commands

17. May 2010
To get a list of all SharePoint 2010 Power Shell commands, please do the following: In the SharePoint 2010 Management Console enter the following code Get-Command –PSSnapin “Microsoft.SharePoint.PowerShell” | format-table name > C:\SP2010_PowerShell_Commands.txt

SharePoint

Birds Need YOU this Summer

13. May 2010

Thought Process

How to change New icon duration in SharePoint

12. May 2010
!New icon in SharePoint is used to indicate newly added list items. It is used as a visual clue for users. Default duration of this icon is 2 days. Fortunately, using stsadm we can update that duration or even get rid of it, if required. To Change Duration: You can run stsadm.exe by using the following syntax, where Number_Of_Days is the number o... [More]

SharePoint

AllowAutomaticASPXPageIndexing attribute is not declared SharePoint Content Migration Error

5. May 2010
If you get 'AllowAutomaticASPXPageIndexing' attribute is not declared error while using SharePoint STSADM import and export or doing data migration using SharePoint content migration API, please make sure the service packs from the source and destination servers are same. Having different service packs could cause this problem. There is also a ho... [More]

SharePoint

ESPN STAR Showing T-20 World Cup Live for FREE

1. May 2010
Check it out.... No need to pay!... http://www.espnstar.com/livetv/ You can also try out other live streaming options as well as shown in below post:  http://www.beyondweblogs.com/post/Live-Cricket-Streaming-Watch-20-20-World-Cup-on-Internet.aspx