Forum Replies Created

Viewing 15 posts - 24,286 through 24,300 (of 49,552 total)

  • RE: How to free space on a disk??

    Jayanth_Kurup (8/9/2011)


    Oops , my mistake . I tried running Backup Log with truncate only and it didnt bring the size down.

    Don't ever use that. It breaks the log chain, 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: Tuning a query

    chandan_jha18 (8/9/2011)


    I am going mad:-( Do you mean when I run a query and include actual execution plan option, the plan shown is not real? Then why everyone stress...

    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: Use Dynamic SQL in a function? Not working.

    CptCrusty1 (8/9/2011)


    Are you the poisonous kind of Gila Monster?

    Depends what mood I'm in and how rude the questions are. Usually not though. 😀

    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: Tuning a query

    The execution plan % are based on the estimated costs, which are based on the row estimations, which are incorrect in this case.

    Use profiler, use Statistics IO, use statistics time....

    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 with a Question

    suhailtajraja (8/9/2011)


    interview

    What the interviewer was trying to ask, almost certainly, was for the names of the two pseudo-tables that are visible within triggers and nowhere else.

    A google search for that...

    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 with a Question

    @SQLFRNDZ (8/9/2011)


    suhailtajraja (8/9/2011)


    I am referring to system tables accessible from DML triggers. please name them.

    SELECT * FROM sys.objects WHERE type='S'

    Execute this on a any database you are reffering 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 with a Question

    Ninja's_RGR'us (8/9/2011)


    You might get more usefull help by describing the task you need to complete.

    Homework, exam or interview.

    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 with a Question

    suhailtajraja (8/9/2011)


    I am referring to system tables accessible from DML triggers. please name them.

    All of the system tables (well, they're system views these days) are visible from everywhere, ad-hoc queries,...

    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: Use Dynamic SQL in a function? Not working.

    CptCrusty1 (8/9/2011)


    This "individual" is supposedly very skilled in SS2K8, but then asks me stuff like this...

    Ok... I have a proc now:

    sproc_blah (@table varchar(5), @ID int, @returned_Stuff INT OUTPUT)

    HOw 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: Need Help with a Question

    All the system tables are visible from triggers. And everywhere 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: Tuning a query

    See Ninja's example.

    It's not false, it's an index seek. It is validly and properly an index seek (uses the upper-levels of the b-tree to locate the start of a range...

    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: Tuning a query

    chandan_jha18 (8/9/2011)


    If a plan has seek operators, does it mean that it is good enough? My plan has so many scalar operators too. Not sure what to make out 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: Tuning a query

    chandan_jha18 (8/9/2011)


    Ninja's_RGR'us (8/9/2011)


    Did you update with fullscan, if not by what %?

    I just ran:

    exec sp_updatestats.

    In other words, you did a sampled update.

    Please do an update statistics with full scan on...

    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 do I install SQL server 2005 enterprise on Windows 7

    GSquared (8/9/2011)


    GilaMonster (8/9/2011)


    Why are you installing Enterprise edition on a client OS?

    Yep, I missed that in the question title. Can't do that.

    It'll work (usually), but very few good reasons....

    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 do I install SQL server 2005 enterprise on Windows 7

    Why are you installing Enterprise edition on a client OS?

    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 - 24,286 through 24,300 (of 49,552 total)