Forum Replies Created

Viewing 15 posts - 36,721 through 36,735 (of 49,552 total)

  • RE: SQL Server 2005 job log

    espanolanthony (8/30/2009)


    select b.name, run_date, run_time , message from msdb..sysjobhistory a, msdb..sysjobs b

    where a.job_id = b.job_id

    and b.name like 'JOB NAME'

    order by run_date desc , run_time desc

    (no modifications were made to 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: Composite Primary Keys

    None whatsoever, providing ClientID is the leading column in the index.

    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: SQL Server 2005 job log

    Those are the actual logs. MSDB is where SQL Agent writes all job-related logs. If there's nothing in the table, it means that either somone's deleted them or SQL Agent...

    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: making a primary key

    PaulB (8/30/2009)


    If your client insists and having into consideration an Employee table shouldn't have heavy inserting after initial load I would suggest to pack the "insert client" logic into 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: Exclude the Index Reorganize logic

    It's not going to be trivial to change that to run over all databases. dm_db_index_physical_stats can easily report on all the indexes on the entire server, but the second part,...

    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: Exclude the Index Reorganize logic

    gmamata7 (8/29/2009)


    So could please tell me what to modify in order to Exclude Reorganize logic & it should work for all the databases in an instance.

    ps has already told 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: making a primary key

    Tell your client that this is a really, really, really bad idea. Yes it's possible, but most implementations are either very slow as you need to ensure that there's 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: Weekend DBA's

    Ever since I started working from home I've found that weekends don't mean quite as much. It matters to no one whether I work on Wednesday and go shopping 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: Exclude the Index Reorganize logic

    Clive Strong (8/29/2009)


    I did read that you should not perform any online rebuilds and I would imagine this would extend to reorganize operations whilst BizTalk is processing.

    I would like 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: Need help for creating couple SQL queries

    This looks very much like homework. Is it?

    We don't solve people's homework problems for them, they learn nothing if we do. Have a go at them yourself, if you get...

    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: eligibility for creating index

    Paresh Prajapati (8/29/2009)


    So, is those column are eligible for index?

    Or, can you tell, how much minimum rows require for eligibility for creating index?

    They're certainly eligible for indexes, nothing's stopping 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: Question for Index with include column?

    Paresh Prajapati (8/29/2009)


    Two indexes are created on table as following :

    create index IC_Col1 on table(id) include (name, city)

    create index IC_Col2 on table(id)

    1. which of above index is used for

    select name...

    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: Nonclustered Index, NULL values!!

    Sourav (8/28/2009)


    Clustered index never contain any NULL values as Primary key is imposed to it.

    Clustered indexes are not primary keys and primary keys are not clustered indexes. A clustered index...

    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: making a primary key

    Can you make the column an identity? That let's SQL handle the incrementing and you can be sure that it will work.

    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: Restore Failed on SQL2008

    Don't know about case 1, but case 2 has irreparable corruption. There's some damage that's preventing CheckDB from running and there is no way that it will be able 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

Viewing 15 posts - 36,721 through 36,735 (of 49,552 total)