Viewing 15 posts - 481 through 495 (of 7,608 total)
You can't include any columns in a clustered index (by definition it automatically includes all columns in the table anyway).
Just use the key column(s) you need. It's OK, and often...
March 29, 2023 at 2:32 pm
The DBA's right about the concurrency issue. Also, you should really only create a clustered index on a temp table and it should be created before the table...
March 28, 2023 at 2:11 pm
The DBA's right about the concurrency issue. Also, you should really only create a clustered index on a temp table and it should be created before the table is loaded.
You...
March 28, 2023 at 2:03 pm
You can reference a temp table in dynamic SQL. Could you create a temp table and load it instead?
March 28, 2023 at 1:57 pm
SELECT j.name AS running_job_name,
DATEDIFF(MINUTE, ja.start_execution_date, GETDATE()) AS duration_mins,
ja.*
FROM msdb.dbo.sysjobactivity ja
INNER JOIN msdb.dbo.sysjobs j ON j.job_id = ja.job_id
WHERE...
March 27, 2023 at 2:28 pm
> Two synchronous replica in one region <<
The prod server must wait for the replicas to be in sync. That could also be adding to delay in prod.
March 20, 2023 at 6:39 pm
Typically you create only the clustered index prior to load, and any non-clustered indexes after the load. That's generally the best-performing approach, although theoretically it could be different for a...
March 17, 2023 at 2:39 pm
It's 16 Gb. My laptop from 10-11 years ago had double that amount of ram. My phone from 2010ish with its 480x800 resolution screen had that amount...
March 17, 2023 at 4:43 am
It's 16 Gb. My laptop from 10-11 years ago had double that amount of ram. My phone from 2010ish with its 480x800 resolution screen had that amount...
March 17, 2023 at 4:41 am
It's 16 Gb. My laptop from 10-11 years ago had double that amount of ram. My phone from 2010ish with its 480x800 resolution screen had that amount of storage.
Maybe...
March 16, 2023 at 9:38 pm
A PK is not necessarily an irrelevant cost. If I have 2B rows, for example, the "free" PK costs me at least 16GB of row and storage space.
Some tables simply...
March 16, 2023 at 7:47 pm
SELECT
SUM(CASE WHEN t.create_date BETWEEN @v_from_date AND @v_to_date THEN t.max_column_id_used ELSE 0 END) AS tables_created,
SUM(CASE WHEN t.modify_date BETWEEN @v_from_date...
March 16, 2023 at 2:49 pm
In certain cases or usage situations, SQL Server will require a primary key. One reason is that a primary key is guaranteed to be unique and non-NULL (that is, by...
March 16, 2023 at 2:16 pm
Can you explain further why you want to allow this user to enable/disable system versioning? As far as I am aware - the only reasons to temporarily disable versioning...
March 15, 2023 at 9:42 pm
No. Performance-wise they are exactly the same.
March 15, 2023 at 7:29 pm
Viewing 15 posts - 481 through 495 (of 7,608 total)