Viewing 15 posts - 106 through 120 (of 198 total)
For the sake of completeness, CHOOSE() ignores errors too, until you access this value:
-- works well
DECLARE @i INT = 4;
SELECT CHOOSE(@i, 10,20,30,3.14,50,'Test', 1/0)
GO
-- returns division by zero...
God is real, unless declared integer.
January 6, 2020 at 4:24 pm
When disk I/O is no longer a problem, it comes to CPU and network I/O... To reduce the CPU load (and disk I/O) you could e.g. tune your queries /...
God is real, unless declared integer.
December 20, 2019 at 10:48 am
Even after several minutes of thinking, I can't really anything I know about indexing flag as only nice-to-have. Ok, maybe you could just skip the whole in-memory-table stuff with its...
God is real, unless declared integer.
December 16, 2019 at 3:03 pm
theoretical you could have added one more file to the filegroup and used
DBCC SHRINKFILE (N'<original file>' , EMPTYFILE)
to move all data into the new files (will be evenly distributed in...
God is real, unless declared integer.
November 7, 2019 at 2:28 pm
When your 500 GB database would use multiple filegroups (and the bigger tables are ideally partitioned into different FGs too), then you would be able to do a partial restore...
God is real, unless declared integer.
October 29, 2019 at 3:26 pm
I find the answers a little bit misleading. If a column is part of another index, FK or constraint, it just can't be dropped (without dropping / changing the index,...
God is real, unless declared integer.
September 25, 2019 at 8:45 am
CHECKSUM(*) or BINARY_CHECKSUM(*) could be an option but this needs all columns in the same order and (sometimes) equal data type.
Beside of this the function may work or a good...
God is real, unless declared integer.
September 23, 2019 at 2:37 pm
when they come running for restore of a proc from a 400GB database it kinda changes their mind
Forbit them to create any table in the primary filegroup, than this...
God is real, unless declared integer.
September 20, 2019 at 7:07 am
Nice article.
My main problem with the fill factor is, that I can't set it per partition. So I have either to waste a lot of space in my old, cold...
God is real, unless declared integer.
August 27, 2019 at 2:37 pm
@Carlo: so the dot in SELECT 1.test is not a whitespace or a dot as between filename and extension, but a simple decimal separator without a following decimal number as...
God is real, unless declared integer.
August 26, 2019 at 3:07 pm
Jobdescription: Well, it depends 🙂
God is real, unless declared integer.
May 24, 2019 at 12:16 pm
be aware, that adding dates / times only works with the DATETIME data type but not with the new (ANSI compatible) DATETIME2 (this would cause Error 8117: Operand data type...
God is real, unless declared integer.
April 23, 2019 at 2:35 pm
Just stumbled over this old question.
A possible anwere would be: try to disable the index instead of dropping it. After the switch you have to rebuild it (may take very...
God is real, unless declared integer.
April 10, 2019 at 12:54 pm
I miss one important version:
If you regularly filter for Status = 5 (and not 3 or 4 or 6 or anything else) and OrderDate BETWEEN x and y, the...
God is real, unless declared integer.
February 28, 2019 at 5:45 am
The tinyint is not your problem. Sure, after changing it to smallint, you will not receive an aritmetic overflow exception, but your data will be invalid (negative). So you only...
God is real, unless declared integer.
February 6, 2019 at 6:30 am
Viewing 15 posts - 106 through 120 (of 198 total)