Forum Replies Created

Viewing 15 posts - 316 through 330 (of 49,552 total)

  • RE: File 'xxxx' is not a recognizable trace file

    The file is the one currently being written to. When you copy it, that's no longer the case.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Tracking changes on Views.

    Triggers on the tables beneath the views, with logic to determine whether the changes that fired the trigger would affect the views or not.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Is there a row locking similar to Oracle's row locking in SQL SERVER 2016

    ScottPletcher - Monday, February 26, 2018 7:50 AM

    That's a huge effort to insure. 

    And it pretty much requires that your process...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Tracking changes on Views.

    Triggers on the tables that make up the view (trigger on the view doesn't fire unless the view itself is the target of the modification)

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Application starts throwing SQL error after database failover.

    Check that the app is connecting to the listener, not to the server directly.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Is there a row locking similar to Oracle's row locking in SQL SERVER 2016

    george-178499 - Saturday, February 24, 2018 9:40 AM

    If the Insert statement you are running comes from a single sql statement, then you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Is there a row locking similar to Oracle's row locking in SQL SERVER 2016

    subramaniam.chandrasekar - Friday, February 23, 2018 8:40 PM

    If I'm not wrong, the default isolation level of SQL Server 2014 is READ...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error: Could not apply log backup file

    dopydb - Monday, February 26, 2018 6:28 AM

    soon hopefully we will upgrade, and we can experience 10 year old Tech 🙂

    🙂

    If...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question about a composite key and autoincrement

    Keep in mind sequences can and will have gaps in them. This is not a bug.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error: Could not apply log backup file

    He's using Log Shipping on SQL 2005 (3 versions before Availability Groups was introduced), the link and chart are hence not relevant.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: dm_exec_query_stats clearing every few minutes.

    sys.dm_exec_query_stats is dependent on the query's plan being in cache. When the query's plan is removed from cache, the query stats for that query are removed.
    Hence, what you're seeing...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error: Could not apply log backup file

    As I said, you're going to need to redo it. i.e. full database restore

    But, before you do that, it may be a good idea to recover the DB...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question about a composite key and autoincrement

    You'll have to code that manually as you do the insert, stored procedure for insert would probably be best.
    Do watch out for concurrency errors, this kind of  thing is...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Error: Could not apply log backup file

    Looks like the transaction log on the secondary is damaged (or could be the data files)
    You're going to need to re-do it, and it may be a good idea...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Performance Considerations :: Lookup vs Join

    Are you talking about constructing 'lookup' tables in a query?

    Like
    SELECT <stuff> FROM  Transactions
    Inner Join (SELECT 1 As StatusID, 'Active' as Status UNION ALL...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 316 through 330 (of 49,552 total)