Forum Replies Created

Viewing 15 posts - 12,391 through 12,405 (of 49,552 total)

  • RE: NC Index Seek 51% and select cost 0%?

    Core of your problem

    Estimated rows 1

    Actual rows 2887406

    That's on the index seek for the REsult table. Probably stale or missing stats, could be parameter sniffing, without more details pretty hard...

    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: Alter colum on table with many constraint HHEELLPP!!

    Edit again...

    That looks like a default constraint. As such you won't find it in the DMV that lists foreign key constraints.

    To alter the column you need to drop all constraints,...

    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: log file usage issue

    New persopn (7/12/2013)


    here sql server log file usage is showing as 100% in task manager but internally it is showing as 1mb only how to solve this issues.

    What do 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: log file usage issue

    nagkarjun1 (7/12/2013)


    take a back up once.

    then perform DBCC shrink command.

    No.

    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: Create Primary key Vs Add primary key (Composite)

    It won't be fragmentation as the query optimiser does not take fragmentation into account when costing the queries. It might be stats, the insert will trigger an auto-update which is...

    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?

    Sean Lange (7/11/2013)


    OK I will show my true American colors here. My wife's company just got a new client in Newfoundland. She is going to have to travel there this...

    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: Indexing small tables: what is small enough to avoid indexes altogether?

    To be honest, I'd test out indexes on a table no matter how small it is (OK, maybe not a 1-row table). If the index improved query performance, keep 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: Incorrect Syntax?

    Firstly, shouldn't

    SET @query = 'SELECT * FROM OPENQUERY(' + @query + ','

    actually be

    SET @query = 'SELECT * FROM OPENQUERY(' + @linked_server + ','

    ?

    As for the syntax error, print out...

    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: Default trace enabled

    The default trace automatically cleans itself up. It retains 5 files of no more than 20MB each, when it creates a new file it automatically deletes the oldest file.

    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: Group by and Where filters

    dwilliscp (7/11/2013)


    I thought WHERE is used to filter the rows then the group by is done..

    That is indeed how it works.

    but what I am seeing is that the count, 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: Database in Recovery Pending State

    Sapen (7/11/2013)


    Check for the location where your ldf and mdf files are and As long as you have them try doing a detach/attach and it should bring the database 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: backup via .mdf and .ldf ok?

    timwell (7/11/2013)


    1) is it OK to rely on a copy of the .mdf and .ldf files as a backup?

    No.

    2) if the current version becomes corrupt can you go back 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: Does anyone have an explanation for this behavior? or another reason to always schema qualify your tables

    Now out of ideas...

    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: In 2012, how to create a fully contained database?

    Lowell (7/11/2013)


    So how do you create a fully contained database?

    You don't. 2012 only allows partially contained.

    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: Help me buddy's... in sql server 2005 (topic:columns update)

    If you don't have a backup then you cannot get the old values back. Unless you did the update in an explicit transaction and that transaction has not yet been...

    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 - 12,391 through 12,405 (of 49,552 total)