Viewing 15 posts - 76 through 90 (of 708 total)
I would suggest looking into Distributed Availability Groups. A Distributed Availability Group is an 'AG of AGs'; it is comprised of two or more AGs. The Primary Replica on the...
August 15, 2021 at 11:36 pm
Build two lists: the first list is all of the #partattributes code and code types with counts, the second is a list of #test code and code types with counts....
August 9, 2021 at 7:00 pm
Rebuilding a disabled index does the same work as originally creating it.
The difference between ALTER INDEX ... DISABLE / ALTER INDEX ... REBUILD and DROP INDEX / CREATE INDEX is...
August 5, 2021 at 3:50 pm
After you disable an index, you will need to rebuild it in order to use it again. Disabling drops all the storage for an index.
August 4, 2021 at 8:57 pm
If you introduce a decimal type value into the equation, you turn the results from int to decimal. Note the slight difference between the two function calls - one uses...
July 27, 2021 at 8:35 pm
Change your dynamic SELECT into a dynamic INSERT:
/* instead of: */
set @query = 'SELECT PatientID, LastName, FirstName, .....'
/* use: */
set @query = '
INSERT temp_table(PatientID, LastName,FirstName,...
June 17, 2021 at 5:19 pm
You can set up an AG without a cluster in the DR DC. Then you can wire that up to a Distributed AG with the AG in your main DC....
June 14, 2021 at 2:25 pm
Use the ISNULL() function.
ISNULL(<value_to_test>, <result_if_null>)
-- sample data
CREATE TABLE #IsNullTestr(EmpID char(3), TermDate datetime);
INSERT #IsNullTestr(EmpID, TermDate)
SELECT 'AAA', NULL UNION ALL
SELECT 'AAB', '2021-01-01' UNION ALL
...
June 8, 2021 at 12:41 am
You'll need to create two AD groups, one for standard users, who should not see the sensitive columns, and one for privileged users, who can.
Drop the 'all logins' group from...
May 25, 2021 at 8:52 pm
GETDATE(), GETUTCDATE(), etc., are niladic nondeterministic functions.
A niladic function has no parameters. A nondeterministic function returns different values with the same inputs (the exact results of a GETDATE() call cannot be...
May 24, 2021 at 4:17 pm
If you're running in a Windows domain, and looking for a way to have auto-password management for app service accounts, then look into Managed Service Accounts, such as Group Managed...
May 7, 2021 at 7:04 pm
The Licensing Guide can be downloaded from https://www.microsoft.com/en-us/sql-server/sql-server-2019-pricing
You'll quickly note in that doc that there are a variety of ways to buy the licenses with several different enterprise agreement options...
March 16, 2021 at 8:48 pm
Every value that is being sorted (and there are a LOT of them) are shown as 'Expr1140', 'Expr1141', etc. Those aren't the names of the columns in your tables (I...
March 4, 2021 at 4:07 pm
Viewing 15 posts - 76 through 90 (of 708 total)