Viewing 15 posts - 76 through 90 (of 700 total)
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...
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
Test failures are not included on your public transcript, nor is the score on tests you passed.
After you've reviewed the topics listed on the Microsoft page for the test, you...
February 26, 2021 at 9:56 pm
Another key point is that you don't use SET inside a SELECT statement to assign a value to a variable, you just assign a value:
DECLARE @MyVal varchar(64);
SELECT...
February 19, 2021 at 7:20 pm
You can't encrypt a read-only database. You can store a read-only database's files in an encrypted file system, though.
You have a few options:
February 10, 2021 at 5:24 pm
My question is, where did all memory go since buffer pool is size of 300+GB. Where should I be looking into?
At a basic level, SQL Server prefers to keep 75%...
February 1, 2021 at 7:23 pm
Element names may not have spaces in them.
When the parser looks at <Shipper Reference> it sees an element named Shipper and an attribute named Reference, for which it is expecting...
January 18, 2021 at 10:37 pm
Are you looking to transfer ownership (which does NOT change the schema), or to change the schema of the view from [viewschema] to [tableschema]?
If you wish to change [viewschema].[viewName] to...
December 16, 2020 at 7:01 pm
What is the result of the query when run on Node B? Is the encryption showing progress in any of the AG replicas? The secondary replica will show 0% until...
December 10, 2020 at 3:52 pm
Viewing 15 posts - 76 through 90 (of 700 total)