change database options

  • Hello, I need to change two settings in one of our databases.  They are Arithabort, and quoted_identifier and need to be set to ON.   I will also need to verify the command after changing.   We are running SQL2000 SP4 standard Edition.  There are multiple databases (7) on the current server.  thanks, Dana

     

  • Okay. You stated what you need to do. So what's your question?

    -SQLBill

  • HOW?

     

  • Use the ALTER DATABASE command to set them:

    ALTER DATABASE dbname

    SET Quoted_Identifier ON,

    Arithabort ON

    Then to test for them, check the DATABASEPROPERTYEX.

    SELECT DATABASEPROPERTYEX('dbname', 'IsQuotedIdentifierEnabled'),

    DATABASEPROPERTYEX('dbname', 'IsArithmeticAbortEnabled')

    0 = off

    1 = on

    -SQLBill

  • Thank you very much.

     

Viewing 5 posts - 1 through 4 (of 4 total)

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