Error Souce =.Net SqlClient Data Provider
Error Message = '-' 근처의 구문이 잘못되었습니다.
Stack = at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) 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, String srcTable) at LatinBoard.Base.ExecuteDataSet(String Query, String TableName, Int32 StartRecord, Int32 PageSize) in C:\Inetpub\wwwroot\Latin\_Board\class\Base.cs:line 183

Query = select top 15 case g.Name when '한인넷' then t.Country else g.Name END FGName, t.* from ezgeo_latin.forums_Threads t,ezgeo_latin.forums_ForumGroups g,ezgeo_latin.forums_Forums f where f.ForumID = t.ForumID and g.ForumGroupID = f.ForumGroupID and t.ForumID in (7,20,33,92,46,116,132,162,213) AND t.ThreadID NOT IN (SELECT TOP -15 ThreadID FROM forums_Threads WHERE ForumID IN (7,20,33,92,46,116,132,162,213) ORDER BY DateCreated DESC) ORDER BY t.DateCreated DESC