Forum Replies Created

Viewing 15 posts - 346 through 360 (of 1,183 total)

  • RE: Help with bulk insert

    KEEPNULLS will keep any NULL value as in what would be in column C here ... "A,B,,D"

    But your data has a value, and that value is the word "NULL".

    I do...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Are cursors bad for iterating through the result set returned by a function?

    A few notes/comments/questions:

    1. Is this for a trigger, it appears so?

    2. Where do the other variables get set? @ptFlagIndicator1Var, @ptFlagIndicator2Var, etc...

    3. The "simple update" at the end IS relevant to...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Are cursors bad for iterating through the result set returned by a function?

    Can you post your "other" actions. There may be a way to solve your problem without a cursor.

    Try thinking "SET BASED" and apply the select/update to the result set of...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Output 1-many records to 1 line per parent

    Lookup PIVOT in BOL. It will get you part way.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Row to Colums - please help a Newbie

    You can still use the pivot summing on an irrelevant column, and ignore it.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Length

    ARGH!

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: SQL Server TIMERS!

    You would be much better off moving this out of the trigger.

    As in .....

    Have your trigger insert the PK values for the updated records into another table along with a...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Capture procedure(s) results in table(s) dynamically

    Jeff Moden (3/25/2011)


    Have you tried INSERT/EXEC?

    That's what I've ended up doing. Although to be dynamic is taking some more work.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: LEFT OUTER JOIN if True INNER JOIN if False

    Craig Farrell (3/24/2011)


    CELKO (3/24/2011)


    <snip>

    SELECT A.column_a, A.column_b

    FROM TableA AS A

    LEFT OUTER JOIN

    Flagged_Records AS FR

    ...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Delete 1000 records randomly

    Modify my previous script to use a temp table instead of a table variable, and it will work.

    I think I've found a Question of the day to submit. 🙂

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Delete 1000 records randomly

    OK, So this is not a complete answer. But it now has me asking WTF?

    The code below SHOULD work, at least from what I can see it should. You'll see...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: Today's Random Word!

    Brandie Tarvin (3/18/2011)


    Daniel Bowlin (3/18/2011)


    I'm not really paranoid, but people are out to get me. 😀

    Just because I'm paranoid doesn't mean people aren't out to get me.

    EVERYONE thinks I'm...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: tempdb settings

    Tara-1044200 (3/18/2011)


    I had a server where in disks were pulled out by the network team and on one of those disks tempdb was sitting. Now i can not strt the...

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: newbee - Having trouble grouping and getting only the 1st 25 instances of a column

    change it to ..... ORDER BY gpm.GMPI)

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg
  • RE: newbee - Having trouble grouping and getting only the 1st 25 instances of a column

    What makes them unique?

    Can you post sample data/DDL scripts?

    It's much easier to assist if I have sample data.

    ______________________________________________________________________

    Personal Motto: Why push the envelope when you can just open it?

    If you follow the direction given HERE[/url] you'll likely increase the number and quality of responses you get to your question.

    Jason L. Selburg

Viewing 15 posts - 346 through 360 (of 1,183 total)