Viewing 15 posts - 646 through 660 (of 1,219 total)
Yes and no.
That is, you can put your procedure in master and call it sp_somename. Then you can invoke it as
EXEC archer..sp_somename
The procedure will then execute in the context...
September 5, 2013 at 3:58 pm
Thanks for the plans!
I note that the table is partitioned. What is the partitioning column? ClaimID?
It appears that you have mixed up the plans a bit. The one you call...
September 5, 2013 at 3:52 pm
I will have to admit that SPNs goes over my head (I don't work as a DBA myself, so I can escape them). Maybe someone else can fill in?
September 5, 2013 at 1:26 am
You still have a different plan than on SQL 2005.
The plans posted to evernote are difficult to read. The best is if you can attach them as .sqlplan files.
September 5, 2013 at 1:24 am
djordan 4543 (9/4/2013)
Since I removed mirroring from the archive database the queries are performing much better. Thanks heaps for helping me out with that! 🙂
But the root problem appears to...
September 5, 2013 at 1:20 am
A fairly nasty query, I would say, that leaves the optimizer between a rock and a hard place.
SQL Server can retrieve orders by recorddate, until it has found 10000 rows...
September 4, 2013 at 4:16 pm
Lots of pieces missing here. You say that the procedure completes in 13 seconds, and then there are INSERTs going on six hours later.
Should I guess that the procedure you...
September 4, 2013 at 4:09 pm
We also need the index - and of course, I forgot to mention: the query!
September 4, 2013 at 4:05 pm
It does not help how many conditions you add to the IF statement. The USE statement is interpreted at compile time, why you always get the error. Here is a...
September 4, 2013 at 4:02 pm
The problem is that without knowing the tables and indexes, we cannot say much. Judging from the plan on SQL 2005 alone, there is room for improvements.
September 4, 2013 at 3:49 pm
There are a multitude of possible reasons why the query started to run slower.
But a very common scenario is that you have a query which involves something like "today's orders"....
September 4, 2013 at 3:46 pm
It would certainly help to see the query, as well as the CREATE TABLE and CREATE INDEX statements for the table.
There is little reason to look at the hardware, when...
September 4, 2013 at 3:36 pm
The one thing to keep in mind is that once the server has been renamed in Windows, you need to do this:
EXEC sp_dropserver OLDNAME
EXEC sp_addserver NEWNAME, local
And then restart SQL...
September 4, 2013 at 3:26 pm
Again, one reason you get so little help is that we know so little about what you do. It still not clear to me how you measure the speed.
You mention...
September 4, 2013 at 7:22 am
Yes, the UPDATE statements could also be slow, but the INSERT statements may cause page splits etc, why they are more prone to stalls.
No, TVPs to not persist between calls,...
September 4, 2013 at 1:23 am
Viewing 15 posts - 646 through 660 (of 1,219 total)