Viewing 15 posts - 511 through 525 (of 616 total)
Thanks for the speedy response John.
The SQL Agent login doesn't have SELECT permissions on msdb or master tables. That's all it needs to do. Just read data from system tables.
October 16, 2012 at 5:04 am
The script creates a stored procedure.
You need to run
exec USP_DBA_RECENTBACKUPS 'YourDBName' for backups for one database
or exec USP_DBA_RECENTBACKUPS by itself for backups of all DBs on the...
October 16, 2012 at 3:54 am
Hmmm....Jeff makes a good point.
You could add a notification to the job so you get an email on failure but what happens if the job hangs or doesn't start?
Another way...
October 16, 2012 at 2:25 am
With 45 cursors in one sproc he will never know which ones are taking the longest unless he implements some logging.
This is why I suggested he inserts a record into...
October 15, 2012 at 6:51 am
Excellent stuff! Nice one. 😀
October 15, 2012 at 3:46 am
selvakumar.sms (10/15/2012)
i have stored procedure with 45 cursor, so the stored procedure taking long time to finish. is it possible to get running time...
October 15, 2012 at 3:42 am
Okay so something like the below might work for you:
IF (select count(*) from [e009]) > 0
begin
exec msdb.dbo.sp_send_dbmail
@profile_name = 'Default',
@recipients = 'me@example.com',
@subject = 'warning',
@query = 'select * from [e009]',
@attach_query_result_as_file = 1,
@query_attachment_filename...
October 15, 2012 at 3:23 am
GilaMonster (10/15/2012)
Abu Dina (10/15/2012)
Bulk recovery - Bulk operations are minimally logged - other operations are logged as normal.But that's true for simple recovery as well.
I didn't know that. My understanding...
October 15, 2012 at 3:15 am
ramyours2003 (10/15/2012)
What are the differences betweenDifferential vs LOG bAckup
Bulk recovery vs simple Recovery
Google is your best friend. But here goes anyway:
Differential backup - A file which contains ONLY the changes...
October 15, 2012 at 3:07 am
sqlrd22 (10/15/2012)
October 15, 2012 at 2:57 am
opc.three
Good point. Going with a third party tool would cost £7k+ which is just too much.
george sibbald
Another good point but there is something else I didn't mention in my...
October 15, 2012 at 2:22 am
Jason-299789 (10/11/2012)
October 11, 2012 at 7:21 am
dbaforever (10/11/2012)
I have a table that contains 1 column - ServerName varchar(50). It contains 40 rows or 40 unique server names.
My SSIS package loops thru each server name storing...
October 11, 2012 at 6:55 am
Gazareth (10/5/2012)Ha, you should try watching snooker!
How dare you!!!!!!
Snooker is brilliant to watch... OMG the skills required it's incredible!
October 8, 2012 at 10:12 am
Parameter sniffing possibly?
http://www.simple-talk.com/sql/t-sql-programming/parameter-sniffing/
October 8, 2012 at 2:16 am
Viewing 15 posts - 511 through 525 (of 616 total)