Forum Replies Created

Viewing 15 posts - 2,626 through 2,640 (of 49,552 total)

  • RE: Indexes

    ScottPletcher (8/17/2016)


    No. If you disable a nonclustered index, SQL can no longer trust the index and thus can't use it to satisfy queries. If you don't need 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: Cannot Login - No Process on the other end of the pipe

    Sue_H (8/17/2016)


    Interesting...and no errors in the connectivity ring buffers in dm_os_ring_buffers. New twist on security maybe.

    Probably failing too early in the connection process, before it got to a point...

    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: Cannot Login - No Process on the other end of the pipe

    That error sounds like the instance of SQL you're trying to connect to isn't running (via named pipes). Double-check the server names/instance names and make sure you're trying to connect...

    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: Index Usage

    crazy_new (8/17/2016)


    So what you are saying is that it is always using the clustered index to filter on if the query only filters in this ID?

    No. It probably will be...

    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: Update statistics after Index Rebuild ?

    lianvh 89542 (8/17/2016)


    Thank you for the feedback. It's much appreciated. One question though : Is it possible to replace Index rebuild with update statistics - fullscan?

    You can, though whether that'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: Update statistics after Index Rebuild ?

    ScottPletcher (8/16/2016)


    I though the number of row mods needed was based on the number of rows in the table, and was either a fixed number or a percentage of...

    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: Table Partition for date range>90 days

    khushbu (8/15/2016)


    Wanted to know how do I create partition function for date range >90 days

    You don't. Not exactly

    Partition boundaries have to be fixed values, so you can have a partition...

    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: database stuck in restoring state

    There's a reason I teach my devs to script out the restores before running them and check what the script does. 🙂

    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: Temporal table type functionality for SQL Server 2014

    I've done it before as well, using triggers. It's a pain in the neck to get right and keep in sync, and the queries to get the correct point in...

    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: SQL Server 2008 R2 (SQL Server Agent Job) Question???

    It must be getting created by some application installed (or possibly even some malware that's installed, the file names don't sound legit)

    Try running a server-side trace for a while and...

    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 on Extended event

    vsamantha35 (8/11/2016)


    You mean create indexes and do some query tuning to speed up queries?

    FYI we are pulling large datasets from different source systems and load data into a datawarehouse...

    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 on Extended event

    No, because timeouts are not a database setting.

    A timeout is the application deciding it's waited too long and notifying SQL to stop the query. It is not SQL deciding...

    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: witness server

    WhiteLotus (8/11/2016)


    Should I restore the databases in witness server?

    No.

    The witness is there solely to check whether it can see the principle or mirror to decide whether to failover the mirroring...

    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: Calculating time between two times five an arithmetic overflow

    SQLTestUser (8/15/2016)


    From the two time periods on Logdatetime itself

    What two time periods? There's only one datetime per row.

    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: Update statistics after Index Rebuild ?

    Yes, but column statistics only, not index statistics (they got updated with the index rebuild)

    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 - 2,626 through 2,640 (of 49,552 total)