DBCC Command via OPENROWSET

  • Is it possible to issue a DBCC Command like DBCC SQLPERF(LOGSPACE) from via an OPENROWSET I googled a number of posts across various websites where people are having a problem doing this, but there is no solution available. I haven’t been able to do this eithier. Anyone have any ideas ?

  • SELECT a.* FROM OPENROWSET('SQLOLEDB',

    'DRIVER={SQL Server};SERVER=ServerName;Trusted_Connection=yes;',

    'SET NOCOUNT ON;SET FMTONLY OFF; exec (''dbcc sqlperf(logspace)'')') AS a

    MJ

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

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