Forum Replies Created

Viewing 15 posts - 451 through 465 (of 1,473 total)

  • RE: 4 table join - easy one for you guys

    William Plourde (10/28/2009)


    This seems a little excessive, since all these tables pertain to a given loan id why can't it be :

    SELECT ..

    FROM loan L

    JOIN Borrow B on...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: getdate() convert function

    I'd go with Lutz's suggestion.

    Converting to character and back involves extra steps that don't need to be taken and tends to be slower over a large number of...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: 4 table join - easy one for you guys

    From the information provided:

    SELECT [...]

    FROM loan L

    INNER JOIN borrower B ON B.LoanID = L.LoanID

    INNER JOIN property P ON P.LoanID = L.LoanID AND P.LoanID = B.LoanID

    INNER JOIN status S ON S.LoanID...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Insert not commiting?

    CooLDBA (10/28/2009)


    There is no trigger.

    I figure out.

    Thanks for replying.

    And.... what did you figure out?

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Like pattern

    I'm gonna hazard a guess here based on the normal thought process that leads to this question and guess that you're saying:

    OName = 'C'

    works fine, but

    OName = 'C,D,E,F'

    does not...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: grant exec on user SS2000 in stored proc

    I really don't see any reason that you need the grant statement as part of the Stored procedure execution code. You can put it into a header comment so...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Workaround needed for SQL Server 2000 limitations, when data collected from many servers

    Have you looked into Distributed Transactions like I initially mentioned? Here's a KB article:

    http://support.microsoft.com/kb/280106

    If possible, you should address the actual problem, not create a convoluted work-around.

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: How to RTRIM a Text type field longer then 8000

    Lowell (10/27/2009)


    ahh your right...you can change to varhcar(max), and make things bigger than 8000, but only in 8000 chunk bites.

    You can go over 8K if you cast the ' '...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: How to RTRIM a Text type field longer then 8000

    Check the Datalength of that Lowell. I think you need to cast the ' ' inside that replicate to varchar(max) or it'll cap out at 8K.

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: How to RTRIM a Text type field longer then 8000

    There is likely a more efficient way... but this may work:

    SELECT REVERSE(LTRIM(REVERSE(yourcolumn)))

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Workaround needed for SQL Server 2000 limitations, when data collected from many servers

    This is going a bit out of my realm here, as I consider this more of a DBA question, but since nobody else is biting, I'll give it a shot:

    A...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Any Cons to long column names.

    Silverfox (10/26/2009)


    You should try working with sage then, the tables and colums are just a jumble of the alphabet, the main reason sage consultants get paid so much 😀

    I have...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Help with Group By

    What do you want to do if you have two different ItemNumbers with the highest cost for 1 item?

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: Help with advanced SELECT

    Take a look at the values in the case statement. They're missing accents/special characters from the copy/pasting. Fix the actual values on your end and see what you...

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

  • RE: DDL dependency tracking

    Check out RedGate's toolset. They've got some really amazing stuff. I can't say whether or not it will perfectly suit your needs, but it's definitely worth looking at....

    Seth Phelabaum


    Consistency is only a virtue if you're not a screwup. 😉

    Links: How to Post Sample Data[/url] :: Running Totals[/url] :: Tally Table[/url] :: Cross Tabs/Pivots[/url] :: String Concatenation[/url]

Viewing 15 posts - 451 through 465 (of 1,473 total)