Archive for 'Technology'

Got an iPad

Posted on 07. Apr, 2010 by .

0

While vacationing down in the Florida keys I took a short two hour drive up to The Falls shopping center in Miami to pickup a 32 GB ipad! First impressions are very positive. The device has a very snappy feel, much more responsive when browsing the internet than on my 3GS (which consequently I also love). The only negative at the moment is the lack of apps support for the ipad. Many of my favorites have not yet been optimized for the iPad, and while they work in iPhone compatibility mode, the fact that a hundredth of the ipads screen real estate gets used is disappointing. I am sure now that the device is shipping it will not be long before the apps follow.

Bookmark and Share

Continue Reading

Windows 7 Preview Pane

Posted on 02. Mar, 2010 by .

0

First off, I didn’t even realize that Vista had a Preview Pane feature, but today I had the need to quickly glance through several Word documents and was trying to find a way to quickly preview the contents. I noticed an icon within Explorer in the upper right that looked like a preview button and wha-la! I haven’t tried for other file types yet but for Word documents the experience is fantastic.

Gizmodo has additional info here: http://gizmodo.com/5140434/win-7-tip-windows-explorer-preview-pane-works-much-better-than-vistas

Bookmark and Share

Continue Reading

Free Expression Encoder 3 For Up To 10 Minutes

Posted on 02. Feb, 2010 by .

0

Microsoft has released a free version of Expression Encoder which can be used to create screencasts up to 10 minutes in length!  You can include video and audio with the screen cast recording.  I played with this a bit this week and the performance and quality of results are very impressive.  Download it here.

Bookmark and Share

Continue Reading

Truncating Transaction Logs in SQL 2008

Posted on 29. Jan, 2010 by .

8

One of my clients is beginning to migrate to SQL 2008 for their SharePoint farms.  In the past, we have used scripts to truncate the transaction logs and shrink the DBs in the non-production environments using the “BACKUP LOG [dbname] WITH TRUNCATE_ONLY” command.  As you may be aware, the “WITH TRUNCATE_ONLY” option has been deprecated in SQL 2008.  In SQL 2008 instead you need to change the recovery mode of the database to SIMPLE and then back to FULL in order to truncate the log (or perform a backup of the log of course).  In production environments obviously backing up the transaction log often is the best strategy, however in non-production environments that isn’t always feasible.  I wrote the following script for this client to truncate the log all databases other than the system ones. 

Enjoy!

DECLARE @DatabaseNames TABLE
(
	name varchar(255)
)

INSERT INTO @DatabaseNames
SELECT name FROM sys.databases WHERE
name NOT IN ( 'master', 'model', 'msdb', 'tempdb' )

DECLARE DatabaseCursor CURSOR FOR
SELECT * FROM @DatabaseNames

OPEN DatabaseCursor

DECLARE @DatabaseName varchar(255)
DECLARE @LogFileName varchar(255)
DECLARE @SqlStatement varchar(2000)

FETCH NEXT FROM DatabaseCursor INTO @DatabaseName

WHILE @@FETCH_STATUS=0
BEGIN
	PRINT '----------------------------------------------------------'
	PRINT 'Processing database ' + @DatabaseName
	PRINT '----------------------------------------------------------'

	SET @SqlStatement = 'ALTER DATABASE [' + @DatabaseName +
		'] SET RECOVERY SIMPLE'

	PRINT @SqlStatement
	EXEC (@SqlStatement)

	SET @LogFileName =
		(
			SELECT b.name
			FROM sys.databases a
			INNER JOIN sys.master_files b ON
				a.database_id = b.database_id
			WHERE
				a.name = @DatabaseName
				AND b.name LIKE '%log')

	PRINT @LogFileName

	SET @SqlStatement = 'USE [' + @DatabaseName +
		'] DBCC SHRINKFILE(N''' + @LogFileName + ''', 1)'

	PRINT @SqlStatement
	EXEC (@SqlStatement)

	SET @SqlStatement = 'ALTER DATABASE [' + @DatabaseName +
		'] SET RECOVERY FULL'

	PRINT @SqlStatement
	EXEC (@SqlStatement)

	FETCH NEXT FROM DatabaseCursor INTO @DatabaseName
END

CLOSE DatabaseCursor
DEALLOCATE DatabaseCursor
Bookmark and Share

Continue Reading

User Profile Import Stuck

Posted on 26. Jan, 2010 by .

0

A client had an issue today with user profile imports being “stuck”.  In one instance (the production instance) the profile import was stuck actually performing the import, in the non-production instance it was stuck on “Enumerating”.  Found a great article by Henrik Andersson to fix the issue.  Here is what he posted as the fix:

Open the registry editor. Browse to “HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice Server12.0SearchApplications”. Here you will find a key for each SSP in the farm. Drill down to "GatherProfileImportContentSources" (which is the Full Import) and check the key “CrawlNumberInProgress”. If it´s not “0xffffffff” then the number displayed corresponds to a key under the branch “HKEY_LOCAL_MACHINESOFTWAREMicrosoftOffice Server12.0SearchApplications\GatherProfileImportCrawls”.
I changed the number in the key “CrawlNumberInProgress” to “0xffffffff” and then restarted the “Office SharePoint Server Search” service for the settings to be applied.

Bookmark and Share

Continue Reading

Migrating Subsites to New Site Collections

Posted on 23. Sep, 2009 by .

1

I am currently working on a project to split up a single site collection to multiple site collections.  There are multiple reasons for doing so, and there are useful blog posts dedicated to the topic of whether to use multiple site collections or subsites.  In this instance, the primary driver for using multiple site collections is to get the desired scoping functionality the customer would like for Nintex Reporting 2008.

Tackling the job of migrating from subsites to new site collections is no trivial task.  There are however, some COTS products specifically tailored to this case:

Unfortunately, I did not have the luxury of using one of these purpose-built tools for this endeavor.  Instead, I have relied on Gary Lapointe’s fantastic stsadm extensions.  Specifically, the following:

  • gl-convertsubsitetositecollection – this one does all of the heavy lifting, using the SharePoint Content Migration API.
  • gl-replacewebpartcontent – this allows you to use regex patterns to search and replace links that are in content editor web parts
  • gl-copynavigation – because the new site collections create their own global navigation, I set the global navigation of the root (/) site collection to be all manual links, and use this extension operation to copy that navigation to the new site collection
  • gl-addsiteadmin – add site collection administrators to the site collections easily

These commands have been grouped into a batch file which will handle each step of the migration process.  This has worked pretty well.  The batch file is executed through a Scheduled Task as the process often can exceed 24 hours in runtime so executing through RDP is not an option. 

The last utility I have made use of for this effort is bmail from Beyond Logic.  This is a simple command-line SMTP mailer which is used at the end of the conversion batch file to notify me that the process is complete.  This saves me the trouble of having to login to the server several times a day to check on progress.

Have I missed any utilities that you find useful for similar work?  If so, please comment!

Bookmark and Share

Continue Reading

“Object reference not set to an instance of an object” executing STSADM commands

Posted on 24. Aug, 2009 by .

3

If you are attempting to execute STSADM commands, and are receiving the ominous “Object reference not set to an instance of an object” error, make sure that the user account that are using to execute STSADM has permissions to the SQL database.  I ran into an issue today where the domain account had permissions to the WFE but not to the SQL server, and whereas I could work in Central Admin, and perform other Farm Administrator duties, STSADM commands were failing with the above error.  Once my account was added to the local Administrators group of the SQL server the STSADM commands executed without fail.

Bookmark and Share

Continue Reading

Promising SharePoint projects on CodePlex

Posted on 18. Jun, 2009 by .

1

I spent some time on CodePlex today researching the latest open-source SharePoint projects.  I probably haven’t peeked through CodePlex in the past 6 months, and I was very encouraged by the quantity of projects out there.  Following are the ones of particular interest to me:

SharePoint Content Deployment Wizard

http://spdeploymentwizard.codeplex.com/

The SharePoint Content Deployment Wizard is a tool for SharePoint 2007 which provides the means to deploy the following content:
- site collections
- webs
- lists
- folders
- list items (including files)
Content is exported using the Content Migration API (PRIME) as a .cmp file (Content Migration Package) which can be copied to other servers for import. Unlike the out-of-the-box tools, the Wizard allows *granular* selection of content via a treeview.

 

SharePoint Access Checker Web Part

http://accesschecker.codeplex.com/

Quickly check what objects within a Sharepoint site hierarchy a user has access to.

The Access Checker Web Part is a Windows Sharepoint Services Web Part, for use within Windows Sharepoint Services v3 and Microsoft Office Sharepoint Server 2007, that displays a tree view showing permissions on objects for a user scoped to a Site hierarchy. It also has a second mode which will show the permission inheritance of objects within a Site hierarchy.

 

 

SharePoint ULS Log Viewer

http://ulsviewer.codeplex.com/

A windows application for viewing SharePoint ULS log files more easily. Supports filtering and easy viewing of data.

SLAM! SharePoint List Association Manager

http://slam.codeplex.com/

Most developers who have used SharePoint as an application development framework have run into the realization that SharePoint is NOT a relational database. In fact, the accepted wisdom is if you need relational tables, use ASP.NET/SQL straight-up, not SharePoint.

Enter SharePoint List Association Manager (SLAM). In short it allows you to define relationships (one to one, one to many, many to many) between SharePoint lists (or Content Types) and then leverage those relationships in webparts or custom field types using familiar and straight forward SQL queries.

Have I missed any?  Please comment if there is a “must have” (except WSPBuilder of course, everyone knows that :-) ) I have omitted!

Bookmark and Share

Continue Reading

Visual Studio 2010 Beta 1 Installed on Windows 7 RC

Posted on 27. May, 2009 by .

0

Today I installed Visual Studio 2010 Professional Beta 1 on the Windows 7 RC running in VMWare Workstation 6.5.  Special thanks to Miha Markič for this tip regarding disabling 3D graphics acceleration in VMWare.  This is what the top bar of Visual Studio looked like before that change:

image

And this is what it looks like after:

image

Much better!  In any event, if you haven’t seen it yet, here is the new VS2010 start screen:

Visual Studio 2010 Welcome

Pretty clean looking.  One of the very first things I looked for in this version is to make sure it can target the 2.0 Framework, and sure enough, support for 2.0, 3.0, 3.5, and 4.0.  Very cool.  Stay tuned for more updates as I get a chance to play around with this some more.

Bookmark and Share

Continue Reading

Microsoft SharePoint Team Blog : Attention: Important Information on Service Pack 2

Posted on 26. May, 2009 by .

0

Microsoft’s SharePoint team has announced that there is a bug in Service Pack 2 for MOSS that will trigger SharePoint to believe it is a trial instance of the product.  A workaround is supplied by Microsoft:

We are working to release a hotfix to automatically fix this issue. A manual work-around is currently available and involves customers re-entering their Product ID number (PID) on the Convert License Type page in Central Administration.  For more information and detailed steps please read this KB article.

In addition, Microsoft is working on a hotfix to be released shortly.  More information can be found on the Microsoft SharePoint Team Blog:

Microsoft SharePoint Team Blog : Attention: Important Information on Service Pack 2

Bookmark and Share

Continue Reading