AlterEgo
3/15/2007 8:37:00 PM
Alex,
Try this:
declare @Cmd varchar(8000)
drop table #t
create table #t (tID int identity (1,1), LogEntry varchar(8000))
set @Cmd = 'type "c:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\LOG\ERRORLOG"'
insert #t
exec master..xp_cmdshell @Cmd
select * from #t
-- Bill
"Alex S" <alexsdba@aol.com> wrote in message
news:eP$RJuyZHHA.1400@TK2MSFTNGP06.phx.gbl...
> Is there a way to view error log from Query Analyzer?
>
>
> Thank you
>