Viewing 15 posts - 1 through 15 (of 154 total)
It allows you to enter duplicate values and then drops them semi-silently.
March 14, 2023 at 11:59 pm
Very cool and useful. Thank-you for your efforts in writing this up.
I also ran into some issues with the Primary key, and changed it to
constraint pk_invalid primary...
March 13, 2023 at 10:30 pm
@jeff.Moden
In previous organisations I took to having a Primary, Data and Index filegroup and put all my clustered indices in the Data filegroup and non-clustered in the Index...
November 8, 2021 at 9:29 am
One thing I am disappointed not to be hearing more about is the use of resumable index rebuilds.
I've stopped using reorganize on huge tables where we can't rebuild because we...
August 2, 2021 at 5:53 am
No mention of using schemabinding on scalar functions that don't actually touch the database. This can provide a significant performance benefit by removing the unnecessary Halloween protection
October 21, 2020 at 7:58 am
The error message for that isn't quite what I got, and with a little tweaking I could add the index
drop table if exists dbo.MonthlySales;
create table dbo.MonthlySales (
...
October 15, 2019 at 6:27 am
We currently get the Lenovo X1 Carbon with 16GB RAM and a 512GB NVMe drive for travel / home use. Plenty for email, browsing and RDP to the desktop over...
May 13, 2019 at 5:29 am
Thanks Stuart
So the subquery becomes (SELECT t1.c1 from t2) which makes even less sense to me!
I appreciate that t1 is in scope and therefore can be parsed and...
March 14, 2019 at 12:03 am
I had to cheat to get this and actually run the code. I got suspicious when I couldn't see the answer I was expecting "Invalid column name 'c1'."
Personally I...
March 13, 2019 at 10:40 pm
Our CTO wrote an article on Forbes about engineering soft skills and culture which you might enjoy.
March 13, 2019 at 10:28 pm
So there are a couple of things that block the re-use of a transaction log.
Firstly, backups prevent the re-use of the transaction log. Backups need the database to...
January 8, 2019 at 10:24 pm
There's always a trace flag to help with this.
Rather than adding option (recompile)
to the end of every select that references the table variable (and therefore...
December 11, 2018 at 8:28 pm
Thanks for reminding me of this!
I built a fairly extensive custom ETL system a few years ago which used MERGE and OUTPUT clause to audit the actions and...
June 27, 2018 at 9:58 pm
So 3 variables x, y and z all defined as DECIMAL (9, 5) (i.e 99,999.99999)
What is the resultant datatype from this calulation
(x * y) / z
Starting with the multiplication inside...
October 4, 2016 at 4:43 pm
Thumbs up for this link posted by xanthos.
https://msdn.microsoft.com/en-us/library/ms190476.aspx
Some time ago I was working with financial services organisation and yield calculations were an important part. Getting these decimal values and sizes...
October 3, 2016 at 2:31 pm
Viewing 15 posts - 1 through 15 (of 154 total)