Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)

  • RE: Delete duplicate rows by date

    I tried this out today. The procedure worked until it got to the line "having count(*) > 1". When that line is inserted, I do not receive any results. I...

  • RE: Delete duplicate rows by date

    Thank you very much. I will try this out as soon as possible and let you know how it works. Your assistance is very much appreciated.

  • RE: Delete duplicate rows by date

    This is my SP for deleting rows more than x days old:

    CREATE PROCEDURE [dbo].[PurgeWinAudit]

    @DaysOld Int

    AS

    delete FROM dbo.winaudi2

    where datediff(dd,DateTimeDB,getdate())>@DaysOld

    GO

    This is my view statement:

    SELECT ItemValue1, DateTimeDB, AuditID

    FROM...

Viewing 3 posts - 1 through 3 (of 3 total)