Viewing 15 posts - 2,641 through 2,655 (of 7,187 total)
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
First off, kudos to you for going off and working out for yourself how sp_executesql works. Many posters on these forums would have just expected us to provide the...
April 20, 2016 at 7:25 am
You can set up a job that is scheduled to run whenever SQL Server Agent starts. The job would perform the steps that you do manually now after a...
April 20, 2016 at 4:18 am
It may be because AdventureWorks has some Enterprise-level features in it, and you are attempting to restore on Express edition. You can use this link for a script to...
April 19, 2016 at 9:48 am
Viewing 15 posts - 2,641 through 2,655 (of 7,187 total)