Viewing 15 posts - 406 through 420 (of 7,608 total)
You specify either a partition or a filegroup, not both (if partition, the partitioning will determine the filegroup(s) used).
create index IX_Service_Start_Date ON ivc_cds.CDS_Claim_Header (Service_Start_Date )
WITH (FILLFACTOR = 98, SORT_IN_TEMPDB =...
July 20, 2023 at 3:02 pm
Try this:
SELECT DISTINCT Lotr.LabOrderUnique,
STUFF( (SELECT DISTINCT CAST('^' AS varchar(max)) + CAST(lotr1.TestName AS varchar(max))
FROM dbo.Ncs_conv_IntergyMM_Labordertestresult AS...
July 17, 2023 at 8:44 pm
You very likely already have a clustered index on the table, on ( ClaimHeaderID, ClaimLineID ). (That's a vastly better clus key than an identity column, btw.)
You can only have one...
July 13, 2023 at 9:52 pm
But you're going to have to include the date in the clustering key to do partitioning anyway, you might as well change the clustering first. And that will be less...
July 13, 2023 at 9:47 pm
By far the best performance payoff for this is creating the best clustered index on the table, as coded below. You would likely not even need to partition then.
Based on...
July 13, 2023 at 7:34 pm
Clustering by the date will solve the performance issues. Partitioning will aid performance only if you need to rebuild the table, in which case you would only need to rebuild...
July 13, 2023 at 3:06 pm
That should be fairly easy using tally tables.
The trickier part would be excluding certain letter combinations, meaning of course you have to determine which ones to omit. For example: 'ASS',...
July 12, 2023 at 7:40 pm
This should give you some idea. With that partitioning, you can no longer have ClaimLineID as a pk (or even a stand-alone unique index/constraint).
If you can use data compression, you...
July 12, 2023 at 7:37 pm
Not at that level.
I believe ONLINE create/rebuild of indexes is not available in standard.
If you're on SQL 2016 on above, data compression is still available.
July 12, 2023 at 1:14 pm
I would definitely use a conversion table.
Personally I prefer the "A[0-9][0-9]" format.
July 11, 2023 at 8:32 pm
Here's an alternative, an all-in-one function that directly produces the last_business_days from start_date and end_date params.
If for some reason you needed more than 100 months of results, naturally you'd have...
July 10, 2023 at 2:08 pm
If you don't already have an index on the dbo.OptionsEOD table to directly support the "LAG(T1.CLOSE_PRICE) OVER PARTITION BY T1.UNDERLYING_SYMBOL, T1.ROOT_SYMBOL, T1.EXPIRATION, T1.STRIKE, T1.OPTION_TYPE ORDER BY T1.QUOTE_DATE)" you should try...
July 3, 2023 at 1:37 pm
as an example - assume a sequence increment of 500 - and you need 5000. ...
you do a "SELECT NEXT VALUE FOR sequencename; " 10 times and you immediately...
June 30, 2023 at 9:44 pm
The most important thing (assuming basics such as enough RAM and CPU, etc. are OK) is likely to analyze missing index data (do not blindly build all indexes SQL suggests). ...
June 29, 2023 at 3:08 pm
SQL Server does not allow duplicate column names in a table.
You could put brackets in the actual column name if you really wanted to, although of course that's a terrible...
June 22, 2023 at 3:03 pm
Viewing 15 posts - 406 through 420 (of 7,608 total)