I had this problem a little while ago, then it seemed to disappear before rearing its ugly head again today.
I've even reinstalled the templates and recreated the database to no avail.
I checked all the generated SQL and it looks fine to me.
I appreciate that the stack trace isnt too helpful, but does anyone have any ideas?
Thanks in advance,
John.
System.Data.SqlClient.SqlException: Invalid object name '#PageIndex'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, TdsParserState state)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, TdsParserState state)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
at System.Data.SqlClient.TdsParser.Run(RunBehavior run, SqlCommand cmdHandler, SqlDataReader dataStream)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.NextResult()
at SchemaExplorer.SqlSchemaProvider.GetCommandResultSchemas(String connectionString, CommandSchema command)
at SchemaExplorer.CommandSchema.get_CommandResults()
at MoM.Templates.CommonSqlCode.IsMatching(CommandSchema command, TableSchema table) in c:\Program Files\SerialCoder\NetTiers 0.9.2 - Caribert\Templates\CommonSqlCode.cs:line 2125
at _CodeSmith.EntityProviderBase_cst.__RenderMethod1(TextWriter writer, Control control) in C:\Program Files\SerialCoder\NetTiers 0.9.2 - Caribert\Templates\DataAccessLayer\Bases\EntityProviderBase.cst:line 901
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.NetTiers_cst.RenderToFile(String templateName, String path, Boolean overwrite) in C:\Program Files\SerialCoder\NetTiers 0.9.2 - Caribert\Templates\NetTiers.cst:line 453
at _CodeSmith.NetTiers_cst.Go() in C:\Program Files\SerialCoder\NetTiers 0.9.2 - Caribert\Templates\NetTiers.cst:line 1870
at _CodeSmith.NetTiers_cst.__RenderMethod1(TextWriter writer, Control control) in C:\Program Files\SerialCoder\NetTiers 0.9.2 - Caribert\Templates\NetTiers.cst:line 2154
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.RenderToString()
at CodeSmith.Gui.CodeTemplateGenerator.b(Object , EventArgs )