DBCC CHECKDB and capture results in table

  • I am running the following the sql below:

    create table tempdb..DBCCOutput ( id int identity, output  varchar(255) null)

    GO

    insert tempdb..DBCCOutput ([output])

    EXEC master..xp_cmdshell 'isql /d dbnamehere -Q"dbcc checkdb (dbnamehere)" -E'

    GO

    However I am getting the following error msg:

    1           Msg 1934, Level 16, State 1, Server ATLDB12, Line 1

    2           DBCC failed because the following SET options have incorrect settings:

    3           'ANSI_NULLS., CONCAT_NULL_YIELDS_NULL, ANSI_WARNINGS, ANSI_PADDING'.

    4           NULL

    I turned on all those options: SET ANSI_NULLS ON .etc...but still the same msg..has anyone run into this problem/error msg before? If so how did u work around it?


    Kindest Regards,

    JWA

  • did u enbabled these option on database level

     

    HTH

    killer

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

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