September 25, 2016 at 3:22 pm
hi,
one of the query is having the below parameter
declare @StartDate DATETIME
select @StartDate= SWITCHOFFSET(CONVERT(DATETIMEOFFSET, (DATEADD(day, -1, GETDATE()))), '-10:00')
and we used startdate in where condition.It is taking login time 48 seconds run in one server but when we execute it from linked server through ..its giving result in 2 seconds ..is there any server setting issue ?
January 27, 2017 at 1:27 pm
look at the execution plan to find clues
Replace the * with the actual column names - don't know why, but it sometimes helps
add index to each column and try (until you find the best one)
try to change the primary key's index type - try Clustered instead of Non-Clustered
try to create a view upon this table and query from the view instead
September 26, 2018 at 11:30 pm
This was removed by the editor as SPAM
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply