Viewing 15 posts - 31 through 45 (of 46 total)
Ok. Computed column sounds like the obvious choice then.
June 17, 2013 at 12:35 pm
With the first option I mean that the new column you are thinking of adding is (prefix+ streetname+ suffix), but if you are not going to be using "streetname" part...
June 17, 2013 at 12:29 pm
Start by looking at the query plan. If possible, post the queries and plan in the thread.
June 17, 2013 at 12:23 pm
You can write a simple .net application which will read excel files, manipulate data as you want and then insert into database.
June 17, 2013 at 12:20 pm
There are couple of options:
1. Do you use actual street name anywhere else. Or else you can insert the street name with prefix and suffix. This would be the most...
June 17, 2013 at 12:15 pm
To Add to Steve's answer, You may need to see if the existing data is upgradable to new type or not and then write an upgrade script.
June 17, 2013 at 12:08 pm
Thanks for the quick reply. What I meant to say is I was able to produce deadlocks even with the indexed tvps.
March 6, 2013 at 8:04 am
Hi @opc,
I did some testing with the indexed tvps interms of deadlocks. I did not find any difference between non-indexed and indexed versions. I created a simple application which spaws...
March 6, 2013 at 7:36 am
Thanks opc.
I missed the point with the deadlock in-case of inserts. This is an important factor in case of high transaction environment.
Thanks again.
March 4, 2013 at 2:23 pm
Thanks everybody for your responses. I could not post the table structure etc because of policies. Here is what I found out after more testing.
From the execution plans, it looks...
March 4, 2013 at 1:57 pm
From the plan, it can be seen that the new index is used. It also saves an extra Sort operation on the tvp.
February 28, 2013 at 3:22 pm
@r.P.Rozema
Thanks for the reply.
The foreign key of A goes into 2 more tables just like table B. But those are not huge tables like table B. So idea...
March 14, 2012 at 7:48 am
@r.P.Rozema
I did try left outer with null clause as well. It comes out with the same execution plan and takes same time.
March 14, 2012 at 7:22 am
I already tried separation of select, it is the Index scan in the select that is taking most of the time. I think as engine has to check...
March 13, 2012 at 1:35 pm
Yes. it does have a foreign key in table B. I agree it may not be needed since it is also a clustered PK on the same table.
March 13, 2012 at 11:14 am
Viewing 15 posts - 31 through 45 (of 46 total)