Viewing 15 posts - 436 through 450 (of 7,597 total)
Unfortunately there's very little activity against this table shown in the stats -- no more than 5 days' worth of activity. Either SQL was restarted or a change was made...
May 9, 2023 at 9:50 pm
Not nearly enough to go on to analyze indexes.
If you'll run this script and post the two results from it, we can go further from there. PRIOR to running, be...
May 9, 2023 at 8:42 pm
SELECT
p.name AS [Plan], --<<--
--everything else same as before--
May 1, 2023 at 4:04 pm
I would think you'd need to just do this:
...
BEGIN TRY
IF @object NOT IN ('TableA', 'TableB') --<<--
BEGIN --<<--
SET @subject = @@SERVERNAME + N' : ' + @event +...
April 28, 2023 at 5:24 am
Are you partitioning the table solely to improve SELECT performance?
How is the table clustered? That is, what is the clustered index on the table now. If the clus index starts...
April 19, 2023 at 8:14 pm
DECLARE @time_to_stop_running time
SET @time_to_stop_running = '4:30PM'
WHILE 1 = 1
BEGIN
SELECT <column(s)>
FROM dbo.<your_error_table>
WHERE ...
...
April 14, 2023 at 4:45 pm
The business I'm at certainly doesn't require more than 200 gender "types." Neither does yours I'm sure, nor anyone else's at this point (I guess some ultra-woke colleges...
April 13, 2023 at 2:34 pm
Thank you all.
And as for space, if we have 100GB of data, then we have a 100GB of data. But I'd rather have 90GB data if that simply...
April 12, 2023 at 5:51 pm
SELECT Student_ID
FROM dbo.table_name
GROUP BY Student_ID
HAVING MAX(CASE WHEN Student_Status = '2' THEN 1 ELSE 0 END) = 1 AND
MAX(CASE WHEN Student_Status <> '2' THEN...
April 11, 2023 at 3:24 pm
If you're that worried about space, you could just a minutes displacement from Jan 01, 2023. So, midnight on that date would be 0. 2PM would be 14*60, etc.. Not...
April 11, 2023 at 2:19 pm
SELECT Student_ID
FROM dbo.table_name
GROUP BY Student_ID
HAVING MAX(CASE WHEN Student_Status = '2' THEN 1 ELSE 0 END) = 1 AND
MAX(CASE WHEN Student_Status <> '2' THEN 1 ELSE...
April 10, 2023 at 8:20 pm
Temp tables should work, but for best performance be sure to create a unique clustered index on the temp tables to aid in the subsequent joins. You'll want to create...
April 9, 2023 at 1:11 pm
From the nature of some of the code, it looks like all parameters are being passed as NVARCHAR(4000).
It doesn't matter how well code may be written, that generally means...
April 8, 2023 at 7:16 pm
Viewing 15 posts - 436 through 450 (of 7,597 total)