Forum Replies Created

Viewing 15 posts - 781 through 795 (of 1,584 total)

  • RE: Failed Jobs report

    Also, note the threshold being checked:

    'WHERE

    b.Sql_Severity <> 0

    AND run_date = REPLACE(CONVERT(VARCHAR(10),GETDATE(),121),''-'','''') '+

    'AND [run_time] >= '''+REPLACE(CONVERT(VARCHAR(20),DATEADD(minute, -20,GETDATE()),08),':','')+''''+

    ' ORDER BY [run_date],a.[Name],b.[step_id] '

    This only goes back 20 minutes, if you want...

  • RE: Failed Jobs report

    I'll recheck one last time to be sure. I've got to ask: you did create the stored-procedure and are executing it correct?

  • RE: Failed Jobs report

    Really appreciate your quick responses. I'll again run that code of yours, onto other servers, and check the response. What about the e-mail part it should mail me, there is...

  • RE: Fastest way to count total number of rows...

    Won't this work (slightly different than what's posted)? - can't say I've ever noticed a count not equaling a select COUNT on a table directlySELECT ps.row_count

    FROM sys.indexes AS i...

  • RE: Failed Jobs report

    Do you have any errors to report? I tested the code before I posted it, it does work fine - if there are no failed jobs on the server...

  • RE: Failed Jobs report

    It should be quite simple to modify the code to execute against your linked servers...

    Example:INSERT INTO #SQLAGENTERRORS

    EXECUTE [LINKSERVER].MASTER..SP_EXECUTESQL @sqlSelect

  • RE: Why does this not perform an index seek?

    Thanks for the replies, I'll dig a tad further to see where it goes 😉

  • RE: Why does this not perform an index seek?

    I see your point, but this table has nearly 700,000 rows, and in the execution plan it's using the non-clustered index (not the clustered).

    If I drop the constraint altogether, it...

  • RE: Can I purge data on the principal without the purging it on the mirror?

    I would recommend transactional replication slightly customised so that the deletes don't replicate. This additionally gives you the ability to have different indexes on the reporting replica.

    Sorry to hijack...

  • RE: Failed Jobs report

    Create a simple SSRS report (RDL file) and call the stored-procedure running this code, format the report to your liking. Reporting Services is pretty straightforward...

  • RE: Failed Jobs report

    This isn't "pretty" code but it works and will email you the results (I have it running hourly). I just set up a simple SQL Agent job on each...

  • RE: Linked Server Problem

    Try wrapping the string in double-quotes:

    insert into [SS-PC1]..SCOTT.TABLE1 values('"This is test command"',100000);

  • RE: Need help on this notification warning

    I used to get this all the time due to having Redgate SQL Prompt installed, I uninstalled that software and SQL Server, reinstalled both pieces of software and the issue...

  • RE: when to defragment indexes

    Alexander Suprun (1/28/2013)


    ugo boy (1/28/2013)


    I mean, if there are no searches done on the table

    then you should DROP these indexes.

    Keep in mind these statistics are cumulative and only show...

  • RE: float to decimal

    Seems to be more of an issue with the precision you are setting with your decimal data type i.e. (9,2) - determine the maximum number of decimal places in the...

Viewing 15 posts - 781 through 795 (of 1,584 total)