Forum Replies Created

Viewing 15 posts - 271 through 285 (of 560 total)

  • RE: Shrink runs forever

    shahgols (6/5/2014)


    Hi all,

    We have dropped a huge table from one of our databases and I want to get some of that space back. However, the shrink of the...

  • RE: DMV question - how to get stats for a proc that has executed...

    john.p.lantz (6/5/2014)


    I've been searching on DMV's for the past hour and have had no luck.

    I'm trying to get stats for a stored procedure that has already executed. ...

  • RE: Results to show differences in items purchased versus sold

    matak (6/3/2014)


    Something like this ?

    select distinct

    itemno as [Item],

    count(*) over (partition by ITEMNO) as [Purchases],

    sum(case when entrytype = 0 then qty else 0 end) over (partition by ITEMNO) as [QtyPurchased],

    sum(case...

  • RE: Saving query text, execution time and rows count

    Mauricio N (6/3/2014)


    Hi,

    thanks for your answer. This is just for a QA environment and it won't run in Live. What I'm trying to do is just save...

  • RE: Saving query text, execution time and rows count

    Mauricio N (6/3/2014)


    Hi everyone,

    I want to save every query executed from a given software, let's say Multi Script for example, and save in a table query...

  • RE: CPU hungry query

    After some thought and running a trace , I fixed it this way.

    I created a temporary table for RecipeMap, the biggest table. Run a simple select statement against that table...

  • RE: TempTables

    GilaMonster (5/27/2014)


    sql-lover (5/26/2014)


    SQL Server does not hold statistics for table variables so row count is always 1.

    Not actually true.

    A good rule of thumb is picking table variables for small sets,...

  • RE: Buffer cache size much lower than Max Memory config + low PLE

    TheSQLGuru (5/24/2014)


    Like I said - I have no knowledge of their official stance or policies regarding SP/CU releases. But they have moved to MUCH more rapid releases now with...

  • RE: TempTables

    TheSQLGuru (5/26/2014)


    It is bad advice to recommend picking table variables with few numbers of rows. I can show you a one-row, one-column table variable that gets a bad plan...

  • RE: TempTables

    ramana3327 (5/26/2014)


    Hi,

    You mentioned stats here. How do we know how often we have to update stats. How to find the optimizer is using right stats or not?

    SQL Server does not...

  • RE: TempTables

    ramana3327 (5/24/2014)


    Thanks Everyone.

    Please let me know,

    How the table spool effect the performance? In what situation we can get table spool in execution plan and how can we avoid that?

    This...

  • RE: Buffer cache size much lower than Max Memory config + low PLE

    I experienced this same issue a week ago. No ballooning, VMware was fine. The problem was an IO Fusion profiler that was sucking memory from the SQL server. PLE dropped...

  • RE: side by side migration

    muthyala_51 (5/19/2014)


    We are planning to perform side by side upgrade of our Prod sql server from sql server 2008 to sql server 2014. Management team is requesting to keep two...

  • RE: SQL Server Databases Synchronization

    pgmoschetti (5/23/2014)


    TheSQLGuru (5/23/2014)


    .... assuming you don't make the secondary readable, which can do nasty things, including to your primary database ....

    Unfortunately operators have the option to query the...

  • RE: SQL Server Databases Synchronization

    Lempster (5/23/2014)


    sql-lover (5/23/2014)


    I don't know if deprecated is the right word. It is set to be removed on future releases.

    That's what 'deprecated' means!! I didn't say that mirroring is...

Viewing 15 posts - 271 through 285 (of 560 total)