Forum Replies Created

Viewing 15 posts - 39,331 through 39,345 (of 49,552 total)

  • RE: Script to find composite indexes in sql server 2005

    Explain a bit more please?

    Do you just want to know what indexes have more than one column in them, or do you want to list the columns as well?

    Either way,...

    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: Avoiding CURSOR

    Since you're on SQL 2005, use the Row_Number() function

    SELECT groupid, days_remaining

    FROM

    (SELECT groupid, days_remaining, Row_Number() OVER (Partition By groupid order by days_remaining) AS RowNo FROM reminder) sub

    WHERE RowNo = 1

    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: Tables without indexes...

    darth.pathos (5/3/2009)


    Edit: Ok, I just realised my mistake (I think) - the query I have looking at the Indexes only pulled IX_% ones; I wasn't looking at the PK_%...

    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: Filtered index with IS NULL predicate

    Can you post the execution plan please, not an image of it? I need to see the properties of all the operators.

    Right click the plan, select save as. Save as...

    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 Encryption

    SQL 2005 has built in column-level encryption. SQL 2008 has built in database-level encryption (transparent database encryption)

    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: Clustered Indexes and how to find them...

    If you look in sysindexes, the clustered index is the one that has an indid of 1. Nonclustered indexes have indids between 2 and 249.

    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: Tables without indexes...

    Try this

    SELECT o.name FROM

    sysobjects o LEFT OUTER JOIN

    (SELECT id, indid FROM sysindexes WHERE INDEXPROPERTY(ID, name ,'IsStatistics') = 0) i ON o.id = i.id

    WHERE i.indid IS NULL

    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: restoring a single table from the backup

    Not using native tools, no.

    Basically if you want a table, you have to restore the DB elsewhere and then extract the table.

    Litespeed allows you to recover a table from a...

    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: I've tried this on 2 other forums, does anyone know the answer?

    Paul White (5/3/2009)


    You lose nothing by using filegroups, and gain significantly: with a database restore, you *have* to restore everything. If the database is 1TB, that's going to take...

    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: I've tried this on 2 other forums, does anyone know the answer?

    Paul White (5/3/2009)


    Just use bcp, SSIS, or SSMS' import/export facility to fast bulk load the damaged tables from the restored filegroup(s).

    I did mention that before.

    Is that really a serious suggestion?

    I've...

    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: I've tried this on 2 other forums, does anyone know the answer?

    RBarryYoung (5/3/2009)


    My understanding of how they can do this (and we cannot) is that apparently we (SQL Server) always have some part of the object definition/header in the primary filegroup,...

    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: I've tried this on 2 other forums, does anyone know the answer?

    Paul White (5/3/2009)


    Michael Valentine Jones (5/2/2009)


    As I have said all along, the OP will need to use separate databases to be able to restore data independently.

    I don't agree. Here...

    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: I've tried this on 2 other forums, does anyone know the answer?

    Paul White (5/1/2009)


    And: Darn it - now I have to go and find out what a transportable thingy is in Oracle!

    It allows for tablespaces (SQL filegroups) to be moved from...

    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: I've tried this on 2 other forums, does anyone know the answer?

    RBarryYoung (5/1/2009)


    The filegroups in a SQL Server database are not transactionaly independent and cannot be made to be so.

    Correct. There is no way within the native SQL tools to...

    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: Filtered index with IS NULL predicate

    Post the exec plan?

    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 - 39,331 through 39,345 (of 49,552 total)