Forum Replies Created

Viewing 15 posts - 871 through 885 (of 5,504 total)

  • RE: Are the posted questions getting worse?

    Lynn Pettis (11/11/2011)


    What other Threadizins are participating in the DBA in Space contest? Looking for launch buddies!

    Done. Care to return the favor? -> buddies

    TIA 😎

    As a side note: that...

  • RE: DEADLOCK problem in our production DB

    You might want to have a look at Bart Duncans blog for a description on how to troubleshoot deadlocks.

  • RE: Formating numbers

    A rephrase of the original question without providing any additional information doesn't really help any further.

    And no, it still doesn't make sense to me.

    However, even if there might be no...

  • RE: Comparing strings

    Based on what formula should the percentage value be calculated?

  • RE: Comparing strings

    It's hard to help based on the information provided so far.

    Please read the first link in my signature and provide some sample data (together with table def and expected results)...

  • RE: Formating numbers

    What exactly is your question?

    In general, formatting should be done at the presentation layer.

    If it needs to be done using T-SQL, there are several options.

    Which one could be used in...

  • RE: Grouping on month

    I forgot: you might also want to add an index on dt with balance included to improve performance. Otherwise there'll be additional sort operations that should be avoided.

  • RE: Grouping on month

    Here's a slightly different approach based on the CROSS APPLY method.

    One thing making the code more complex is the "interpretation" of the very first balance being the start balance of...

  • RE: Grouping on month

    bitbucket-25253 (11/5/2011)


    Have you looked at this article by Jeff Moden. It might give you enough info to solve your problem.

    http://www.sqlservercentral.com/articles/T-SQL/68467/

    Ron, I don't think it's a running total scenario. It...

  • RE: Grouping on month

    Based on your sample data, what would be the expected result?

  • RE: before insert trigger

    Can you add a computed persisted column based on the run_time column to hold the date value only and add a unique constraint to it?

    Probably a better performing solution than...

  • RE: Stored procedure performance

    dm_tapas (11/1/2011)


    Don't mind , I have not written the code ,,

    Somebody has written from client side. Now it is giving problem to client . so they ask me to tune...

  • RE: Cann't run the SSIS job using sql agent

    Unfortunately, it's a rather common issue...

    It seems like the SQL agent does not have appropriate permissions to execute the package.

    One recommended solution is to add a proxy account with the...

  • RE: Suboptimal execution plan with xml.nodes

    Did you try to insert the xml data into a table with an indexed xml column?

    AFAIK, SQL Server does not calculate any statistical information on a variable. Therefore, it can't...

  • RE: case statement help.

    CELKO (10/27/2011)


    Ty here is no CASE statement in SQL; we have a CASE expression. The minute you make that mistake, we know that you will be making a lot of...

Viewing 15 posts - 871 through 885 (of 5,504 total)