how to disable a Server AUDIT? i keep getting error ---> Disable failed "Lock request time out period exceeded. (MS SQL srvr Error 1222)

คำตอบ how to disable a Server AUDIT? i keep getting error ---> Disable failed "Lock request time out period exceeded. (MS SQL srvr Error 1222)

  • 12 ตุลาคม 2554 20:44
     
     

    every time I enable a server audit in SSMS under Security Audit, I can not disable the audit. I have to shut down SQL services, and restart them and remove the Audit first thing...

    SQL 2008 R2 sp1

ตอบทั้งหมด

  • 12 ตุลาคม 2554 20:46
     
     

    this is under "Server Audit Specification"

     

    If I run a script to disable it, the script runs forever...

  • 12 ตุลาคม 2554 20:52
     
     

    Everything time i try to disable the server audit, i get an error msg above... I also tried running a script to disable the server audit, but it runs forever...

     

    Help???

  • 13 ตุลาคม 2554 12:40
     
     
    ALTER SERVER AUDIT YourAuditName WITH (STATE = OFF);
    velmurugan.s
  • 13 ตุลาคม 2554 18:27
     
     คำตอบ

    Blue,

     

    Try this:

    - Execute the script to stop auditing

    - Execute: SELECT * FROM sys.sysprocesses where blocked <> 0

    Probably the spid you are using for disable will be blocked, verify the connection that is bloking and kill, if you can...


    Fabrizzio A. Caputo
    Certificações:
    Oracle OCA 11g
    MCITP SQL Server 2008 Implementation and Maintenance
    MCITP SQL Server 2008 Developer
    Blog Pessoal: www.fabrizziocaputo.wordpress.com
    Blog Empresa: www.tripletech.com.br/blog
    Twitter: @FabrizzioCaputo
    Email: fabrizzio.antoniaci@gmail.com
    • เสนอเป็นคำตอบโดย amber zhangModerator 17 ตุลาคม 2554 8:42
    • ทำเครื่องหมายเป็นคำตอบโดย BlueIzzzz 17 ตุลาคม 2554 13:49
    • ยกเลิกการทำเครื่องหมายเป็นคำตอบโดย BlueIzzzz 17 ตุลาคม 2554 13:49
    • ทำเครื่องหมายเป็นคำตอบโดย BlueIzzzz 17 ตุลาคม 2554 13:50
    •  
  • 16 เมษายน 2555 12:57
     
     

    This really doesn't answer the problem. Anyone have any more information. I get the same error and can only bounce the server to corret it.


    JB