Forum Replies Created

Viewing 15 posts - 1,021 through 1,035 (of 1,473 total)

  • RE: Please help me see what is happening in datetime string manipulation

    Heh, so the "local settings" were... a different time. :blush:

    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: Please help me see what is happening in datetime string manipulation

    Interesting. Not sure what local settings would cause something like that. You could probably get rid of it with a REPLACE(x,' ',''), but that seems a bit wasteful.

    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 Calculating Percentages

    Or this one:

    [font="Courier New"]DECLARE @Tests TABLE(

    CourseNum  INT,

    Grade      CHAR(1))

    INSERT INTO @Tests(CourseNum, Grade)

    SELECT 0500300,            'A' UNION ALL

    SELECT 0500300,            'B' UNION ALL

    SELECT 0500300,            'A' UNION ALL

    SELECT 0500300,            'C' UNION ALL

    SELECT 0600000,            'A' UNION ALL

    SELECT 0600000,            'C'

    SELECT

      ...

    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: Please help me see what is happening in datetime string manipulation

    Not sure what your question is. When I run your strings, I get this:

    10 142210144

    What are you getting?

    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: Case in a where Clause

    Using a 2 digit year for DOB seems like it could cause you problems down the road, as people can live to be over 100 (and a few other scenarios...

    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 write a script that will display records in the "date" format

    Oh where to start.

    First. Do not create new threads with the same question in them. It splits replies, confuses things and just generally annoys people.

    Second. You still...

    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: Rollback or reverse actions caused by query

    Actually, my first post isn't necessarily true. You may be able to restore the db and the transaction logs up to the point of your bad update query if...

    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: Rollback or reverse actions caused by query

    If you didn't nest your update in a transaction, and you don't have implicit transactions turned on for your connection... then no.

    Restore your database with a different name,...

    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 NOT to use parameters to avoid SQL injection

    LOL. Well... they DID use a parameter.:hehe:

    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: SELECT IN failing

    You can't pass a list like that directly. You can do it with either dynamic SQL, or splitting that comma delimited list. There are advantages and disadvantages to...

    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: Question regarding horse racing database query in SQL Server 2005 Express

    @Barry:

    UGH. I thought about rounding like 3 times, but kept looking at his data and thinking "It's all integers, shouldn't be an issue." Well, it's not. Until...

    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: Question regarding horse racing database query in SQL Server 2005 Express

    Is that query the only thing that is in your query window? Sometimes in cases like this it's executing something else that you're not intending to execute which is...

    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: error Must declare the variable '@x_ap_payment_summary'

    You have to alias the table variable and use that in your declaration.

    Use this instead:

    UPDATE @x_job_cash_flow

    SET inv_payment_amt = PS.inv_payment_amt

    FROM @x_job_cash_flow CF

    INNER JOIN @x_ap_payment_summary PS ON CF.company_code...

    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 write a script to display a "date" format in view (SQL Server 2005)

    Something tells me you didn't read the article.

    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: problem with function

    My guess is that the ASP page is actually running your query twice. I've seen this before. I haven't done much research into why it happens, but I've...

    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 - 1,021 through 1,035 (of 1,473 total)