Forum Replies Created

Viewing 15 posts - 181 through 195 (of 254 total)

  • RE: Performance Tuning a query running since more than 13 minutes

    Luis Cazares (8/13/2014)


    Could this be part of the problem? There's a huge difference between estimated and actual number of rows.

    [font="Comic Sans MS"]What do you suggest then? It might be a...

  • RE: Performance Tuning a query running since more than 13 minutes

    [font="Comic Sans MS"]Thanks! Gail. I would be in a better position to tell you the requirement once I get some knowledge from them, and then I'll post things over here.

    Regards,

    Faisal

    [/font]

  • RE: Performance Tuning a query running since more than 13 minutes

    sgmunson (8/13/2014)


    Indeed, 9 million rows is an awful lot of data. Also, even assuming the report still has to exist, your execution plan is suggesting an index creation...

  • RE: Performance Tuning a query running since more than 13 minutes

    GilaMonster (8/13/2014)


    What is anyone going to do with 9 million rows being returned for a report? No one, ever, is going to read more than a small portion of that.

    Start...

  • RE: Dataabse in RECOVERY_PENDING

    GilaMonster (8/13/2014)


    faisalfarouqi (8/13/2014)


    However, can I do a detach, and possibly while attaching it back remove those file entries.

    You can, and the attach will fail.

    You need to find that...

  • RE: Dataabse in RECOVERY_PENDING

    Eirikur Eiriksson (8/13/2014)


    faisalfarouqi (8/13/2014)


    [font="Comic Sans MS"]The free space is not pretty much as to accommodate another db as the db is around 5 TB. Secondly, I don't have a file...

  • RE: Dataabse in RECOVERY_PENDING

    GilaMonster (8/13/2014)


    You need to either find that file (P:\Mnt\DATA4B\CDW_F_MOBILE_INSTRU_FACT_20140705_4_OLD.ndf) or restore a backup of the database.

    The file, whatever it is, is a critical part of the database. Probably part...

  • RE: Dataabse in RECOVERY_PENDING

    [font="Comic Sans MS"]The free space is not pretty much as to accommodate another db as the db is around 5 TB. Secondly, I don't have a file backup available

    Is there...

  • RE: Database Diagram

    anthony.green (8/11/2014)


    Google has a lot of stuff on this, not done it personally myself, but a quick search did return how to do it.

    "export varbinary to file"

    [font="Comic Sans MS"]Thanks! buddy....

  • RE: Database Diagram

    anthony.green (8/11/2014)


    Could try something like using BCP to export the varbinary column out to a file, that might work, or a CLR procedure which reads and writes the varbinary out...

  • RE: Troubleshooting\Tuning sql query taking more than 40 secs

    LutzM (8/11/2014)


    In your very first post you mentioned the result is used by people looking at it.

    It's rather unusual to present 280k rows to a user...

    So I need to ask:...

  • RE: Troubleshooting\Tuning sql query taking more than 40 secs

    GilaMonster (8/11/2014)


    You *need* to run frequent stats updates. There's no way around that, you can either run frequent stats updates or have terrible performance. Index defrags, not such a critical...

  • RE: Database Diagram

    [font="Comic Sans MS"]Thanks! bub. However, I am looking for an alternative to get that done...may be extract that out from db to a file (could be an img file or...

  • RE: Database Diagram

    [font="Comic Sans MS"]Thanks! but that's not the answer I am expecting...there has to be some other way of doing it. May be import\export or something I am not sure off.

    Regards,

    Faisal

    [/font]

  • RE: Troubleshooting\Tuning sql query taking more than 40 secs

    GilaMonster (8/9/2014)


    Update the stats, run the query again and post the new actual exec plan please. Currently the incorrect row estimations are messing everything up, it's not going to be...

Viewing 15 posts - 181 through 195 (of 254 total)