Viewing 15 posts - 121 through 135 (of 291 total)
Sure, sure, sorry. the script attached.
beautiful thing.
Criteria for Columnstore candidate table selection is listed in the comment.
April 5, 2020 at 3:40 pm
THANKS!
Question: can there be any reason that an error will be thrown while attempting to compress the table? Like what should be 'wrong' with table to cause the compression to...
April 5, 2020 at 11:41 am
The saved results look like in the attached screenshot.
My other doubt is whether it is worth at all to save/persist this info for baselining or other purposes.
Should the results of...
March 31, 2020 at 12:26 pm
Thank you!
dm_db_index_usage_stats helps.
March 20, 2020 at 5:21 pm
I did this
but test result from resting the entire SP (before and after) that this statement is a part of was different, that's why I doubted.
AND (@i_PARAM1_field = @i_PARAM3_field OR...
March 15, 2020 at 1:28 pm
Ok. Thanks.
I got it this way:
SELECT
job.job_id,
notify_level_email,
name,
enabled,
description,
step_name,
command,
server,
database_name
FROM
msdb.dbo.sysjobs job
INNER JOIN
msdb.dbo.sysjobsteps steps
ON
job.job_id = steps.job_id
WHERE
sysjobsteps.Command like '%table1%'
OR
sysjobsteps.Command like '%table2%'
March 13, 2020 at 11:53 am
ok. now i fully see how it is working. But since we are going to run this job on Sundays only, so we are fine with the code then. I...
March 9, 2020 at 1:32 am
but then why to juggle it ti like that
This whole thing returns date of midnight following the today's date.
Like what are we saying? Delete all records that are dated earlier...
March 8, 2020 at 7:39 pm
Thank you! I cannot believe I either forgot or did not know about default value for 'zer0' or for ' ' for datetime datatype...
I ran this to confirm.
create table wdi(datum...
March 8, 2020 at 7:33 pm
it appears that select DATEDIFF(wk,0,GETDATE())
returns 6271 , which . divided by 52 - 120 years.
so it is weeks since the year 1900.
March 8, 2020 at 7:21 pm
yes, you right. I just assumed that. it is not what it means. What does parameter value = 0 mean in Datediff function in such case?
March 8, 2020 at 7:13 pm
this part confuses me:
DATEDIFF(wk,0,GETDATE()),
and this was a one time run query in prod, not scheduled. Deleting old rows... i actually need to make an SP out of it with params...
March 8, 2020 at 6:40 pm
March 1, 2020 at 2:34 pm
THIS works:
WHERE ((T.record_Key_4 = '1' OR T.Record_Key_5 NOT IN('I', 'X')) AND PS.popup_gid = 2)
OR ((T.record_Key_4 <> '1' AND T.Record_Key_5 IN('I', 'X')) AND PS.popup_gid = 5)
thanks for your help !!!
February 10, 2020 at 1:08 pm
here is Create Table DDL.
February 7, 2020 at 8:38 pm
Viewing 15 posts - 121 through 135 (of 291 total)