mutley1
MIS
- Jul 24, 2003
- 909
Afternoon Experts,
Bit confused - running the below code and it does not seem to populate my table (checkdb) with the results of a dbcc checkbdb. Any ideas to help me progress please? Only 1 field in the table which is set to varchar (500). Code returns the required output, just not writing to the table.
Then I do a select * from checkdb but it's empty....?
Thanks in advance,
M.
Bit confused - running the below code and it does not seem to populate my table (checkdb) with the results of a dbcc checkbdb. Any ideas to help me progress please? Only 1 field in the table which is set to varchar (500). Code returns the required output, just not writing to the table.
Code:
INSERT INTO CHECKDB
EXEC sp_MSforeachDB @command1 = 'dbcc checkdb (''?'') with physical_only'
Then I do a select * from checkdb but it's empty....?
Thanks in advance,
M.