Forum Replies Created

Viewing 15 posts - 556 through 570 (of 49,552 total)

  • RE: views,tables,stored procedures are rolled back to previous versions

    Yup. Lots of ways.
    Extended events, SQL Audit, DDL triggers are just some of the options

    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: views,tables,stored procedures are rolled back to previous versions

    I'd start by looking for jobs that run every hour, starting at 00:45. Shouldn't be a lot of them.

    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: Early to development

    Yes.
    You probably want to use EXISTS and/or NOT EXISTS. Since you have to check multiple rows for each row, doing this needs a subquery. One used with either...

    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: views,tables,stored procedures are rolled back to previous versions

    adisql - Thursday, December 21, 2017 2:42 PM

    its returned data. and we are trying to find how those objects modified .

    Yes, it...

    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: views,tables,stored procedures are rolled back to previous versions

    adisql - Thursday, December 21, 2017 2:37 PM

    default trace is enabled.

    Well, obviously it is, or the report you mentioned above would have...

    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: Early to development

    You probably want to use EXISTS and/or NOT EXISTS

    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: Are the posted questions getting worse?

    Bet coffee that he's looking at the wrong...

    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: views,tables,stored procedures are rolled back to previous versions

    Default trace doesn't go back far. It's not a full history.

    Still, SQL doesn't revert changes. If the objects are an older version, either someone reverted them, or you're...

    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: Log shipped db in suspect mode

    You can't fix that.
    If you do recover the DB and run checkDB, you can't get it back into restoring state, and without running checkDB, it won't come out...

    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: views,tables,stored procedures are rolled back to previous versions

    Either the database was restored to an earlier version, or someone ran ALTER scripts (or DROP & CREATE) on all of the affected objects.

    Check restore history, check the...

    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: Need some suggestions on query execution plan

    You can do a dynamic sort without dynamic SQL. Not going to be fast, but that's the price you pay for such code.

    ORDER BY
    CASE @Ordering WHEN...

    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: usage of DISTINCT OPERATOR

    The distinct is still completely unnecessary, as there is no way whatsoever that a TOP(1) could return duplicate rows.

    That said, removing the DISTINCT will not change the query's...

    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: Need to a Query

    Thom A - Thursday, December 21, 2017 1:38 AM

    This might be easier with Extended Events on SQl Server 2012. I honestly can't...

    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: How to setup the transaction/sec on the TEMPDB?

    SQL Server: Transactions\Transactions/sec, then select TempDB only.

    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: How am I running out of memory?

    The key indicator that it's not an error from SQL Server is that it's a .net exception. SQL Server is not written in .net, and won't throw .net exceptions

    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 - 556 through 570 (of 49,552 total)