Viewing 15 posts - 3,376 through 3,390 (of 59,086 total)
Until we know for sure that the left side is absolutely guaranteed to be 4 digits with no leading zeros and the same with the right side with no leading...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 7, 2022 at 1:40 am
Apologies for the numerous posts. I just find problems like this to be interesting.
I was using literal integers instead of variables before. In previous versions of SQL Server, that used...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 7, 2022 at 1:33 am
If there's a guaranteed 4 significant digits to the left and no more than 7 digits to the right, this will also work. It still has the issue of being...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 7, 2022 at 12:50 am
Well blow me down. I took my other post I had here down. The string method Jonathan posted beats even the pure integer math in this case.
Here's the test table...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 7, 2022 at 12:03 am
Have you actually had to do such a thing where you work?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 10:50 pm
Does the table actually exist and you're just checking to see if the column exists or will the table actually be missing?
In either case, I'm pretty sure that you're going...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 10:47 pm
Here's the code to get the two values as separate integers. I've also included code to concatenate them as a string. I still don't believe that joining them together is...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 10:35 pm
I take it that the zero's between the two obvious parts could be consumed by an increasing value of the right part or will it ALWAYS be 7 digits (no...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 8:37 pm
One area where it seems XML is required is for the conversion/encoding of strings to varbinary base 64. Altho if there's newer way I'd be interested to hear about...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 8:15 pm
found the answer
https://stackoverflow.com/questions/18010850/sql-with-clause-within-a-with-clause
Happy coding!
Can you post the solution for the code you posted?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 5:50 pm
I'm learning xml. I'm getting the hang of the nitty gritty, tags, elements, etc. I haven't come across the WHY except that it's "good for sharing across platforms." So...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 5:18 pm
@scott... the comment about "magic" wasn't meant as a slam to you. It was meant as a slam to MS because they claim that you can do minimal logging if...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 5:03 pm
There's gotta be a way to read the manifest of files from a zip file in SSMS. Almost everything else has that capability.
Not sure what you are getting...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 5:09 am
Apologies on the mistake about COMPRESS.
I know you think that 2016 is magic after the first insert. The documentation says that new pages will be minimally logged. I'll have to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 5:07 am
Thanks for your responses,
We have more sorts and joins.
Thank you
A lot of that can be resolved by indexes in most cases. In some cases, the indexes won't actually be...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 6, 2022 at 5:02 am
Viewing 15 posts - 3,376 through 3,390 (of 59,086 total)