Viewing 15 posts - 2,071 through 2,085 (of 7,614 total)
The ORDER referred to is when using BULK INSERT, for example loading a physical file into a table.
In those cases, adding "WITH ( ORDER(clus_key1, clus_key2) )" can allow SQL to...
December 11, 2020 at 10:34 pm
(I originally used the wrong quote with my comments here, so I've repeated them below but with the correct quote first.)
December 11, 2020 at 10:28 pm
A lot of places do tran log backups every 15 minutes.
December 11, 2020 at 5:55 pm
No. The human brain is designed to recognize patterns. Sticking with a familiar patterns drastically speeds up...
December 11, 2020 at 5:28 pm
1 min is just way too often. Especially for only 1000 rows per day. That's a miniscule load for SQL Server.
December 11, 2020 at 5:05 pm
No. The human brain is designed to recognize patterns. Sticking with a familiar patterns drastically speeds up recognition of...
December 11, 2020 at 4:11 pm
Thanks Scott, you have waaay too much time on your hands.
That was effectivley what I was going to do but rather than create 300 views, just dump the data...
December 11, 2020 at 3:19 pm
Ok... you said that the entire table is generated nightly. That makes me want to assume that you're not actually doing any updates or additional inserts to the...
December 11, 2020 at 3:09 pm
That is, something like this. I had to set up directly usable data myself to verify the code, which, btw, took me longer than writing the code itself! In the...
December 10, 2020 at 2:25 pm
I would create a view matching each AttributeType. I think that would be the easiest to use. Is there some reason that wouldn't work for what you need here?
December 10, 2020 at 2:02 pm
The lazy programmers' way to delete from complex data structures is to get a data comparison tool to generate the SQL DELETE transaction. Where I work we've used 2...
December 10, 2020 at 2:44 am
I'm also trying to improve overall performance, not just the load time.
December 9, 2020 at 10:10 pm
What do you mean by row number? How is that column created and populated - is it really an identity column? If it is really an identity column then...
December 9, 2020 at 9:56 pm
NEVER use ISNULL() in a WHERE or JOIN.
Instead, in this specific case, use this method:
select * from #OutputTable
where (@SeasonalAddressFlag = 0 OR SeasonalAddressID IS NOT NULL)
December 9, 2020 at 4:37 pm
where the Primary Key/Clustered Index is based on SalesOrderID (identity column)
And that's the issue.
If you will often query by OrderDate BETWEEN ..., then cluster the table on:
( OrderDate, SalesOrderID )
in...
December 8, 2020 at 10:49 pm
Viewing 15 posts - 2,071 through 2,085 (of 7,614 total)