Viewing 15 posts - 6,631 through 6,645 (of 8,753 total)
Gazareth (11/6/2014)
My explanation would be that the CTE is never materialised as such, so the rn value is...
November 6, 2014 at 11:29 am
:blush: just noticed, had several "versions", this one is no good
😎
November 6, 2014 at 10:58 am
Quick thought, there are actually two row_number instances in the plan, one used for the delete and another for the output. As only one row is outputted, the row number...
November 6, 2014 at 10:17 am
Alan.B (11/4/2014)
I like the idea, tinkered a little bit with the code and got the average execution time...
November 6, 2014 at 9:14 am
aaron.reese (11/6/2014)
that ERD must have taken you hours!
Less than five minutes in vi, slightly more in notepad++
😎
November 6, 2014 at 4:46 am
Further on Koen's question, restarting the service is not a blanket solution, in fact the same principle applies here as elsewhere, why "fix" it if it isn't broken? Also you...
November 6, 2014 at 3:27 am
Hi and welcome to the forum.
Further on Stewart's answer, have a look at this article, Detecting and Ending Deadlocks
Avoiding deadlocking is best done by design, making certain that resources...
November 6, 2014 at 2:27 am
Quick suggestion, instead of nesting IIF's use the Switch statement
😎
=Switch(
Fields!Currency.Value = "USD" ,"'$' #,0;('$' #,0)"
,Fields!Currency.Value = "AUD" ,"'AUD' #,0;('AUD' #,0)"
,Fields!Currency.Value = "EUR" ,"'€' #,0;('€' #,0)"
,Fields!Currency.Value = "GBP" ,"'£' #,0;('£'...
November 6, 2014 at 2:09 am
Quick crosstab as an alternative to the pivot
😎
USE tempdb;
GO
SET NOCOUNT ON;
Declare @detail table
(
grn_no varchar(55),
po_no varchar(50),
vendor_no numeric(10,2),
...
November 6, 2014 at 1:59 am
Quick suggestion, add WITH NOWAIT to the RAISERROR
😎
BEGIN
BEGIN TRAN;
RAISERROR ('Sorry!You have entered more discount',16,1) WITH NOWAIT;
ROLLBACK;
END
November 6, 2014 at 1:06 am
Quick suggestion, change the primary key, something like this:
😎
IF OBJECT_ID('') IS NOT NULL DROP TABLE BasicData;
CREATE TABLE BasicData
(
BasicData INT IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED
...
November 5, 2014 at 1:10 am
Quick question, an you post the ddl (create script) for the destination table?
😎
November 5, 2014 at 12:16 am
Jeff Moden (11/4/2014)
Eirikur Eiriksson (11/4/2014)
Just dawned on me, kind of a deja vu, here is around six years old thread on the same subject.😎
Heh... after 6 years, we might finally...
November 4, 2014 at 8:18 pm
pietlinden (11/4/2014)
(I must be learning! I was close!)
Almost there;-)
😎
November 4, 2014 at 1:26 pm
Ed Wagner (11/4/2014)
November 4, 2014 at 10:26 am
Viewing 15 posts - 6,631 through 6,645 (of 8,753 total)