Viewing 15 posts - 2,161 through 2,175 (of 7,615 total)
I can't test these since you didn't provide directly usable test data:
--if you need only the acct_ids
SELECT acct_id, COUNT(*) OVER() AS total_accts
FROM my_table
GROUP BY acct_id
HAVING MIN(street +...
November 13, 2020 at 2:32 pm
As noted by Brian, your table design is completely wrong. You've then had to corrupt the data to fit it into the bad table structure.
For example, the language is "English". ...
November 13, 2020 at 2:11 am
I think there is one way you can try the upgrade path.
IF your san/disk/software allows you to snapshot a given point-in-time on disk, and accurately restore everything on disk (including...
November 12, 2020 at 2:27 pm
OP = "original poster", i.e., the person that originally asked the q (or, rarely used and only by some people, "original post")
November 11, 2020 at 8:52 pm
The actual database and logfiles should preferably be kept on same drives as they are now.
The most simple approach I can come up with is:
November 11, 2020 at 4:16 pm
I think you're correct, you should do this for all tables. No sense wasting resources scanning a 900-row table either. Of course that 900 rows could be far...
November 11, 2020 at 12:13 am
I think you're correct, you should do this for all tables. No sense wasting resources scanning a 900-row table either. Of course that 900 rows could be far larger than...
November 10, 2020 at 8:35 pm
Hmm, I wouldn't think there'd be a direct money charge just from having to reread something into RAM. Then again, that could change by vendor I guess (we use MS).
But...
November 10, 2020 at 8:31 pm
/*INSERT INTO dbo.input_Main_data ( ... )*/
SELECT new_rows.*
FROM dbo.input_Main_data iMd1
CROSS APPLY (
SELECT TOP (1) *
FROM dbo.input_Main_data iMd2
...
November 10, 2020 at 8:04 pm
SQL row/page compression is typically extremely helpful to reduce disk space. Before SQL 2016, I believe you must have Enterprise Edition for it to be available.
Yes, I...
November 10, 2020 at 2:15 pm
I see the big issue as one of less RAM. I suspect the max ram you receive will be far less than what you'd get in an on-premises db.
When fragmentation...
November 10, 2020 at 2:12 pm
Here's a method I often use. "Ideal", don't know.
Use full backups and differentials. Generally a differential restores very quickly (you can do the "base" restore of the full backup ahead...
November 9, 2020 at 5:25 pm
If hyperthreading is present (most CPUs use this nowadays), set MAXDOP to no more than half the cores, in your case 4.
If NUMA is being used, set it to no...
November 9, 2020 at 4:24 pm
SQL row/page compression is typically extremely helpful to reduce disk space. Before SQL 2016, I believe you must have Enterprise Edition for it to be available.
November 9, 2020 at 4:18 pm
In the main table storage area, a row will be on one and only one page. Any other data for that row must go to overflow pages.
-1- There's not an...
November 9, 2020 at 4:15 pm
Viewing 15 posts - 2,161 through 2,175 (of 7,615 total)