Viewing 15 posts - 1,441 through 1,455 (of 7,608 total)
To get TEXT data off the main page, before you load the table, issue this command:
EXEC sys.sp_tableoption '<your_tablename>', 'text in row', 0
That will force all TEXT data into the LOB area,...
July 1, 2021 at 9:46 pm
What's the avg len of the (MAX)?
You should analyze whether forcing them to LOB overflow would be better for your setup.
COMPRESS is slow when inserting, but it can save a...
July 1, 2021 at 7:07 pm
True, key lookups aren't ideal, but in that case you don't have any choice. A nonclustered index on the guid with a key lookup is your best option there.
Some other...
July 1, 2021 at 6:54 pm
Assuming you don't want to return the second if the first gets a match -- you never really stated exactly -- then do this:
SELECT mt.BusinessUnit, mt.PartNum, mt.WONum, mt.TransDate, mt.TransQty, ISNULL(ot1.WOQty,...
July 1, 2021 at 6:45 pm
So my response did not help you at all?
If you need to return data from the non-main tables conditionally, based on whether the WONum appears in each table or not,...
July 1, 2021 at 5:56 pm
DELETE FROM dbo.Table WHERE ID IN (12); ... With the temporal table, deadlocks are guaranteed every time. Only one of the deletions will succeed; the rest...
July 1, 2021 at 5:52 pm
But note that you can get phantom reads and nonrepeatable reads in the default READ COMMITTED mode as well.
And that the majority of issues with NOLOCK are caused by SQL...
July 1, 2021 at 5:49 pm
Sadly, on 2014, you don't have the COMPRESS function available to help you out. But when you upgrade to 2016 (or later), be sure to look into that.
July 1, 2021 at 5:40 pm
(1) No, they are not the same. SQL will move non-LOB data to out of row storage if otherwise a row cannot fit onto its 8K page. For example, if...
July 1, 2021 at 5:37 pm
Based on the limited info we have so far, the JOINs would look something like this:
SELECT *
FROM dbo.main_table mt
LEFT OUTER JOIN dbo.other_table1 ot1 ON ot1.WOQty = mt.WONum
LEFT...
July 1, 2021 at 5:19 pm
DELETE FROM dbo.Table WHERE ID IN (12);
...
With the temporal table, deadlocks are guaranteed every time. Only one of the deletions will succeed; the rest will fail.
We have tried ......
July 1, 2021 at 5:16 pm
Many index-suggestions I get from the database I'm working on, very often suggests quite alot of include-columns. Could this be a sign of poor database-design? As far as I...
July 1, 2021 at 3:18 pm
No idea. They're not system tables that are intrinsic to MS. Some other user/3rd party code/script must be creating them.
June 30, 2021 at 8:51 pm
Again, you haven't ever done an actual logical design, have you? Genuine data modeling, with no indexes, etc.., where you went through a true normalization process.
Heh... more...
June 30, 2021 at 8:08 pm
BWAAAA-HAAAA-HAAAA!!! Ok... I "get it". Yep... I agree... you never have to mention "IDENTITY" in a logical model. I have to tell you, though, that the idea of having...
June 30, 2021 at 6:53 pm
Viewing 15 posts - 1,441 through 1,455 (of 7,608 total)