Forum Replies Created

Viewing 15 posts - 76 through 90 (of 335 total)

  • Reply To: With SQLAudit you cannot track HostName or IP address.

    @Grant

     

    CREATE EVENT SESSION [MySession1] ON SERVER 
    ADD EVENT sqlserver.sql_statement_completed(
    ACTION(package0.collect_system_time,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.database_name,
    sqlserver.server_principal_name,sqlserver.sql_text))
    ADD TARGET package0.ring_buffer(SET max_memory=(10240))
    WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,
    MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=OFF)
    GO


    I have a smiliar session which dumps data into...

    • This reply was modified 3 years, 4 months ago by  mtz676.
  • Reply To: With SQLAudit you cannot track HostName or IP address.

    Hi All,

    The host name is dependent on the connection string. If people leave this off, it's why you can't audit for it. You can use HOST_NAME to get this information...

  • Reply To: Capture Login activity

    @thanks Jeff..I can check the error log way but can I get references on how I can filter the all data but the login records into the .xel...

    • This reply was modified 3 years, 4 months ago by  mtz676.
  • Reply To: Capture Login activity

    Sounds good to me but unless I am not responding with an answer to the original thread I wasn't sure if it would be appropriate to get into someone's thread...

  • Reply To: Generate script

    Thanks @Johan.

    I settled with this...

    CREATE TABLE #Results (
    abc VARCHAR(MAX)
    )
    INSERT INTO #Results
    exec sp_msforeachdb '
    Select ''
    USE [?]
    GO
    CREATE DATABASE AUDIT SPECIFICATION [DatabaseAuditSpecification ?]
    FOR SERVER...
  • Reply To: SQL Servers query time differences

    Thank you

  • Reply To: SQL Servers query time differences

    No infact it has more memory allocated

  • Reply To: SQL Servers query time differences

    @Grant and all

    Thank you

  • Reply To: SQL Servers query time differences

    @Grant/All,absolutely, the advise I have received from this community has been unparalleled.Learnt a lot from here and I rely more here than the web.

    Initially the DB was not a true...

    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
  • Reply To: SQL Servers query time differences

    My bad ,I understand. Thanks again @Grant.

    • This reply was modified 3 years, 6 months ago by  mtz676.
  • Reply To: SQL Servers query time differences

    @scott,@Grant,@Steve, All

    We have again done a straight back and restore across enterprise to standard.Under what circumstances can the execution plans be different.Both instances run on same windows and...

    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
  • Reply To: SQL Servers query time differences

    Stats were never updated on both the versions (standard and enterprise).Both stand 2 years old.Checked some tables which are referred in the stored proc.They stats are the same.

    Looks like statistics...

    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
  • Reply To: SQL Servers query time differences

    @steve-2 Jones, @Grant and all,

    Thank you.

    I have saved the execution plans from enterprise and standard edition. How can I force the stored procedure to use the enterprise plan...

    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
    • This reply was modified 3 years, 6 months ago by  mtz676.
  • Reply To: Reading multiple audit files

    I did nothing.They just became readable.

    Thanks

  • Reply To: SQL Servers query time differences

    @Steve. Thanks

    What settings/config values should be checking in Standard and enterprise (fyi:both on same machine)to troubleshoot this.A back and restore has been done from enterprise to standard, so...

    • This reply was modified 3 years, 6 months ago by  mtz676.

Viewing 15 posts - 76 through 90 (of 335 total)