Viewing 15 posts - 3,571 through 3,585 (of 13,874 total)
Great Idea! Thanks Phil. This would work if they were loading a full set of data each day, but unfortunately its an incremental load, meaning 24 hr of data...
June 6, 2019 at 1:44 pm
Sorry, can't make any changes to datatypes, columns in the DB.
This will run like a slug (because no indexes can be used), but try
...
WHERE
CAST(RecvdDate AS Date)...
June 5, 2019 at 10:37 pm
Any reason for not changing [RecvdDate] to a Date?
June 5, 2019 at 10:22 pm
Here is what I found. db2 - account_no - data type - decimal sql - account_no - data type - decimal in lookup, i have to use both columns...
June 5, 2019 at 10:07 pm
There is also a traceflag/command for using the old carnality estimator .
Don't remember reading about that in BOL!
June 5, 2019 at 9:07 pm
I called it a daily file in my hypothetical scenario of one that has the same structure of the tables. Sorry if that was not clear or got lost...
June 5, 2019 at 8:13 pm
Did you do your research into the new cardinality estimator? See here, for example.
June 5, 2019 at 8:00 pm
I understand the concept but not how it applies to the situation I'm working with. Suppose today I create a new target table with the VersionCol field you explained...
June 5, 2019 at 7:56 pm
Have a look at this link for a far better example than mine!
June 5, 2019 at 7:23 pm
It's not the same, see the following example:
DROP TABLE IF EXISTS #Source;
CREATE TABLE #Source
(
CrapId INT PRIMARY KEY CLUSTERED
,VersionCol ROWVERSION NOT...
June 5, 2019 at 7:16 pm
Please do not cross-post. Answers here, please.
June 5, 2019 at 4:40 pm
Phil - From what I'm reading about RowVersion, that could be a potential solution going forward but won't help looking back at all of the archived tables to determine...
June 5, 2019 at 4:38 pm
When thinking about it a little differently I have another question. Suppose a daily file with the same structure (300 columns, 3 million rows, and no last modified date...
June 5, 2019 at 4:37 pm
Are you using an OLEDBCommand task to do this? These are notoriously slow, because they process one row at a time, and I recommend that you re-engineer this as follows:
June 5, 2019 at 4:34 pm
Viewing 15 posts - 3,571 through 3,585 (of 13,874 total)