error to display

  • Hello,

    what is dbcc command to display errors.

    Regards,

    sathish.

  • Hello,

    I'm not 100 percent sure what your question is.

    Is it "DBCC CheckDB" that you are after?

    Regards,

    John Marsh

    www.sql.lu
    SQL Server Luxembourg User Group

  • If you want the text which belongs to an error number (if that's the case), try:

    select *

    from master.sys.messages

    where message_id = ####

    (replace #### with the error number)

    If you want to simulate an error, try the RAISERROR command

    See BOL for more information about this table / RAISERROR

    Wilfred
    The best things in life are the simple things

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

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