Viewing 15 posts - 1 through 15 (of 15 total)
Thanks
Tried that, but got the below error:
PS SQLSERVER:\> $server.DetachDatabase("dbPSXTest", FALSE)
At line:1 char:36
+ $server.DetachDatabase("dbPSXTest", FALSE)
+ ...
April 22, 2014 at 9:59 am
All very odd 🙂
Thanks for your comments.
I've solved it by adding the proc to one of my SSIS packages, so it's definitely running as Domain\SQLJobs now and running fine.
Would love...
January 22, 2014 at 4:01 am
Cool, thanks for the article.
If this were true, then the job would not fail giving the error 🙂
The server principal "Domain\SQLServerAgent" is not able to access the database "Database1" under...
January 22, 2014 at 2:45 am
Nope, service account has no permissions at all.
The job is executing a stored proc that is not in msdb anyway, thus would need more than permissions to msdb anyway.
January 22, 2014 at 2:09 am
OK sure, but if there is no proxy set and the AgentServiceAccount Domain\SQLServerAgent does not have access to SQL, what account does the job then run under when it successfully...
January 22, 2014 at 2:03 am
Some more info after lots of testing:
The problem is with the email part of the stored proc. And because it is in an if statement, it is the first time...
January 22, 2014 at 1:52 am
Thank you Mack
Yes, they are terribly spoilt and they don't know it 🙂
Unfortunately I won't be able to take away their rights 🙁 Would looove to though LOL
Will probably have...
March 15, 2013 at 1:44 am
Great, thank you Grant. Found cached_time in sys.dm_exec_procedure_stats - exactly what I was looking for.
May 8, 2012 at 8:46 am
Thank you. That makes perfectly sense, didn't think about it like that 🙂
I will definately bug MS on it.
June 13, 2011 at 5:59 am
Thanks Paul. I will look into your suggestions.
Jim, yes, it is the actual setting for the max memory that changed. 🙂 It is also very odd that it was set...
August 13, 2010 at 3:15 am
Memory was set with sp_configure.
Services was not stopped and started as it is not required, SQL immediately adjusts memory when using reconfigure in 2008, which it did with no problem...
August 13, 2010 at 12:46 am
Thanks guys. Think there might have been open transactions or replication that were not allowing me to shrink the file to less than the initial size. 🙂
January 19, 2009 at 7:03 am
You would think that if you cannot shrink the file below the initial size they'd at least give us the possibility to be able to decrease the initial size then.......
January 19, 2009 at 5:54 am
I need to shrink the database files to less than the current initial size of the database. Shrinkfile, shrinkdatabase and logbackup only shrinks to the initial size of the database...
January 19, 2009 at 5:44 am
Viewing 15 posts - 1 through 15 (of 15 total)