Viewing 15 posts - 2,281 through 2,295 (of 7,608 total)
Much better would have been to create an SSMS server group(s) with all the relevant servers in it(them), then fire off the script for a given server group(s) whenever needed. ...
September 16, 2020 at 9:44 pm
I agree. I'd strongly urge to concentrate on the core aspects of SQL Server first, then learn about PowerShell later if you still want to. There's enough to learn in...
September 16, 2020 at 5:30 am
For new db(s), the support team can "notify itself". It's easy enough to check every day to see if a new db has been created, whether a user tells you...
September 16, 2020 at 4:54 am
SQL Server must pre-format log files (setting each page's non-control data to binary zeros, I think). That will take quite a while for 95GB (apparently 3 hours on your system...
September 15, 2020 at 5:55 pm
Get the best SQL administration book for whichever version of SQL you are on. The "Inside SQL Server"/Internals books with Kalen Delaney are excellent.
For learning T-SQL, get books by Itzik...
September 15, 2020 at 5:46 pm
To clarify, you can compress non-clus indexes, and should often do so, but you must compress each one separately.
Also, 80% is a very low number overall, are you sure you...
September 15, 2020 at 5:38 pm
Be sure also to make sure the "cost threshold for parallelism" is not too low. Hint: the default is too low, if you haven't changed it, you should.
September 15, 2020 at 5:32 pm
5. Avoid using reserved words as column names (PERIOD)
PERIOD is not a reserved word in SQL Server. (Nor is it reserved in ODBC, also not on the list of future...
September 14, 2020 at 9:03 pm
Sorry, I had some difficulty figuring out specifically what you meant.
September 14, 2020 at 7:00 pm
SELECT CustID, COALESCE(CASE WHEN ValidLand = 0 THEN NULL ELSE LandPhone END,
CASE WHEN ValidMobile = 0 THEN NULL ELSE MobilePhone END,
CASE WHEN ValidOffice = 0 THEN NULL ELSE OfficePhone END)...
September 12, 2020 at 2:37 am
SELECT CustID, COALESCE(LandPhone, MobilePhone, OfficePhone) AS Phone
FROM PHONENOS
September 11, 2020 at 3:37 am
Such insanely bloated calendar tables have actually become much closer to the norm.
It's terrible. Create a nonwork days table with only the dates in it (you could also add a...
September 11, 2020 at 2:20 am
And, if forced to work on that SQL statement, I'd still remove the use of ISNULL, no matter what the comments stated.
So like I asked before... what would...
September 11, 2020 at 2:15 am
While I usually and strongly agree that ISNULL shouldn't be used on table columns in a Join, Where, or other column based criteria matching, "It Depends" is...
September 10, 2020 at 9:37 pm
While I usually and strongly agree that ISNULL shouldn't be used on table columns in a Join, Where, or other column based criteria matching, "It Depends" is always a...
September 10, 2020 at 8:03 pm
Viewing 15 posts - 2,281 through 2,295 (of 7,608 total)