Forum Replies Created

Viewing 15 posts - 601 through 615 (of 1,554 total)

  • RE: Sending an email using T-SQL

    Yes, xp_sendmail uses MAPI and need lots of icky configs to work and have all sorts of issues.

    A 'better' way to mail-enable SQL Server is to use xp_smtpmail instead

  • RE: Decimal Rounding. Am I being silly..?

    I'm not going  to say I understand how, cause I don't - but I'm guessing that what you're seeing is result of truncation....

  • RE: SQL Check not working

    So, do you still have the problem?

    If you do, please post some sample data and the offending query to reproduce it.

    /Kenneth

  • RE: Retrieving Date Formats

    Small correction - only CONVERT supports display styles, CAST does not.

    /Kenneth

  • RE: SQL Check not working

    What's with the 'with ST'...? The example is querying for 'UU'..?

    If you look stright in the extracode table for the account, how does that look?

    You could also try to change...

  • RE: Extract entities having ALL of a set of attributes

    Ah, no problem at all Steven.

    I've never been to Iceland, though I'd like to visit there sometime.

    From what I (think) I know about Icelandic naming standards, is that what we...

  • RE: inserting decimal point

    Ah, just realized that Mathew's solution did add a zero to make up 726.50.

    /Kenneth

  • RE: inserting decimal point

    What about 726.5 then? Is it good as is, or should that be 726.50 also..? (since you wanted 2 decimals on 250.00)

    /Kenneth

  • RE: Very basic question - Insert or Update?

    No, it's quite unnecessary.

    If the update was attemped straight off, you could always check @@rowcount for how many rows was affected by the update. There is no error if rowcount is zero,...

  • RE: Trigger causes Deadlock

    Maybe get SQL Express and get a headstart finding out how things could be improved..?

    /Kenneth

  • RE: Extract entities having ALL of a set of attributes

    Close enough

    When looking out the window, I'd imagine that the weather could be the same in Iceland as here, though I live...

  • RE: How to return COMPUTE result from stored proc

    Like this then?

    select x.gt

    from  (

            Select CustomerName,

                   CustomerNumber, 

                   FGoal AS FG,

                   FSched,

                   (cast(FGoal as numeric(30,2)) / FSched) * 100 AS gt

            from   DR

            WHERE  e='09'

            group...

  • RE: please, need help with query

    Would this do?

    select a.userID

    from myTable a

    where a.version# = 1.0

    and not exists ( select * from myTable b where a.userID = b.userID and b.version# > a.version# )

    /Kenneth

  • RE: what is this for

    Looks like the data is from or to a '||' delimited file or similar.

    As written I don't think it's a valid statement.

    Could it be that it's supposed to be LIKE...

  • RE: How to return COMPUTE result from stored proc

    Try and see if this works.

    (You just wanted the final grand total row, right?)

    Select CustomerName,

           CustomerNumber,

           FGoal AS FG,

           FSched,

           (cast(FGoal as numeric(30,2)) / FSched)...

Viewing 15 posts - 601 through 615 (of 1,554 total)