Viewing 15 posts - 121 through 135 (of 295 total)
There is a very good article on this subject (including a discussion of the execution plans) on the link below.
https://www.sqlservercentral.com/blogs/left-outer-join-vs-not-exists
November 5, 2019 at 1:05 pm
“As our circle of knowledge expands, so does the circumference of darkness surrounding it.” - Albert Einstein
October 3, 2019 at 12:40 pm
I like the idea of paying for CPU/Disk/Memory as needed, but I wonder how it would work if we all did it. Where I work currently, there is a background...
September 6, 2019 at 1:33 pm
I may be wrong, but if you're doing SELECT * FROM A EXCEPT SELECT * FROM B, I wouldn't expect indexes to be used as all rows in both tables...
September 4, 2019 at 12:39 pm
Jeff's response about account numbers is the same as my reason for almost always using an IDENTITY as the primary (and clustered) key. As long as it's the IDENTITY column...
August 23, 2019 at 1:02 pm
The UI is probably using bound controls (eg. a datagrid) to update a DataTable. It sounds as if it is then clearing the table and posting each remaining row to...
August 16, 2019 at 1:59 pm
If your database originally resided on a different server (with a different collation), columns created would have used that default. Columns created after the migration would default to the collation...
August 16, 2019 at 1:48 pm
If the stored procedure is returning the same results each time, it might be worth amending it to store those results in a table that can be referred to whenever...
August 6, 2019 at 1:25 pm
Please also pick up on Phil's suggestion regarding the naming of defaults. This will save you so much pain when you put your code into source control and also when...
July 30, 2019 at 12:38 pm
Re: On the other hand, as the father of a son on the autism spectrum, I'm very concerned for those with lower capabilities. How will they work for themselves (assuming they're...
July 19, 2019 at 1:34 pm
You mention the impact on middle management and supervisors; I can imagine AI being able to schedule pointless meetings, but it will be some time before it can realistically take...
July 18, 2019 at 1:38 pm
If you want to be stricter on what should be interpreted as numeric (and are using 2012 or later), you could change the WHERE clause to
where try_cast(TPN...
July 3, 2019 at 12:33 pm
My two favourites were both from COBOL programs many years ago.
June 5, 2019 at 1:47 pm
I mostly use PRINT and temp tables. One other thing I do in all multi-step stored procedures is to declare a variable called @ErrorLocation that is incremented before each step....
May 28, 2019 at 12:36 pm
If GP does all its writes via stored procedures, you can deny write to his login and grant execute to the stored procedures.
May 22, 2019 at 1:05 pm
Viewing 15 posts - 121 through 135 (of 295 total)