Viewing 15 posts - 1,471 through 1,485 (of 5,843 total)
rmechaber (7/17/2015)
This could be computed on-the-fly using views or stored procedures from the actual order details, right?...
July 17, 2015 at 8:37 am
arunnrj87 (7/17/2015)
Thank you for your valuable time.
I have solve this issue by below query.
IF EXISTS (SELECT SegmentId,SubjectId,StaffId FROM [dbo].[StaffSubjects] WHERE SegmentId = @SegmentId and SubjectId=@SubjectId...
July 17, 2015 at 8:35 am
1) Your process is full of potential concurrency holes. Don't feel bad - this is a VERY common type of mistake in data processing.
2) Please provide the entire create table...
July 17, 2015 at 7:36 am
mike 57299 (7/16/2015)
July 16, 2015 at 12:56 pm
ZZartin (7/16/2015)
July 16, 2015 at 8:16 am
I agree with Gail - for this particular case. The thing is you need to make this decision (often with many others) for each touch point in your application. And...
July 16, 2015 at 7:23 am
I am very surprised that the XML_PATH is fastest. I always thought XML handling in SQL Server was horribly inefficient and bloated (especially from a memory-use perspective).
July 15, 2015 at 8:54 am
If all else fails ...
Be VERY VERY careful with what that statement REALLY means. You are doing data processing, and if all else fails you could process that...
July 13, 2015 at 2:42 pm
;WITH cte AS (
SELECT widgetid, funkcode, ROW_NUMBER() OVER(PARTITION BY widgetid ORDER BY widgetid, id) AS rownum
FROM @temp)
SELECT *
FROM cte
WHERE rownum = 1
July 13, 2015 at 2:40 pm
Because it could be that your calls are being done one row at a time instead of set based, so check plan/execution calls to see if something is looping instead...
July 12, 2015 at 9:21 pm
It can't be blocking, because sp_whoisactive would show that as the wait (and you would see a valud in the blocked column of the output).
There are SOO many things...
July 12, 2015 at 6:58 am
yb751 (7/10/2015)
I'm trying to flesh out a good queue table design with our dev team.
So here is a general overview of the scenario. First an application will hit...
July 12, 2015 at 6:53 am
1) stop using sp_who/2 and start using sp_whoisactive. AMAZING freebie from Adam Machanic found on SQLBlog.com
2) it is quite likely that you have a parameter sniffing issue, or other plan...
July 10, 2015 at 4:32 am
HAH!! Dealing with that mess is many hours of work. Sorry - I don't do that for free. 😎
I will say that your secondary plan has the dreaded "estimated rowcount...
July 9, 2015 at 3:43 pm
I asked this before but didn't see an answer: What are the compiled and actual parameter values on both plans?
July 9, 2015 at 6:22 am
Viewing 15 posts - 1,471 through 1,485 (of 5,843 total)