Forum Replies Created

Viewing 15 posts - 34,051 through 34,065 (of 49,552 total)

  • RE: Indexes creation?

    1) Yes

    2) The indexes that run against the table

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

    http://sqlinthewild.co.za/index.php/2009/02/06/index-columns-selectivity-and-inequality-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: Unable to update Query Processor Statistics

    Mike Tutor (2/12/2010)


    I was thinking I could re-assign the tables in question to another uid in sysobjects,

    You can. dbo (uid 1) is best. You know how or...

    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: Unable to update Query Processor Statistics

    Do you know how to fix this, or do you need a hand?

    Any idea who would have gone modifying the system tables?

    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: Unable to update Query Processor Statistics

    This is typically a result of direct updates to the system tables, dropping users that own the tables. Does the following produce any results?

    SELECT name FROM sysobjects WHERE uid 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: Two almost identical queries taking comlpetely different lengths of time to complete

    Does running a stats update now help?

    From the looks of the exec plan, it will fix this completely.

    There are systems that need to run stats updates on specific tables...

    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: Two almost identical queries taking comlpetely different lengths of time to complete

    Try updating statistics on the table.

    UPDATE STATISTICS PAIRHIST WITH FULLSCAN

    The index is on a ascending date column, it's a common problem on larger tables for the stats to be sufficiently...

    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: EFFECT OF TRUNCATE TABLE ON TRANSACTION ROLLBACK

    mvelusamy (2/12/2010)


    Table should be partition if it has more than 2M records

    Is that a hard-and-fast rule? If so, can you cite your source for that best practice?

    What about people 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: Fixed server role required for Object creation in sys databases?

    ZeeAtl (2/12/2010)


    In essence, can a non-Sysadmin, non-DBO, or non-db_owner role member create objects in the system databases?

    Yes. Ddl_admin is more than sufficient.

    Do note that TempDB is recreated completely...

    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: Delete from a table variable

    Hang on...

    Why dynamically generated temp table names? Why dynamic SQL? Looks like you're making your life difficult for no reason.

    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: Using the System master database to store tables

    No. Nothing should be created by users in the Master database. That's what user databases are for.

    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: Fixed server role required for Object creation in sys databases?

    ZeeAtl (2/11/2010)[hrSome of these apps through these users connections are creating objects in tempdb (e.g. User Defined Table).

    Why? In general stuff like that is a bad idea with lots 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: How to check sql server 2000 still receive data

    Edwin-376531 (2/11/2010)


    I am planning to develop a database DR high level plan.

    How to develop the baseline?

    That's a very complex question and not one that we can answer form...

    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: NUMBER OF INDEX COUNT IN SQL SERVER 2005/2008

    I'm sorry, I'm not sure what you're asking.

    Do you want to know the maximum number that you can have?

    Maximum number of columns?

    Something else?

    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 problem!

    Analyse the queries on the table, see what indexes they use, drop any that aren't used. Drop any that are true duplicates (same columns in same order) of any other...

    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: Snapshots

    No, you cannot move snapshots in any way, so there's no way to get it to the new server. They can't be backed up, they can't be detached.

    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 - 34,051 through 34,065 (of 49,552 total)