Viewing 15 posts - 1,081 through 1,095 (of 7,614 total)
My favorite lie is that NOLOCK improves performance.
Of course it must vs taking locks.
"and use snapshot isolation." MEGA-HUGE overhead. SI should only be used when...
December 22, 2021 at 5:14 pm
"Switching to alphanumeric" from what? Int, bigint? If so, have you used negative numbers yet? Typically the quick-and-dirty way to stretch values is to use the full range of negative numbers. ...
December 22, 2021 at 4:41 pm
And, in never changing historical data, this is read only. Use a read only connection, and use snapshot isolation.
You can't use a "read-only connection" in/for a proc that does...
December 22, 2021 at 4:39 pm
My favorite lie is that NOLOCK improves performance.
Of course it must vs taking locks.
"and use snapshot isolation." MEGA-HUGE overhead. SI should only be used when truly necessary.
You need to...
December 22, 2021 at 4:22 pm
Yes, agree that it would benefit in the read loads. But we should also consider the overhead of CI on write operations. So if the database...
December 22, 2021 at 3:54 pm
It really depends on whether you understand the consequences of NOLOCK. It can result in a 'dirty read' if there are uncomitted transactions in the database that...
December 22, 2021 at 3:49 pm
Yes, agree that it would benefit in the read loads. But we should also consider the overhead of CI on write operations. So if the database is read-intensive...
December 21, 2021 at 7:30 pm
It really depends on whether you understand the consequences of NOLOCK. It can result in a 'dirty read' if there are uncomitted transactions in the database that affect the...
December 21, 2021 at 7:02 pm
Probably this?!:
;WITH Cte_Test_With_Row_Nums AS (
SELECT *,
ROW_NUMBER() OVER(PARTITION BY UserID, Schedule_Start_Date ORDER BY Start_Time) AS row_num
...
December 17, 2021 at 6:45 pm
Once you assign an alias to a table, that alias is the only valid way to reference that table. That's not a matter of preference or opinion. It's...
December 17, 2021 at 1:35 am
You have to understand... I don't actually care what the question was. This isn't stack overflow. I was teaching about the proper forms and you don't need a FROM...
December 16, 2021 at 9:39 pm
There is no need for the FROM clause in the first example.
I also prefer the second example because it's easy to change it to a SELECT to...
December 16, 2021 at 8:17 pm
Once you assign an alias to a table, that alias is the only valid way to reference that table. That's not a matter of preference or opinion. It's a SQL...
December 16, 2021 at 7:28 pm
There is no need for the FROM clause in the first example.
I also prefer the second example because it's easy to change it to a SELECT to see what...
December 16, 2021 at 7:26 pm
Viewing 15 posts - 1,081 through 1,095 (of 7,614 total)