Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Query timming out

$
0
0

I have a query that is running against a table that currentlyhas22,796,229rows And I am trying to filter on a varchar(255) and it is timing out. The field is part ofa non clustered index.

Text
 NONCLUSTERED INDEX [IX_A] ON [dbo].[Ad] ( [ClientID] ASC, [TransactionType] ASC, [TradeDate] ASC, [Broker] ASC, [AccountNumber] ASC, [ImportedFile] ASC, [Currency] ASC, [PricePerShare] ASC, [NetAmount] ASC, [Active] ASC ) INCLUDE ( [AccountName], [SettleDate], [Ticker], [CUSIP], [SecurityDescription], [ApprovedBy], [Custodian], [PreAllocated], [Executed], [Commission], [ResultingShares], [Notes], [InterestRate], [MaturityDate], [AccruedInterest], [Par], [OtherFees], [AdvisorBlotterID], [CreateDate], [CreateBy]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON,...

Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>