Plip's Weblog

Phil Winstanley - British .NET chap based in Lancashire. Enjoys tea and tech. Working for Microsoft.

Microsoft Documentation - Where is the sample code?

I've recently been working heavily with Reporting Services, but there have been one task I've been putting off as I've done it once before (two years ago) and it scared the crap out of me. Creating a Custom Security extension to work with SQL Server Reporting Services 2005 so that I can use forms authentication from ASP.NET (and the SQL Server Membership Provider).

It should be relatively straight forward, Microsoft have written a tutorial which takes you through it step by step: -

http://msdn2.microsoft.com/en-us/library/ms160724.aspx 

There's something wrong with this though, the sample code isn't online, it's available only via the local install of SQL Server Reporting Services. I don't appear to have these files ("The SQL Server samples are not installed automatically during setup. For instructions about how to install the samples, see Installing Samples.").

So Microsoft, to you I say: -

 

 

For now the gazebo must go and reinstall bits of his SQL Server just to get the sample code from his offline DVD onto his offline hard disk for an Article you've published online. Nice one*.

* That's sarcasm.

UPDATE: I believe I've found a cheat way to get them, the samples have been updated and the updates have been published! (SqlServerSamples.msi) http://www.microsoft.com/downloads/details.aspx?FamilyId=E719ECF7-9F46-4312-AF89-6AD8702E4E6E&displaylang=en

After installing the files are here: -

C:\Program Files\Microsoft SQL Server\90\Samples\Reporting Services\Extension Samples\FormsAuthentication Sample\cs\FormsAuthentication\

Comments

Jeff said:

People gave me a bunch of crap for complaining about the docs...

http://weblogs.asp.net/jeff/archive/2006/08/17/Fire-the-person-that-wrote-this-documentation.aspx

# September 21, 2006 9:48 AM

Vikram said:

Thanks for posting the cheat way of getting the document

# September 21, 2006 12:19 PM

Shane said:

And hey Phil - if this programming lark doesn't work out you can always try Graphic Design.

Your image manipulation skills are coming on a treat ;)

# September 22, 2006 5:57 AM

Josh said:

Not only do we both have to put up with a poor choice of venues at the weekend, we have the same SQL issues too:

http://www.thejoyofcode.com/SSIS_Custom_Log_Provider_Samples.aspx

:)

# September 22, 2006 1:44 PM

Mike said:

You see Phil, I'd have called that a bandstand so I've already learned something today! Sometimes our documentation is right on the button and other times there's no doubt it falls short. One personal dislike is samples and the like delivered as msi files. I understand there's a need for EULAs etc but I always have to hunt around for the bits after I've installed. Okay, so I know I should pay some attention to the "Install to this directory" step in the wizard but we don't all have time for that sort of luxury do we? :-)

# September 27, 2006 1:43 PM