Skip to main content
Trans Am

Todd Klindt's Blog

Go Search
Home
Blog
Reviews
Mycadm
Link
  

 Sharepoint Blog List

  Cornelius J. van Dyk [MVP]
  Joel Oleson
  Bill Simser [MVP]
  Bob Fox [MVP]
  Ben Curry [MVP]
  Andrew Connell [MVP]
  Bill English [MVP]
  SharePoint Team Blog
  Keith Bunge
  Michael Noel
  Shane Young [MVP]
  Dustin Miller [MVP]
  John Ross
  Muhanad Omar [MVP]
  To the SharePoint

 Free SharePoint software

  WSS with SP1
  Search Server Express
  MOSS with SP1 trial install
  WSS SDK
  MOSS SDK
  Community Kit for SharePoint
  Governance pack
  SharePoint 2007 Features
  SharePoint Debugger
  World clock Web Part
  Gary Lapointe's STSADM extensions
  STSADM Extension template
  Visual Studio 2005 Extensions
  MOSS VHD download
  Davcopy
  Deployment Wizard
Todd Klindt's home page > Todd Klindt's Blog
What's going on with TK.
A better way to enumerate E-mail enabled lists
A while back I wrote a crappy command line utility to expose the lists that have Incoming E-Mail enabled.  Out of the box there is no way to determine all of them.  The utility I wrote works, but since I can't program it doesn't work great, and it could use some polish.  I talked to my buddy Gary Lapointe and talked him into adding the functionality to his already impressive list of STSADM extensions.  He recentlyblogged about it.  If you have been using my utility delete it immediately and use Gary's instead.  You should be using his extensions anyway.  :)
 
tk
Does SharePoint support SQL 2008?  Heck yeah!

Now that SQL 2008 is released and there are trials available I've seen quite a few people ask if it can be used with SharePoint 2007. My word is completely unofficial, but yes, it does. As of right now there is no official word from Microsoft about the supportability, but I expect one will be out shortly.

Now that we have that out of the way, you may be asking yourself why you would want to use SQL 2008 in your SharePoint environment. There's a whole bunch of great reasons. SQL 2008 has many general enhancements like better performance and so on, but there are a few specific things I wanted to mention. The first is compression. SQL 2008 supports compressing backups out of the box. This means smaller backup files, but it also means less bandwidth needed for things like log shipping. If you are using SharePoint's native catastrophic backups you can take advantage of this too. You have the option of choosing compression per backup job and you can set a default at the server level.

 

If you set the default to compress backups, when you do catastrophic backups in SharePoint, the database part will be compressed. Here are two backups I did moments apart, the first without compression enabled, the second with it enabled.

Notice the largest database backup file is 59 MB. Here's the same Farm backed up with the Compress backup set as the default to the server:

The same database backup is now just under 12 MB. The size of the folder went from 88 MB in the first back to 23 MB in the second. Thre's nothing else to it. Pretty nice for built in functionality.

I have plans for more SQL based blog entries in the future, stay tuned.

tk

p.s.  Microsoft released an official support statement for SQL 2008 on the SharePoint team blog.

A new "must read" SharePoint blog
I've added a new blog to my daily reading and I figured you guys might be interested in it too.  It's the called To the SharePoint and it's from the SharePoint IT Pro Documentation team at Microsoft.  A couple friends of mine, Susan Potter and Carolyn Rowe and the main contributors.  If you're an IT Pro there is some great content there.  Go ahead and add it to your blog roll, you'll be glad to did.
 
tk
A few notes about STSADM –o migrateuser

As those of you that have seen me present know, I do a lot with STSADM. I find it to be an incredibly useful tool for large deployments, and pretty handy for smaller ones too. I've seen a few questions on how the migrateuser operation works, so I thought I'd write a little something up. Its purpose is to move permissions from one account to another. One scenario would be if a domain was being split up. You would want the new accounts to have the same permission as the old accounts. Another use would be accountname changes. If someone's account is renamed you don't want to have to grant them permission to all of the same resources. The usage for migrateuser is pretty simple. Let's take a look:

You just supply it with the old account and the new account and that's it. If you're not migrating from one domain to another you can tell it to ignore SID history as well. Some of migrateuser's behavior isn't obvious, so I thought I'd spell some of it out. Here is a crude flowchart (I didn't do well in art in grade school) that shows the logic migrateuser uses:

 

Ugly, I know. The main thing I want you to take away from this is that if domain\newuser has any permissions before you run migrateuser, they will be gone and replaced with the permissions domain\olduser had. They will not be combined. To demonstrate how this works I've created a site collection and given domain\newuser and domain\olduser permissions. Domain\newuser is in the Owners group while domain\olduser is simply in the Vistors group. You can see the information in SQL in this "before" picture:

Here are the two entries for domain\newuser and domain\olduser in the UserInfo table. You can see they each have their own tp_ID and their tp_Tokens are different. This token is where their permissions are stored. In the before picture they are different. I ran this command to migrate from domain\olduser to domain\newuser:

Pretty simple, nothing too it. STSADM is finished in a flash. Now let's refresh SQL and see what changes have been made:

There are a couple of things to note here. First, note tp_ID 9 has a tp_Login value of domain\newuser instead of domain\olduser in the previous screenshot. Essentially migrateuser just changed the value. Next you'll notice the tp_Token is the same as it was before. It was not changed to domain\newuser's nor were the two combined. Finally you'll see that domain\newuser's previous tp_ID, 8, is now marked as Deleted. That's the first step in the flowchart.

Besides removing all of domain\newuser's permissions, migrateuser has another "gotcha." Since it deletes domain\newuser's permissions before it maps them to domain\olduser's permissions (even if there are no domain\olduser permissions to map) there is a split second where it's possible that no one has permission. This is the case with Site Owners. If domain\newuser is the only Site Owner (meaning a secondary wasn't defined) then after migrateuser deletes it, the Site now has no Owner and cannot be administrated. I have not seen a way to recover from that. The site still renders, and users can still use it, but no administrative tasks can be done. In both cases that I've seen this I've had to recover the site from a backup. There may be a way to fix this in SQL, but I would recommendation against editing SQL by hand.

I hope this helps you understand the migrateuser operation a little better.

tk

Meet me in Minneapolis

It's my pleasure to have been asked to participate in the Minnesota SharePoint User Group's August meeting. On August 13th I'll be part of a panel that will be fielding questions and generally telling everyone how great SharePoint is. It would be great if you could come by. The details are here. The meeting starts at 8:30 at the Microsoft office in Bloomington. Hope to see you there.

tk

Watch where you put your ULS logs

In SharePoint 2007 you can customize where your ULS logs are saved on the file system of your WFEs. Some people like to keep their C drives clean so they move the ULS logs to another location. You can do that through Central Admin > Operations.

Clicking Diagnostic logging takes you to this screen, where you put the path in:

 

 

Click OK and your logs are moved. Pretty cool, huh? Well, there is a gotcha. Since you configure that in the Operations tab it applies to all of the servers in your farm. Every single one. The Logs directory on all of your servers will be the same, whether they need it or not. Another part of this gotcha is that if a server doesn't have the directory (like no D drive in the example above) the Logs just vanish. So if you choose to move your ULS log folder, make sure the path exists on all of your servers.

tk

Renewed!
Thankfully my MVP status was renewed for another year.  Thanks to everyone that's contributed to my blog or let me speak at their gatherings.  I really appreciate it.
 
tk
See me in person!
I'll be presenting at the Iowa Dot Net UG tomorrow night.  If you're local, come on down.  I'm trying to spin up some SharePoint excitement there, so come on down and help out.
 
tk
Slides from TechEd
Sorry for the late post, but here are the slide decks from TechEd '08 in Orlando.  I had a great time, and met a lot of great people.   Thanks guys.
 
 
(this has the SharePoint conference template, but it's the same slides.)
 
Again, thanks for the great times everyone.  I hope to see you all again.
 
tk
Heading to TechEd
Tomorrow I'm flying to Orlando for TechEd IT Pro.  Here's a rundown of the sessions I'll be presenting:
 
 
IT Conference OFC59-TLC Administering Microsoft SharePoint Products and Technologies 2007 Using a Command-Line Interface: STSADM.EXE
Session Day/Time: 6/11/2008 10:15AM-11:30AM
Room: Green Theater 1
 
IT Conference OFC55-TLC Ask the Experts: SharePoint Panel - Meet the SharePoint Consultants and Architects
Session Day/Time: 6/12/2008 12:00PM-12:45PM
Room: Green Theater 1
 
IT Conference PRC20 SharePoint Upgrade: Hands-on Guidance, Best Practices, and Techniques
Session Day/Time: 6/9/2008 9:30AM-6:00PM
Room: N210 E
 
IT Conference OFC378 How to Take SharePoint Administration to The Next Level With Windows 2008 and SQL 2008
Session Day/Time: 6/13/2008 2:45PM-4:00PM
Room: N310 A
 
IT Conference OFC357 How to Plan for SharePoint Storage Management for Multi-Terabyte Deployment
Session Day/Time: 6/13/2008 4:30PM-5:45PM
Room: S220 E
 
IT Conference OFC350 Monitoring Strategies for Microsoft SharePoint Server in the Enterprise
Session Day/Time: 6/12/2008 10:15AM-11:30AM
Room: S320 E

If you see me in the crowd, say Hi.  I'm this goofy looking guy:

me

See you in Orlando.

tk

 

1 - 10 Next

 Upcoming Events

9/8/2008 12:00 AM   SE Forum 2008 
I'll be presenting a few sessions for my friends in Sweden.  You can find more information here, http://www.seforum.se/Pages/default.aspx
 
tk

 ‭(Hidden)‬ Admin Links

 Buy my Book!

Ever wonder what a SharePoint smarty does in his free time? We write blog entries and books. One of the books I was fortunate enough to work has hit the shelves. You can pick up Real World SharePoint 2007: Indispensable Experiences From 16 MOSS and WSS MVPs on Amazon.com. The book is filled with all kinds of great information on a wide variety of SharePoint aspects. There's something in there for admins, developers and even end users. As is in the Wrox tradition, all of our pictures appear on the cover. Here's what to look for:

Click for a full size picture

If you buy books at brick and mortar stores, please ask them to carry it. My baby's gotta eat!

After you grab the book head over to the Wrox forums or post here and let me know what you think.

tk