Scott Lock's Blog

Building the .Net Community through Caparea.Net, Consulting, and no sleep
posts - 62, comments - 30, trackbacks - 40

My Links

News

Twitter












Archives

Post Categories

Blogs I Read

Microsoft MVP

User Groups

Friday, October 31, 2008

Converting Day of Year and Year to Date in SSIS

I ran accross a field in a flat file yesterday that was in the format of "CCYYDDD".  Now I can only assume that "CC" means century, but that's not the point.  The actual value was "2008294".  I needed to write an expression that converted the year and day of year format to a standard date.  Here's the expression to do this (thank you to Ed Buhain for brainstorming):

DATEADD("d", ((DT_I4)SUBSTRING(Date, 5, 3) - 1), (DT_DATE)("1/1/" + SUBSTRING(Date, 1, 4)))

Where "Date" is the value you need to convert.

Pretty straight forward.  Just subtact 1 from the day of year value and add to January 1st using DateAdd.  The end result in this case is "10/20/2008"

 

posted @ Friday, October 31, 2008 9:48 AM | Feedback (0) | Filed Under [ SQL Server SSIS ]

Thursday, October 30, 2008

Using Personal Contacts in the Outlook Address Folders

If in the past you have had the problem where the contacts in your personal outlook contact folder do not appear in the list of address folders when you click the "To..." button when sending an email, here is a solution.  (Thanks to Burton White of Excella Consulting)
Tools -> Email Accounts
Select "Add a new directory or address book"
Select "Additional address books"
Select "Outlook Address book"
 
When you do a search for an address by clicking "To..." in an email, it defaults to show your addresses in the form "firstname lastname".  If you want to change that:
 
Tools -> Email Accounts
Select "View or change existing directories or address books"
Select "Change" button
Select "File as (Smith, John)"
 
Also, when you do a search for an address by clicking "To..." in an email, it shows the addresses in the Exchange server first.  If you want to change that to your Outlook Address book:
 
Tools -> Address book...
Tools -> Options
Select what you want in the drop down list "Show this address list first..."

posted @ Thursday, October 30, 2008 1:09 PM | Feedback (0) |

Monday, October 20, 2008

SharePoint Upgrade - Completed - Final Thoughts

After many long hours working on upgrading our clients intranet from SPS 2003 to MOSS, we completed the rollout over a very long weekend.  Ed Buhain, the client and I spent a fair bit of time babysitting the process, tackling last minute gotchas as they came up.

One of the final issues we had was after all of the time testing, debugging, prepping, etc we had not run through the upgrade process with the infrastructure update applied.  I was fully prepared to do my workarounds in order to get all the content moved.  However, during upgrade process we learned that many of the issues that we had hit previously were now no longer issues.  I must assume that these bugs were addressed in either SP1 or the infrastructure update.  For example:

  • We fully expected that the WSUS_ database would not be sized correctly, therefore large content DB's would cause it to autogrow when copying the document related tables.  The temp database did size correctly or adequately during the upgrade.
  • Timeouts were an issue due to the tempdb and wsus_ databases thrashing SQL Server.  This also did not seem to be an issue during the upgrade.  SQL Server stayed relatively quiet during the process.

We did run into an issue with creating advanced search pages and a search center.  Still working those bugs out.  All in all I think it was a success.  We also managed to squeeze in a new master page with a fresh new look and branding which ultimately was the "sizzle" the new site needed. 

Good times...good times.

posted @ Monday, October 20, 2008 10:29 AM | Feedback (0) |

Friday, July 25, 2008

Timeout Error When Upgrading SPS 2003 Content Database

Man, this issue has been kicking my butt all day.  We've been working on a SharePoint 2003 upgrade (testing) and got to the final content database.  Life was good up to this point.  110GB of content had upgraded and there were just a few hiccups, mostly related to size.  Then, it came.  The nasty, evil, dispicable:

 Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

Over and Over...

Basically what's happening from what we can tell is SQL Server is choking on the large document library table copy (dbo.doc) and (dbo.docversion).  The temporary database (WSSUS_) log file timesout during autogrowth.  It just can't keep up with the upgrade.

I'm trying again...this time I've set the autogrowth to grow by MB instead of percentage.  This is a tricky to get set simply because this database isn't created until the process starts.

UPDATE

The solution turned out to be relatively simple.  I grew the transaction log for the WSSUS_ database to 70GB which effectively stoped the autogrow thrashing.  After doing this, the process completed as expected.  The trick is that you have to run the script:

The catch is that you have to run it after the WSSUS database has been created.  I simply watched in Managment Studio until I saw the database in the list and ran the script.  It took 13 minutes for my hardward to execute the query.

ALTER

DATABASE [WSSUP_Temp_675cfeec-6d15-414a-aae2-a3deabbbf01b] MODIFY FILE ( NAME = N'WSSUP_Temp_675cfeec-6d15-414a-aae2-a3deabbbf01b_log', SIZE = 73400320KB , FILEGROWTH = 10240KB )

We also changed the default file location to a local disk rather than a SAN connected volume.  This may have had some impact, but did not solve the problem.

posted @ Friday, July 25, 2008 12:34 AM | Feedback (1) |

Tuesday, July 22, 2008

Database gotchas when upgrading SPS 2003 to MOSS

Again, maybe old news but I thought I would post something interesting that happened during a recent upgrade from SPS 2003 to MOSS.  SharePoint is very finicky when it comes to database transactions and sizing during the gradual upgrade process.  Here are a couple of things to note:

1.  Make sure you have enough size - When upgrading a site that had about 150GB in content, we needed about 500GB in space to complete the migration.

2.  Make sure you know where your _Pair DB's Are - SharePoint for some reason didn't put the _Pair db's on the default data and log file locations (C:\) and had to be moved to a larger volume.  This caused the upgrade to fail with space issues.

3.  Make sure to set the _Pair data and log files to AutoGrow - Now that you have the right amount of space, make sure that you configure the new databases to grow correctly.  Large content databases will have large transactions when copying the sitecollections.  This can also lead to things like timeouts and space issues.  You should also consider setting the recovery model to "Simple" during the migration to keep things tight.

Just some things to think about.

posted @ Tuesday, July 22, 2008 6:10 PM | Feedback (1) |

SharePoint gradual upgrade disabled when using a SQL instance named SharePoint

This may be old news, but we just hit this issue the other day.  If you try to upgrade an instance of SharePoint Portal Server 2003 or WSS 2.0 that is running on a named instance of SQL Server called "SharePoint", the gradual upgrade option is greyed out.  It turns out that this is because the installer thinks that you are trying to upgrade an instance of MSDE.  Changing the instance name to something other than "SharePoint" does the trick.  Talk about hardcoding something...

posted @ Tuesday, July 22, 2008 6:03 PM | Feedback (0) |

Tuesday, July 01, 2008

MVP Award

I wanted to thank Microsoft for awarding me with an MVP award for 2008.  It is such an awesome program and an honor to be included in such a great group of professionals.  I really appreciate the friendships and relationships that are a part of this prestigous program.  Thanks again for the recognition and congratulations to all of the MVP award receipients.

Scott Lock

posted @ Tuesday, July 01, 2008 10:21 PM | Feedback (0) |

Friday, April 18, 2008

Setting up an SPS 2003 VM to test a MOSS Upgrade

I finally got a Virtual Server 2005 VM running with my clients entire intranet SPS 2003 portal running.  It took a bit of time to restore all 70GB of content data.  What I have now is a 120 GB VM that is a great way to test the upgrade. 

Here are some lessons learned:

1.  VPC 2007 to Virtual Sever 2005 Does not always work as advertised - I started off this project with a baseline Windows 2003 VPC built on my laptop.  The trick is that the VPC used specific IDE controller drivers based on the hardware configuration of my Dell Latitude 820.  I tried to move this over as is but got the BSOD during reboot.  After several failed attempts to fix the image, I ultimately had to rebuild the image on VS 2005.

2.  Size Matters - When you build a new image, make sure you size it appropriately.  Dynamic disks are great, but when you need to restore a 52GB database, you need to make sure you have at least that much space to do the restore.  Fixed disks do the trick here, but how do you convert a disk that was already fixed at 64 GB?  Easy...you download VM Resizer, epand the disk then use DiskPart to extend the partition.  Worked like champ.  One thing to note, if you are extending a VHD that you plan to keep as an IDE drive, make sure to keep it under the 127GB max size.

3.  It makes a "Difference" - Use Differencing disks.  Repeat.  Use Differencing Disks.  It's not easy to use undo disks on a VHD that is 120GB in size.  Even on a SAN that's a lot of disk space.  By building that baseline and using VS 2005 differencing disks, you can keep that baseline pristine and make changes to a seperate vhd.

4.  Know Thy Version - If you follow Jeff Holliday's Blog Entry on Restoring SharePoint Production Servers to Test Servers it is very easy to actually restore the portal.  What's the catch?  You ABSOLUTELY need to make sure that WSS 2.0 and SPS 2003 are up to the same version.  There were a few posts and comments from folks who got this error:

'SvrAdminPortalCreate_SecurityConfigurationSection_Text' is not a valid value for attribute 'TitleLocID'. It must be of enum type 'Microsoft.SharePoint.Portal.WebControls.LocStringId'

This was because there was a mismatch in version between the production source server and the test target servers.  You can verify versions against this chart and install the appropriate hotfixes, patches, and service packs.

Hope that this helps someone along the way.

posted @ Friday, April 18, 2008 10:44 PM | Feedback (0) |

Tuesday, April 01, 2008

So hard to find great .Net developers

I know this is bad form, but I have to try.  Excella (my firm) is looking for great .Net developers in the D.C. metro area.  If you are looking or know anyone else that is looking, please have them give me a shout. 

posted @ Tuesday, April 01, 2008 11:32 PM | Feedback (3) |

Sunday, March 02, 2008

For testing purposes only watermark after installing Vista SP1

An odd thing happened to me after installing the Vista SP1 RTM.  I have a laptop running Vista Ultimate.  The OS was installed using my MVP Team Suite license.  I use this machine as my primary development box.  After installing Vista SP1 I had two interesting things show up on the desktop:

1.  "Test Mode" showed up in each corner of the desktop - Run Bcdedit.exe /set TESTSIGNING OFF using an elevated prompt to turn off test for signed drivers.

2.  "for testing purposes only." and build number - This one I am not sure why it has appeared in the corner.  My previous version did not.  The only thing I could find was a very lengthy step by step process which seemed way to complicated.

So I don't have the warm fuzzy feeling that I've been hearing everyone talk about after installing Vista SP1.  I don't feel like I'm running the RTM build.  The messages I see make me feel like its the RC.  I hope there nothing else that I can't see broken.  I didn't realize that I was signing up for the beta test!

posted @ Sunday, March 02, 2008 9:33 PM | Feedback (2) |

Powered by: