Not sure if this belongs here or on ServerFault, but I wonder if someone knows a free tool to export a SQL Server 2008 Schema? It's only for Tables and their Indexes, Foreign-Keys etc. and it needs to be a command line tool to run as part of a build process. If it can read a .net connection string, that would be awesome (hence the .net tag)
Data is not needed and any sort of versioning/diff is also "Nice, but not needed". And yes, I am aware of Red-Gate's awesome SQL Server tools, sadly this is a hobby project with 0 budget :-(