xp_cmdshell

  • Hi,

    Is there any way to put the information in  a table executing xp_cmdshell

    ex: exec master..xp_cmdshell 'dir c:\'

     

    from

    killer

  • As per Books Online, you can use the EXECUTE option of the INSERT statement.

     

    --------------------
    Colt 45 - the original point and click interface

  • like this

    create table #temp

    (mycolumn varchar(1000))

    insert into #temp execute master.dbo.xp_cmdshell 'dir c:\'

    select * from #temp

  • Thanx

    Nashi for ur help.

     

    from

    Killer

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

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