Forum Replies Created

Viewing 15 posts - 5,821 through 5,835 (of 8,416 total)

  • RE: Calculating interest query

    Hi Chris,

    I had to add a quick index on acct_no to get the table scale-up thing to work in my lifetime (the MAX gets out of hand without it!), but...

  • RE: dynamic sql issues

    Dave Ballantyne (2/27/2010)


    I have a blog entry on dynamic sql and unbalanced data loads which seems appropriate to pimp here 😉

    Very nice. I seem to recall that there is...

  • RE: Pivot to 1 column

    Some code to illustrate my point:

    DECLARE @Result

    TABLE (

    enrollee_id INTEGER NOT NULL,

    ...

  • RE: Pivot to 1 column

    lmu92 (2/27/2010)


    Unless I'm overlooking something...

    The reason for TYPE and the XQuery outside is to solve entitization issues.

    Try including sample data embedded characters such as '&', '<', '>' (and so on)...you'll...

  • RE: dynamic sql issues

    Matt Miller (#4) (2/22/2010)


    WayneS (2/22/2010)


    If you use sp_executesql, the dynamic string can be set up so that all variables are parameters, and the parameters also passed in thru sp_executesql. As...

  • RE: Problem in Join Query

    If you wanted to list all products which have all descriptors, you might use something like this:

    DECLARE @product

    TABLE (

    product_id ...

  • RE: Using CTE Common table expressions with SELECT CASE statement

    -- Table 1

    DECLARE @T1

    TABLE (A INT NOT NULL);

    -- Table 2

    DECLARE @T2

    TABLE (A INT NOT NULL);

    -- Sample data for table 1

    INSERT @T1 (A) VALUES (1);

    INSERT ...

  • RE: Are the posted questions getting worse?

    GilaMonster (2/27/2010)


    Someone is a little over-sensitive to corrections and disagreements. Not just that thread, several previous ones too.

    I had noticed that too, but thought 'Welsh Corgi' had improved in that...

  • RE: Avoid dynamic SQL

    Welsh Corgi


    I regret if I came across as negative but the forum members that are crying that I am being a dick should closley examine themselves

    I said "don't be a...

  • RE: Calculating interest query

    For completeness, I'm going to add a new method to the mix (before anyone else jumps in!).

    This is a method called 'set-based iteration' by MVP Hugo Kornelis, which was first...

  • RE: Avoid dynamic SQL

    Michael Valentine Jones (2/27/2010)


    Cutting off your head to avoid the pain is another possible solution. Again, most would consider it suboptimal.

    I am just a mess of giggles here...:laugh: :laugh:...

  • RE: Query + XML Data + Time Consuming

    ChrisM@home (2/26/2010)


    ChrisM

    Junior Software Engineer

    LMAO! :laugh:

  • RE: I want to insert bulk data without using txt file

    thummalalavanya (2/26/2010)


    i want to insert bulk data in one field in a table without using txt file directly using insert statement .plese reply me.

    Do you mean: You want to...

  • RE: Are the posted questions getting worse?

    Jeff,

    Did you really just post:

    The actions to take to counter intrusions should always be taken before the attempt at penetration and I'm careful to take those actions.

    ...? Have you...

  • RE: Avoid dynamic SQL

    Kingston Dhasian (2/26/2010)


    If you have a pain in your finger, chopping your hand off is not the solution.

    In fairness, it is *a* solution, just probably not optimal :laugh:

Viewing 15 posts - 5,821 through 5,835 (of 8,416 total)