Viewing 15 posts - 256 through 270 (of 7,602 total)
Perhaps, but I would really expect SQL to generate effectively the same query plan for either code for something this straight forward.
February 1, 2024 at 3:57 pm
Your code is not really consistent, but here's my best guess:
UPDATE pt
SET LastModifiedDateTime = @dt
FROM dbo.PlayersTypes AS pt
INNER JOIN @TableTypePlayersRestrictions AS prt ON prt.PlayersRestrictionID = pt.PlayersRestrictionID
February 1, 2024 at 3:20 pm
I'd try to use differential backups, assuming you have a large amount of free disk space in qa, or could get it easily.
When you do a full backup in prod...
January 31, 2024 at 7:24 pm
SELECT
[freetext],
CASE WHEN FC_start = 0 THEN '' ELSE RTRIM(SUBSTRING([freetext], FC_start, FC_length)) END AS value
FROM dbo.testdata
CROSS APPLY (
...
January 30, 2024 at 5:21 pm
If you can provide actual sample data -- CREATE TABLE and INSERT statement(s) -- I can provide code to give you the results you want.
January 29, 2024 at 8:26 pm
No, sorry, it's a custom function.
SET ANSI_NULLS ON;
SET QUOTED_IDENTIFIER ON;
GO
CREATE FUNCTION dbo.DelimitedSplit8K (
@pString varchar(8000),
@pDelimiter char(1)
)
RETURNS...
January 29, 2024 at 7:53 pm
DelimitedSplit8K (assuming the column is varchar(8000) or fewer bytes)
January 29, 2024 at 6:42 pm
What chars are in provPhoneMain and provPhoneFax? We don't have your data, so we have no idea what's in those columns.
January 18, 2024 at 11:58 pm
folks
I can query all transactions for a value B700 that has 9799 records in year 2023 in 2-3 seconds
using the same application, i query C900 in year 2023 and...
January 17, 2024 at 8:16 pm
As I understand it, some volumes now have more than one read-head so that even on the same volume you could theoretically get better performance (but, note, I am NOT...
January 16, 2024 at 10:51 pm
If you're going to ORDER the rows going into the temp table, you might as well have SQL create a clustered index based on that order so the final should...
January 15, 2024 at 6:31 am
And possibly likewise for SYN.Table2:
CREATE NONCLUSTERED INDEX [table2__IX_col2] ON SYN.table2 (col2, col1) ;
January 12, 2024 at 6:55 pm
Don't see a plan, but you could try this, in case SQL's having to do a full scan of SYN.table1 now:
CREATE NONCLUSTERED INDEX [table1__IX_col2] ON SYN.table1 (col2, col1) INCLUDE (ProgramType);
January 12, 2024 at 6:51 pm
Hope it helps. Btw, the first full backup (step (1)) isn't technically required, so you can skip it. The last full backup (step (5)), as noted, is absolutely required.
January 12, 2024 at 6:47 pm
I guess we should verify first that nothing else is preventing the log from being cleared. Run this statement and check the result: the best result to see is "Nothing":
SELECT...
January 12, 2024 at 4:51 pm
Viewing 15 posts - 256 through 270 (of 7,602 total)