System.Data.SqlClient.SqlException (0x80131904): An expression of non-boolean type specified in a context where a condition is expected, near 'Previo'. Invalid object name 'VTemp'. CREATE VIEW VTemp AS SELECT CustomerID AS ID, FNameru + ' ' + LNameru AS Full_Name, FNameru + ' ' + LNameru AS MLName, LNameru + ' ' + FNameru AS SortName, ShortDesc, (SELECT TOP 1 C.Titleru FROM map_SoldierDetails ms LEFT JOIN Category C ON ms.CatID = C.ID WHERE C.MasterID = 5953 AND ms.CustID = CustomerID ) AS ArmyTitle, (SELECT TOP 1 C.Titleru FROM map_SoldierDetails ms LEFT JOIN Category C ON ms.CatID = C.ID WHERE C.MasterID = 5962 AND ms.CustID = CustomerID ) AS ResTitle, (SELECT TOP 1 C.Titleru FROM map_SoldierDetails ms LEFT JOIN Category C ON ms.CatID = C.ID WHERE C.MasterID = 5967 AND ms.CustID = CustomerID ) AS PartTitle FROM SoldierDetails S inner join STCustomers C on S.CustomerID=C.UserID WHERE C.active=1 and (FNameru LIKE 'Ю%' OR LNameru LIKE 'Ю%' OR Previo at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) 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.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at warriors.searchByLetter() in d:\spaces\jwmww2.org\jwmww2.org\wwwroot\warriors.aspx.cs:line 433 ClientConnectionId:c355beca-de7f-4f91-b880-955ffe345689 Error Number:4145,State:1,Class:15
System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at SiteFunc.debugs(Object o) in d:\spaces\jwmww2.org\jwmww2.org\wwwroot\App_Code\SiteFunc.cs:line 373 at warriors.searchByLetter() in d:\spaces\jwmww2.org\jwmww2.org\wwwroot\warriors.aspx.cs:line 447 at warriors.Page_Load(Object sender, EventArgs e) in d:\spaces\jwmww2.org\jwmww2.org\wwwroot\warriors.aspx.cs:line 101