Viewing 15 posts - 2,971 through 2,985 (of 59,098 total)
Here is an example where it goes from a NULL value to a Positive number then a Negative number in a three hour period.
WD 1116.0 (HILINE)1413HI...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 8:26 pm
Hi Jeff,
First thank you for responding,
The first column is the name of the locations. some are represented as a decimal representing the mile post of a location, however it...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 8:22 pm
Heh... when I read through this, my thought was "This is one of the primary reasons I don't use SSIS". 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 5:39 pm
The next step of Piet's recommendation can be found in the documentation for SQL Server. Look for "Partitioned VIEWS".
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 5:34 pm
Your test data appears to contain two different line types, the rows for "E Hazen" being different than the rest. Save us some time and tell us which set of...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 1:45 pm
You're welcome and thank you for the feedback.
The articles are based on "pivoting" numeric values but you can do like Kaj suggested and use Min or Max to pivot text. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 1:48 am
You added "columns" to the CROSS APPLY and changed the width of some but you didn't change the substring values that look like this...
,11,10)
,21,10)
,11,10)
,21,10)
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2022 at 12:26 am
The difference between a datetime vs a datetime2 for this seems not very relevant for just capturing entry date the precision difference between the two is within the margin...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 10:56 pm
Thanks Jeff this looks fantastic! I truly appreciate the time you took to put this together.
I updated the CTEs to the best of my understanding but I can not...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 9:23 pm
Huh? why would that be?
I have no clue about why that would be. It was an observation especially but not limited to what should have been VARCHAR data...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 5:12 pm
What sort of overhead does it have on the server when running, and any idea of duration on a 2.1 billion ow table?
There have been a lot of ideas...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 5:08 pm
First, thanks Jeffrey and Steve for the feedback.
Also, I'll state that I never make final performance decisions based on what's in an execution plan and so I'm going to have...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 4:47 pm
p.s. Since you've not been around since the 90's, you might want to have a look at the introduction to a technique that is extremely useful for a whole lot...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 4:39 pm
Thank you Jeff.
It was just an example code from a book I'm reading intended to exemplify the use of WHILE in TSQL. Maybe it's not the best example, but...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 4:26 pm
The reason for the Derived Table "X" is so that they can use a WHERE clause to control how may rows are returned much like would be done using a...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 16, 2022 at 1:06 am
Viewing 15 posts - 2,971 through 2,985 (of 59,098 total)