Viewing 15 posts - 166 through 180 (of 751 total)
where Date From >= '2020-04-01' and Date To <= '2020-04-28'
There is no data in your sample that meets that requirement.
In
2 ----- 2020-04-01 ----- 2020-04-30
Date...
March 21, 2023 at 2:53 pm
Is there a reason you don't have a clustered index or primary key? (may or may not be the same)
March 20, 2023 at 3:53 pm
Is TempDB on the C Drive? Is it growing/filling the drive?
Or is it actually SSMS temp files mentioned previously?
Check/tune their queries if possible.
March 7, 2023 at 8:41 pm
Is there a reason the app team can't tell you which columns are unused?
You could use server-side trace or extended events to log executions over a period long enough to...
March 6, 2023 at 6:37 pm
Actual execution plan (obfuscated as needed) could help. Part of an image is of limited value.
What are the actual outputs?
Are there scalar or multi-statement table-valued functions involved?
The costs pictured are...
March 6, 2023 at 2:13 pm
You probably could/should simplify SiteType to not be organization specific -- e.g.,
Then it doesn't need OrgTypeID.
March 2, 2023 at 3:29 pm
Sample data would help, but it appear that relationships to UserOrgType & UserOrgSiteType are wrong.
userOrgTable should probably have:
March 2, 2023 at 3:26 pm
There's not much optimization you can do for selecting all rows and columns from a table -- best optimization is to return fewer columns is you don't really need all.
The...
February 28, 2023 at 3:25 pm
What type of values are used in ROWID_LOCK?
Are they numeric strings? alphanumeric?
Are they ordered or random?
February 27, 2023 at 9:31 pm
Are you actually seeing performance issues as a result of page splits?
February 27, 2023 at 9:03 pm
Is this related to/a continuation of https://www.sqlservercentral.com/forums/topic/pagesplits-question?
Why don't you have a clustered index?
What column(s) are used in the where clause for doing deletes?
February 27, 2023 at 8:59 pm
You also need to rebalance your tempdb files -- they should all be the same size. This will, unfortunately, require restarting SQL Server service.
e.g.,
ALTER DATABASE tempdb
MODIFY FILE (Name=tempdev, size =...
February 23, 2023 at 8:03 pm
You post data by providing tested/working insert scripts that insert test data into the relevant tables for which you have provided DDL scripts.
That has been mentioned before -- e.g., https://www.sqlservercentral.com/forums/topic/dimensional-table-and-stored-procedure#post-4145269
February 23, 2023 at 2:10 pm
member_number is a bigint in [localgroupmembershiprostercsv__$], & MemberNumber is only an int in @Temp & Members? Are any of the member #s larger than an int & possibly truncated (which...
February 22, 2023 at 8:38 pm
Sounds like a prelude to spam.
February 20, 2023 at 8:59 am
Viewing 15 posts - 166 through 180 (of 751 total)