Viewing 15 posts - 1 through 15 (of 20 total)
I do agree to Grant and Jeffery. In addition I will check the indexes used in the execution plan. Check for the 'estimated' and 'actual' rows, which can tell if...
February 18, 2021 at 6:40 pm
I would use SSIS. It will give you flexibility to add your custom text as a top row and total count. Also the SSIS can be wrapped up in the...
February 18, 2021 at 1:48 pm
please check the article -
https://docs.microsoft.com/en-us/sql/t-sql/functions/dense-rank-transact-sql?view=sql-server-ver15
February 14, 2020 at 6:43 pm
The trace file along with the Execution plan will be more useful to explain your question about the execution time.
But anyway, according to the trace, the procedure is performing...
June 28, 2017 at 1:20 pm
I couldn't open your attachment in the profiler. Can you verify your attachment?
I do see the outer procedure has many "reads" than the inner procedure. Are you performing...
June 28, 2017 at 10:49 am
Your script worked on my server . I got actually list of failed jobs in emails. Can you check your email profile name and email addresses?
June 28, 2017 at 9:39 am
Try this . This helped me --
October 13, 2016 at 11:39 am
after reviewing the execution plan I think there are few things which we can take care of, for performance -
1. Index IX_Portfolio, on the table dbo.Portfolio needs to be...
October 13, 2016 at 11:29 am
--disable specific key
ALTER TABLE dbo.table1
WITH NOCHECK
NOCHECK CONSTRAINT [FK_table1_keyColumn]
GO
-- Enable specific key
ALTER TABLE dbo.table1
WITH CHECK CHECK CONSTRAINT [FK_table1_keyColumn]
GO
October 13, 2016 at 11:11 am
Can you check the output of your procedure? check the HTML. if the HTML is null then the email will not be received.
August 16, 2016 at 12:14 pm
declare @userid nvarchar(10);
select @userid = '001';
select @user-id, ProdID, ProdTitle, ProdType
from Prod_T pt
where not exists (select 1 from User_Prod_T upt where upt.ProdID...
August 15, 2016 at 2:13 pm
;
WITH MScte
AS (
SELECT h.server,
h.job_id,
h.run_duration,
h.run_date,
h.run_time,
CASE LEN(h.run_duration) WHEN 1 THEN '00:00:0' + CONVERT(CHAR(1), h.run_duration)
WHEN 2 THEN '00:00:' + CONVERT(CHAR(2), h.run_duration)
WHEN 3...
July 22, 2016 at 8:38 am
1. check the execution plan for all the queries.
2. Check if there is a index on date that you are using to filter the data. if not, then create a...
July 21, 2016 at 11:06 am
There are quite a few good articles on the internet with examples.
https://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx
July 21, 2016 at 10:46 am
select name, object_name(object_id) As ObjName,*
from tempdb.sys.objects
where name like '#%'
July 7, 2016 at 7:41 am
Viewing 15 posts - 1 through 15 (of 20 total)