Viewing 15 posts - 6,721 through 6,735 (of 26,490 total)
Comparing the latest two execution plans, all the filtered index did is drop approximately 700,000 rows from the initial pull. May have reduced the reads, but not sure if...
April 17, 2014 at 6:18 am
As it looks like you are using SQL Server 2008 perhaps a filtered index. Not sure if it will help, but it is worth testing.
CREATE NONCLUSTERED INDEX [AI_OperatorCBGEstimate_14947]
...
April 16, 2014 at 10:47 am
You really haven't provided enough detail to really help you solve the problem you seem to be having. To help us help you we need the DDL (CREATE TABLE...
April 16, 2014 at 9:35 am
Looking at the latest execution plan, you are still reading over 14 million rows from the table that meet your search criteria. That is a lot of reads.
April 16, 2014 at 8:24 am
If it isn't a problem I wouldn't worry about it.
Just mho.
April 15, 2014 at 9:51 pm
Doesn't answer the question. Is there a problem due to the gaps as a result of the deletes or do you want to do this for cosmetic reasons?
April 15, 2014 at 8:41 pm
Just curious, but could you post the actual code you use to complete the counts?
April 15, 2014 at 7:03 pm
My question, why do you need to eliminate gaps in the sequence numbering?
April 15, 2014 at 6:25 pm
As Sean said, if you post the DDL (CREATE TABLE statement) for the table(s) involved, some sample data (a series of INSERT INTO statements (some people here still use SQL...
April 15, 2014 at 11:14 am
Try the same query using sys.objects.
April 14, 2014 at 6:12 pm
If you are updating existing data you use the UPDATE statement. INSERT is used to insert new data.
April 14, 2014 at 1:28 pm
Sean Lange (4/14/2014)
April 14, 2014 at 12:48 pm
I have to ask this question, what is the batch process doing?
April 14, 2014 at 10:37 am
This will work as well:
with SampleData as (
select
StrVal
from
(values ('abc ,'),('cde,xyz,aaa,'),('zzz, yyy ,ttt,'),('qwe'),('asd,fgh'))dt(StrVal)
)
select
StrVal,
left(StrVal,len(StrVal) - patindex(',%',reverse(StrVal)))
from
...
April 14, 2014 at 10:32 am
Two choices I can think of quickly, 1) figure out how to keep EF from converting the strings from varchar to nvarchar or 2) modify your table so that ObjId...
April 14, 2014 at 10:25 am
Viewing 15 posts - 6,721 through 6,735 (of 26,490 total)