SQLAgent.out

  • try this

    create table #t(list varchar(100))

    insert into #t(list)

    exec xp_cmdshell 'dir /-C "c:\Program Files\Microsoft SQL Server\MSSQL\LOG\sqlagent.out"'

    declare @size Int

    Select

    cast(replace(Substring(t.list, 20, Len(t.list) - 20 - 12), ' ', '') As Int)

    From

    #t t

    Where

    CharIndex('sqlagent.out', t.list) > 0

    drop table #t

    I Have Nine Lives You Have One Only
    THINK!

Viewing post 1 (of 2 total)

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