SQL Server books online is essentially the documentation for SQL Server. Just use the drop down to change the version as you require. You'll need to look in there really to find what you're looking for. To be honest, I'll always just hit my favourite search engine with some appropriate key words. It's very rare that there's nobody out there that hasn't done something similar to what I'm after. The trick is to understand any code you may find before running or using it.
Thanks,
Simon