Hi,

I'm using:

INSERT INTO #T(_DBName, _LogSizeMB, _LogSpaceUsedPct, _Status)
EXEC('DBCC SQLPERF(LOGSPACE)')

in a stored procedure. Because I ran into the 'An INSERT EXEC statement cannot be nested' error I need to create another construction. (I try to insert the result of the stored procedure with insert into ..... exec, so that makes two).

Any help is much appreciated!