Viewing 15 posts - 331 through 345 (of 6,036 total)
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...
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
August 30, 2020 at 2:01 am
You need to declare those variables in sp_executesql as OUTPUT parameters
_____________
Code for TallyGenerator
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?
_____________
Code for TallyGenerator
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('..._____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
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,...
_____________
Code for TallyGenerator
August 25, 2020 at 12:31 am
Bad choice of clustered index.
It must be not on identity column but on [Date].
_____________
Code for TallyGenerator
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...
_____________
Code for TallyGenerator
August 23, 2020 at 2:24 pm
Back in the times when I started as a junior SQL developer I faced pretty much identical situation.
There was a Time-and-Attendance match task, which had a solution implemented by 3...
_____________
Code for TallyGenerator
August 20, 2020 at 4:33 am
Viewing 15 posts - 331 through 345 (of 6,036 total)