Viewing 15 posts - 1,051 through 1,065 (of 6,036 total)
There is no way to tell the exact number, but a rough estimation would be 3 times the size of the table, including all the indexes.
In case of 52GB table,...
November 24, 2016 at 7:41 pm
chrisfradenburg (11/22/2016)
November 23, 2016 at 9:09 pm
Ed Wagner (11/22/2016)
Sergiy (11/22/2016)
RonKyle (11/22/2016)
Use a natural key in OLTP designs when possible.
What is you natural key for "person" records?
There isn't one. Anything about a person...
November 23, 2016 at 5:22 am
RonKyle (11/22/2016)
Use a natural key in OLTP designs when possible.
What is you natural key for "person" records?
November 22, 2016 at 6:12 pm
The logic for UPDATE action is not so clear to me.
What outcome is expected after updates?
Does "last record" mean "last changed"?
November 22, 2016 at 4:32 am
I guess this trigger would do what you want to do:
CREATE TRIGGER dbo.trg_MakeLatestRecordActive ON dbo.Records
FOR INSERT, UPDATE
AS
UPDATE R
SET Active = CASE WHEN R.RecordID = i.LastRecordID THEN 1 ELSE 0...
November 21, 2016 at 10:01 pm
Why do you need this part?
BEGIN
Update X_POPDateChange set NEWDATE=inserted.REQDATE
from inserted
END
I believe it can be simply removed.
November 20, 2016 at 2:15 pm
Thanks everyone for positive feedbacks.
For myself I use a simple rule of thumb here:
table is a table, even if it's a temporary one, and within transactions it acts as a...
November 16, 2016 at 8:01 pm
For couple of years I had a can of tuna in my drawer.
I did not put it there, I inherited it together with the drawer from a collegue who left...
November 10, 2016 at 8:58 pm
Hugo Kornelis (11/10/2016)
Sergiy (11/10/2016)
ThomasRushton (11/10/2016)
November 10, 2016 at 4:57 pm
ThomasRushton (11/10/2016)
November 10, 2016 at 2:36 pm
Jeff Moden (11/6/2016)
Luis Cazares (11/2/2016)
That said,...
November 9, 2016 at 7:39 pm
Let's create a test table:
SELECT CONVERT(DATETIME, tg.N ) DT, CONVERT(DATETIME2, DATEADD(dd, N, '19000101')) DT2
INTO #Dates
FROM dbo.TallyGenerator(0,1000000, NULL, 1) tg
CREATE INDEX IX_DT ON #Dates(DT)
CREATE INDEX IX_DT2 ON #Dates(DT2)
Now run the performance...
November 9, 2016 at 4:15 pm
SELECT CONVERT(DATETIME, 42335)
So convenient.
Especially when you need to generate a range of dates from a Tally table.
SELECT CONVERT(DATETIME2, 735930)
Ooops...
SELECT GETDATE() - 1
Easy.
SELECT SYSDATETIME() - 1
Ooops...
Well, if you love...
November 9, 2016 at 4:01 pm
Jeff Moden (11/7/2016)
Sergiy (11/2/2016)
The fastest data transferring channel is a truck loaded with DVD's:hehe:
Or an overnight care package with a monster hard disk in it. 😀 Did that when...
November 7, 2016 at 10:55 pm
Viewing 15 posts - 1,051 through 1,065 (of 6,036 total)