Viewing 15 posts - 2,641 through 2,655 (of 7,191 total)
Steve Jones - SSC Editor (4/26/2016)
Phil Parkin (4/26/2016)
April 26, 2016 at 9:20 am
info.sqldbamail (4/26/2016)
April 26, 2016 at 7:23 am
I assume that the ID columns in PolicyAudit and Systems are unique? If so, you're only going to get one row because you're joining on them to the single-row...
April 26, 2016 at 4:47 am
Remove them first. Nobody wants orphaned users in their database. It shouldn't be too difficult to write a script that will take the login name, go to all...
April 26, 2016 at 3:49 am
I prefer the nuclear option - if the login is no longer required, get rid of it. If you have proper change control procedures, you'll have a rollback script...
April 26, 2016 at 3:37 am
If you're using SSIS, it's easy. Create a variable called SettingsQuery and set its value with an expression that changes according to what version it's running on. You...
April 26, 2016 at 3:29 am
If you've got all that additional memory in your server and it's not doing anything, then yes, increase your max server memory. Check it's not needed for anything else...
April 26, 2016 at 3:04 am
Did you read the error message?
Msg 207, Level 16, State 1, Line 13
Invalid column name 'physical_memory_in_bytes'.
Try using one of the other memory columns, such as physical_memory_kb. If you can't...
April 26, 2016 at 2:14 am
Leave it as it is. That's how it's supposed to work. SQL Server won't give back memory it has taken unless the operating system asks for it. ...
April 26, 2016 at 2:09 am
Do you have anything else on the server, other than SQL Server? What are the messages you're getting?
John
April 25, 2016 at 1:54 am
Well, I don't have the luxury of being able to see your tables, so I couldn't test it. But I think if you swap those table aliases over, or...
April 21, 2016 at 9:10 am
Something like this...
WITH Departments AS (
SELECT *, d.DepartmentName,
CASE WHEN p.PDT_ORG_4_CDA LIKE 'X%'
THEN p.PDT_ORG_5_CDA
ELSE p.PDT_ORG_4_CDA
END AS DeptCode
)
From stage_chris21.PSDET p
INNER JOIN Departments d
ON p.[DeptCode] = d.DepartmentCode
... or this:
SELECT *, d.DepartmentName,
CASE WHEN...
April 21, 2016 at 8:38 am
You can't join on a column alias. Either wrap the whole SELECT statement in a CTE or subquery, or repeat the whole CASE expression in your join predicate.
John
April 21, 2016 at 8:26 am
If you look in the SQL errorlog, do you have failed login attempts for sa? If you look at the Properties of SQL Server Agent and go to the...
April 20, 2016 at 8:16 am
Viewing 15 posts - 2,641 through 2,655 (of 7,191 total)