Note:
The CreateDB project shows how to programmatically create, update, and delete SQLServer databases.
The Wizard project contains an Asp.Net project that binds data to a gridview using a Linq query.