The SQL Server 2012 RTM versions of the Adventure Works OLTP sample database and Adventure Works data warehouse sample database are available on AdventureWorks for SQL Server 2012.
SQL Server 2008R2 product code samples are available here. Download the AdventureWorks 2008R2 family of sample databases and AdventureWorks 2008R2 sample databases
Note: When you click the big Download button on the SQL Server R2 sample code project page (this one), you will get the x64 installer and download the SQL Server 2008R2 samples.
SQL Azure AdventureWorks community sample databases can be downloaded from here.
SQL Server 2008 code samples are available here. Download the AdventureWorks 2008 family of sample databases separately.
SQL Server 2005 product samples can still be downloaded and separately AdventureWorks for SQL Server 2005.
CodePlexis the project hosting site for Microsoft SQL Server Samples and Community Projects. Projects listed here are official Microsoft samples for SQL Server (released with Service Packs or major releases of SQL Server) and applications developed by MVPs, and the SQL Server community at large, including:
- Forums & Answers
- Microsoft Product Samples All-in-One
- Sample Databases
- End to End Samples
- Master Data Services in SQL Server 2012
- Microsoft SQL Server Analysis Services
- Microsoft SQL Server Database Engine
- Microsoft SQL Server Integration Services
- Microsoft SQL Server Reporting Services
- Microsoft Sync Framework
- Platform Tools & Utilities
- SSDS & Cloud Samples
Unless noted otherwise, the download links are for the latest release of the project; see the individual project sites (on the Releases tab) for prior version releases. Most projects have more than one file download for a given release; read carefully to be sure you choose the ones that you need.