Viewing 15 posts - 871 through 885 (of 2,648 total)
The important points are these:
- DISTINCT is pretty nasty beast. There is no excuse for lazy programming using it, even if "everyone does it".
I don't see...
May 30, 2021 at 8:21 am
The important points are these:
- DISTINCT is pretty nasty beast. There is no excuse for lazy programming using it, even if "everyone does it".
I don't see why/how GROUP...
May 29, 2021 at 10:52 am
I would attempt to speed the query up with the use of temporary tables, try this for starters:
IF OBJECT_ID('tempdb..#BCMasterydaily', 'U') IS NOT NULL
... May 28, 2021 at 11:36 pm
You will get better performance if you write 2 statements, an update followed by an insert (where not exists)
Performance Tip: The conditional behavior described for the MERGE statement works best when...
May 25, 2021 at 4:17 pm
If you look at the message on the INSERT it says:
"The query had to wait 1164 seconds for MemoryGrant during execution"
That's nearly 20 minutes.
https://techcommunity.microsoft.com/t5/sql-server/understanding-sql-server-memory-grant/ba-p/383595
Try adding this to the end...
May 19, 2021 at 11:39 pm
The most obvious thing you can do is to add the missing indexes to see what difference they make.
I can't see why doing a SELECT * FROM dbo.MyMultilinedTableValuedFunction(@Parm) could be much...
May 19, 2021 at 4:54 pm
Try this.
You also...
May 19, 2021 at 1:09 pm
250 is a lot for a fact table. I had a dimension table that had 573 columns. The problems encountered were during updates due to page splits. So much of...
May 8, 2021 at 11:01 pm
Error 50000 is a user-defined error. You need to provide the code from your stored procedure [I3_CMS].[dbo].[spPackageHistory_Tblu].
Also, you should just have a THROW in the catch instead of setting those...
May 6, 2021 at 11:04 pm
Hello trying to find unique values on the following table
First temporary table query (Master Data)
insert into #tempCOO select sk.CountryOfOrigin,im.partnumber,sk.Quantity,sol.id,lp.id,lpl.id,so.id,p.SerialNumber FROM sk join lpl on sk.LoadPlanLineId = lpl.id join ...
May 6, 2021 at 10:48 pm
I would create a job that runs every 5 minutes with code in it something like this:
DECLARE @CurrentDateTime as datetime = GETDATE()
IF NOT EXISTS(SELECT *
...
May 3, 2021 at 10:58 pm
How long does
SELECT DATALENGTH(varbinmax_col1)
FROM dbo.base_table
take to run?
April 27, 2021 at 5:25 pm
IF OBJECT_ID('tempdb..#lab') IS NOT NULL DROP TABLE #lab
SELECT * INTO #lab FROM (VALUES
( '07/09/2018','Dave', 'Jones', '07/09/2018 09:56', 2301 ),
( '08/09/2018','Jim', 'Jones', '08/09/2018 09:56', 23561... April 26, 2021 at 10:12 am
I for the index that's used in the seek ([IX_game_box...] full name unknown) you need to INCLUDE all the columns from table [game_boxscore_players] that are in the query.
It then won't...
April 7, 2021 at 4:55 pm
The execution plans are identical. For some reason SQL Server hasn't identified the missing index in the second query.
Have you tried creating the index to check that both queries will use...
April 6, 2021 at 5:53 pm
Viewing 15 posts - 871 through 885 (of 2,648 total)