September 2008 - Posts

Clear Kerberos Tickets cached on your computer

Having trouble authenticating to that website on the intranet? Try clearing out your cache of Kerberos tickets on your computer. . .
“klist tickets” will list all the tickets you currently have
“klist purge” will clear them out
More information at http://technet.microsoft.com/en-us/library/cc738673.aspx
And you can download the tool at http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Posted by sweisfeld | 1 comment(s)
Filed under:

Shawn @ Tech ED

While I was at Tech ED 2008 in Orlando FL I participated in a roundtable discussion on "How to make community better" with Dan Egan (President of INETA, http://www.ineta.org), Dave Noderer (UG Leader, CO Founder of INETA, http://www.fladotnet.net),  Christine Betts (GM of the Technical Audience Global Marketing for Microsoft) and Mark Wilson (Charlotte Enterprise Dev Guild, http://www.developersguild.org). They thought it was a good idea to record it, so I figured I would share http://mfile.akamai.com/14853/wmv/microsofttec.download.akamai.com/14853/TechEdOnline/Videos/08_NA_DEV_TEOPanel_36_low.asx.

Posted by sweisfeld | with no comments
Filed under: , ,

Virtual CloneDrive

If you have an MSDN license you are flush with lots of ISO files. Maybe you want to burn them all to DVD's but I keep my collection of ISO's on my Windows Home Server (http://en.wikipedia.org/wiki/Windows_Home_Server). This saves me alot of time hunting through the pile of junk on my desk looking for a disc. However it does mean that I need software to mount the ISO. This software adds a virtual DVD drive to your computer allowing you to insert the ISO. The beauty is that it appears just like a normal DVD once mounted. . . The best piece of software I found for the job to date is Virtual CloneDrive from SlySoft (http://www.slysoft.com/en/virtual-clonedrive.html). Happy ISO Busting!

Posted by sweisfeld | with no comments
Filed under:

XML in SQL server

Question From NTSSUG - http://northtexas.sqlpass.org

I am working on an application that has object data mapped to tables. The mapping was done many years ago, before the likes of Hibernate came along. It basically maps a class to a table. Object properties with multiple values get their own tables. There are other interesting mappings, but that's the overall concept.
 
We have a guy that has been doing research on an alternate approach. He's storing the object data in an XML string. The XML string is stored in the only field of a table. The table is the only one in the system. He's reporting huge performance increases with this approach.
 
Have any of you heard of anything like this? What do you see are the pros and cons of such an approach?


Ok, so I come from a little different camp then most on this newsgroup. . . . I am a c# developer, not a DBA. Yes I am the enemy.

"XML String"???? I hope you mean the new XML data type and not a varchar.

However I strongly encourage storing data in a relational format in the database. Querying of XML data is more difficult and less performing then a traditional SQL query. There are XML query options available (http://msdn.microsoft.com/en-us/library/ms345122.aspx). However these require learning new syntax and might not be compatible with all 3rd party tools. (The first time I asked my DBA to create a table with an XML column, DB Artisan the tool they use instead of SQL Server Management Studio puked all over itself, then again it also converted my varchar(max) and varbinary(max) columns into varchar(1) and varbinary(1)).

That being said I do "persist" .NET objects to XML in the database in cases where my only goal is to provide long-term statefullness to my application.

As for space concerns of the XML in the DB, you have a few options (http://msdn.microsoft.com/en-us/library/ms345115.aspx) but "The XML data supplied by a user is stored internally in a binary format" so disk space concerns should be minimal.

As a developer I like XML persistence over Binary. Binary is defiantly faster to serialize and smaller "on the wire", however I think that in most cases the interoperability and human readability of XML outweighs the benefits of binary serialization. (Heck MSFT is using it for Office!)

NOTE your XML documents are limited to 2GB each.

Posted by sweisfeld | with no comments
Filed under:

Fun With TFS

I have been moving to a completely virtural environment for the work I do out of my home. In that process I have set up a VirturalServer with TFS 2008 SP1 and a Dev image with VS Team Suite SP 1. Well I forgot to install the Team Explorer before I installed SP 1 on my dev box, and when I attempted to create a work item I got the following error.

"Could not load type 'Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemTypeDeniedOrNotExistException' from assembly 'Microsoft.TeamFoundation.WorkItemTracking.Client" exception

I saw a posting on Dan Sniderman's blog saying he had the same problem (http://blog.magenic.com/blogs/daniels/archive/2008/08/24/Fun-with-VS2008SP1-and-VPC.aspx). He said he had to do a complete reinstall to fix the problem. I was not looking forward to that so I tried just reinstalling SP1 for VS 2008 and things appear to be all better now.

Posted by sweisfeld | with no comments
Filed under: