Viewing 15 posts - 1,246 through 1,260 (of 10,144 total)
DuncEduardo (8/23/2016)
Running Total will keep adding next value but not...
August 23, 2016 at 6:58 am
JasonClark (8/23/2016)
CREATE TRIGGER [TR_ProtectCriticalTables]
ON DATABASE
FOR
DROP_TABLE
AS
DECLARE @eventData XML,
@uname NVARCHAR(50),
...
August 23, 2016 at 6:55 am
The second article is written in growlingly poor English. I read it this morning. Despite some relief - in the comments - from the frustrating language and the glaring omissions...
August 23, 2016 at 6:48 am
DuncEduardo (8/23/2016)
e.g. original data contains "Date" and "Value", and we need to update...
August 23, 2016 at 6:14 am
Messi (8/23/2016)
ChrisM@Work (8/23/2016)
August 23, 2016 at 5:46 am
WhiteLotus (8/22/2016)
Thank you for the reply mate 🙂No PK in this table . Why do you ask this question ?
Is there a clustered index on the table?
What proportion of rows...
August 23, 2016 at 5:12 am
SELECT RowId, AssetCode, WorkOrder, RequiredByDate, TimeDown, ReportText
FROM (
SELECT RowId, AssetCode, WorkOrder, RequiredByDate, TimeDown, ReportText,
rn = ROW_NUMBER() OVER(PARTITION BY AssetCode ORDER BY RowID)
FROM #TempTable
) d
WHERE rn = 1
ORDER BY...
August 23, 2016 at 4:22 am
You have two rows in each table where Risk_01_Id_Num = '201600015'. Your result set with four rows is expected behaviour. If you wish to limit the result set to two...
August 23, 2016 at 4:15 am
ashok.theagarajan (8/22/2016)
Select...
August 22, 2016 at 4:33 am
kramaswamy (8/17/2016)
August 22, 2016 at 1:58 am
drew.allen (8/19/2016)
ChrisM@Work (8/19/2016)
UPDATE #test
SET Flag = @Flag
WHERE Id...
August 19, 2016 at 7:52 am
Or even this:
UPDATE #test
SET Flag = CASE
WHEN ISNULL(Flag,peanut) <> ISNULL(@Flag,peanut) THEN @Flag
ELSE Flag -- <-- NON-UPDATING UPDATE
END
WHERE Id...
August 19, 2016 at 7:47 am
Why can't you use this, Phil (substituting "peanut" for an appropriate integer value):
UPDATE #test
SET Flag = @Flag
WHERE Id = @Id
...
August 19, 2016 at 7:41 am
Not uncommon. Here's how someone who really knows what he's doing fixed the very same problem.
August 19, 2016 at 4:48 am
Steve Jones - SSC Editor (8/18/2016)
Luis Cazares (8/18/2016)
August 19, 2016 at 1:51 am
Viewing 15 posts - 1,246 through 1,260 (of 10,144 total)