...
Code Block | ||
---|---|---|
| ||
protected override void OnPostRender(string result) { if (this.AutoExecuteScript) { // execute the output on the same database as the source table. CodeSmith.BaseTemplates.ScriptResult scriptResult = CodeSmith.BaseTemplates.ScriptUtility.ExecuteScript( this.SourceTable.Database.ConnectionString, result, new System.Data.SqlClient.SqlInfoMessageEventHandler(cn_InfoMessage)); Trace.Write(scriptResult.ToString()); } base.OnPostRender(result); } |