Forum Replies Created

Viewing 15 posts - 6,211 through 6,225 (of 49,552 total)

  • RE: "normal" non-clustered index vs INCLUDE index

    RonKyle (4/10/2015)


    As a general rule, isn't the first one more suited to

    SELECT ROLE_ID

    WHERE PERSON_ID = ?

    while the second is more suited to

    SELECT *

    WHERE PERSON_ID = ? AND ROLE_ID =...

    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: script, that returns all SPs to a given table, incl. the access type

    maurer.martina (4/10/2015)


    But maybe there is a TSQL-Nerd out there? Sometimes, wonder happens...

    I tried once to write a parser for MS Access SQL. After 3 months (and I was doing 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: "normal" non-clustered index vs INCLUDE index

    Neither index is particularly useful for a query that filters only on RoleID, see the blog post I posted.

    Again, without looking at the queries that run against a table,...

    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: "normal" non-clustered index vs INCLUDE index

    Depends on the queries being run against that table, impossible to answer without knowing the queries.

    This may give some insight into indexes and queries

    http://sqlinthewild.co.za/index.php/2009/01/19/index-columns-selectivity-and-equality-predicates/

    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: Filegroup backup questions

    Yes, they need to be restored as the last step in the restore process.

    Another option is to make the archive filegroup readonly before you take the backup, but 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: Are the posted questions getting worse?

    Eirikur Eiriksson (4/10/2015)


    GilaMonster (4/10/2015)


    I love finding out that I'm giving a training course from the newsletter sent out the the entire company.

    Especially when it's pushed forward to the day 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: script, that returns all SPs to a given table, incl. the access type

    maurer.martina (4/10/2015)


    allowed characters between "delete" and "from" and "myTable" are only blanks, right?

    No. To start with, the FROM is optional

    Valid (but that your replace won't pick up)

    DELETE[MyTable];

    DELETE

    FROM

    [MyTable];

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

    I love finding out that I'm giving a training course from the newsletter sent out the the entire company.

    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: Filegroup backup questions

    Taking filegroup backups and restoring them to a consistent point requires log backups so that the DB can be brought to a consistent point in time. It's so that any...

    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 can't be accessed ...- OFFLINE

    At the time SQL started and tried to open the file, it was being accessed by another process, probably a mis-configured antivirus. Hence it couldn't open the database.

    OS error 32...

    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 Timeout for client, but no error in SQL logs

    tom.sage 70179 (4/9/2015)


    You are the first DBA that is not surprised that there was no SQL error with this client exception.

    I'm not a DBA. 😉

    Seems like I need to concentrate...

    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 Timeout for client, but no error in SQL logs

    There won't be anything in the SQL error logs.

    Timeouts are a client-side error. It's the application deciding that it has waited too long for the query to complete and aborting....

    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: can i solve lokups of non clusterd using clustering index, or i should use the cols in key of nonclusted or includes

    You want to add the columns as include in the nonclustered index to avoid lookups.

    Bear in mind, lookups may be fine, it depends how many rows are affected by 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: Are the posted questions getting worse?

    Brandie Tarvin (4/8/2015)


    GilaMonster (4/8/2015)


    Does this answer your question?

    Those are two instances on the same server, one 2012 and one 2014 and I opened both from the same SSMS 2014

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

    Sure thing. I'm leaving work in the next 30 min or so, bug me in the morning (your morning is fine) and I'll check them (they're behind Outlook, so I'll...

    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 - 6,211 through 6,225 (of 49,552 total)