xp_cmdshell work-around??

  • Hello,

    mssql 2005

    For growth analysis, I need to capture the *.bak file sizes for a given folder. Currently I am doing this using xp_cmdshell, and inserting a DIR listing into mssql table, then cleaning/converting data to get achieved results.

    I would like to avoid using this xp, and disable this feature re: "Surface Area Configuration".

    Any suggestions on a work around?

    Thanks. Jeff

    Many thanks. Jeff

  • why use xp_cmdshell? I'd script this outside of SQL (VBScript/Powershell) and have the data inserted. Then you can easily call this from SQL Agent.

  • I do this very thing. It uses one stored proc and a job with two steps. I got this from: http://www.databasejournal.com/features/mssql/print.php/10894_3414111_2

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

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