I would like to store lengthy .sql scripts in my solution and execute them programmatically. I\'ve already figured out how to execute a string containing my sql script but I
Add the SQL files to your project then create a new resource file. Open up the SQL file and select 'Files' from the top-left drop down (default is Strings). Then hit add resource and navigate to/select the SQL file. This allows you to get SQL from the resource file without losing your type-safety like so:

The above is the process in Visual Studio 2010. I also wrote about this on my blog.