I've just downloaded codesmith and i've find a bug with this template, i think.
I haven't yet time to fix it by myself (first i should read some documentation indeed) so i expose the problem:
I have a ' char in some of my fileds name and it cause a crash in running build.bat (i'm using Codesmith 3.1.6)
here is the dump:
C:\Program Files\CodeSmith\v3.0\SampleTemplates\DBDocumenter>build
CodeSmith DBDocumenter Templates v3.0
Author: Jason Alexander (jason@ngallery.org), Eric J. Smith
Website: http://www.ngallery.org/dbdocumenter/
-------------------------------------------------------------
Beginning documentation...
System.Data.SqlClient.SqlException: Line 10: Incorrect syntax near 'EM'.
Unclosed quotation mark before the character string ') p'.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior
, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SqlClient.SqlCommand.System.Data.IDbCommand.ExecuteReader(Comm
andBehavior behavior)
at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startR
ecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior be
havior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord,
Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at a.a(String )
at SchemaExplorer.SqlSchemaProvider.a(String , String , String , String , Str
ing , String , String )
at SchemaExplorer.SqlSchemaProvider.GetExtendedProperties(String connectionSt
ring, SchemaObjectBase schemaObject)
at SchemaExplorer.SchemaObjectBase.get_ExtendedProperties()
at _CodeSmith.TableDetailTemplate.__RenderMethod1(TextWriter writer, Control
control)
at CodeSmith.Engine.DelegateControl.Render(TextWriter writer)
at CodeSmith.Engine.Control.RenderChildren(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToFile(String path, Boolean overwrite)
at _CodeSmith.TablesTemplate.Render(TextWriter writer)
at CodeSmith.Engine.CodeTemplate.RenderToFile(String path, Boolean overwrite)
at _CodeSmith.master_cst.Render(TextWriter writer)
at CodeSmithConsole.EntryPoint.a(String[] )
Done.
i've checked if i have some results anyway and i found that at least some tables where compiled, so i checked the last that i supposed rised the error and i found the problem (i suppose)
the table has some fields containing the ' char ie "Quantita' EM/EF", i hope this helps fixing the problem, keep up with this nice template