dynamic path in sql server

  • hi,

    Northwind Backup Plan4_200810111149.txt - this for generating report file name whenever after completing database backup. so every day this file has been changed with date and time.

    This report file i want include in email alert dynamically, so how to set the command in @messagefile at body of the content.

    right now i am using static path like

    @messagefile= N'c:\dbbackup\Northwind Backup Plan4_200810111149.txt '

    how to add dynamic path above statement.

  • i need urgent that script,please help me, thanks

  • Duplicate post. Replies to the following thread please:

    http://www.sqlservercentral.com/Forums/Topic584368-5-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

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

You must be logged in to reply to this topic. Login to reply