Viewing 15 posts - 331 through 345 (of 6,036 total)
Subject of Orig Post:
The Data are logs from Many different machines (1000s). The table was actually installed as a heap. The Table is 98% of the DB size....
September 4, 2020 at 3:07 pm
But.. If some reports don't filter on Date they wouldn't benefit from the new index design.
I bet there is no query which benefits from the current index design.
Well, the inserts...
September 4, 2020 at 2:13 pm
Why is an Autoincremental bigint ID a bad idea for a clustered index?
Telephone numbers are allocated to devices/SIM cards incrementally, in sequence. It's one of examples of auto-incremental ID's we...
September 4, 2020 at 11:26 am
The basic reporting queries we've discussed are
Select …... where DateAdded > '20200903' and DateAdded < '20200903' and type='error'
With this kind of queries you need a clustered...
September 4, 2020 at 3:41 am
Look inside the code and find out what it uses as grounds for its recommendations.
Then you'll be able to figure out what's different in your environments.
P.S. Professional racers never use...
August 30, 2020 at 3:33 am
Compression to save disk space is of dubious value unless it saves IO.
With technologies such as Fusion-IO and SSDs where you are talking about literally thousands of times...
August 30, 2020 at 3:17 am
Hi:
I have semi-colon separated data in one column and I would like to split that in separate columns.
May I ask you where do you have the data coming from...
August 30, 2020 at 2:01 am
You need to declare those variables in sp_executesql as OUTPUT parameters
August 28, 2020 at 3:20 pm
No, on a non-partitioned table, there is no way to build chunks / parts of indexes (frankly I think there should be, but there isn't).
Filtered index?
August 28, 2020 at 6:03 am
I prefer to use SQL_VARIANT instead of NVARCHAR(MAX) for generic columns.
It keeps numbers as numbers, datetimes as datetimes, avoiding potentially dangerous conversions to character strings and back.
N'CAST('...
August 27, 2020 at 2:54 am
The best way to rebuild indexes is not to do it.
You need to work on your index strategy. It's named "strategy" for a reason. Correct approach to indexing structure pays...
August 27, 2020 at 2:30 am
"superior ability in SSIS" is strictly opposite to very efficient and elegant designs", as well as "very strong SQL programming".
SSIS is pretty ineffective, bulky and hard to manage tool for...
August 26, 2020 at 6:53 am
queries on ID are typically for a single record, rarely for a small group of ID's mentioned in a list.
nobody is ever interested in records with ID's within a range,...
August 25, 2020 at 12:31 am
Bad choice of clustered index.
It must be not on identity column but on [Date].
August 24, 2020 at 5:40 pm
You hid the name of the remote machine you’ve connected to.
I bet it’s not “26003D9”
That machine must have DLS enabled, and the server hosting the SQL Server instance must have...
August 23, 2020 at 2:24 pm
Viewing 15 posts - 331 through 345 (of 6,036 total)