Forum Replies Created

Viewing 15 posts - 9,691 through 9,705 (of 26,489 total)

  • RE: Querying a specific period

    Stewart hit the error. I think you can see it better when you look at the code as I have it formatted:

    SELECT

    rh.Branch,

    ...

  • RE: days into completed weeks only

    LoosinMaMind (9/10/2012)


    Thanks, sorted the issue now.

    Proper forum etiquette would have you share your solution with others. It may help someone with a similar issue.

  • RE: Querying a specific period

    aaron.reese (9/10/2012)


    WHERE datetoquery >= dateadd(d,-3,getdate())

    If datetoquery is a dateTIME stamp you may need to also strip the time off the getdate()

    Which can be done one of two ways in SQL...

  • RE: Odd SQL conversion error "August 2012"

    Andrew-495157 (9/10/2012)


    Lynn wrote "You really don't get it, do you"

    In the UK this would be considered a provocative and rude statement. I will assume cultural differences apply here.

    Having used RBDMS...

  • RE: Odd SQL conversion error "August 2012"

    Andrew-495157 (9/9/2012)


    Lynn wrote "This means it HAS TO do an implicit conversion of the nvarchar value 'AB' to INT in order to complete the test and fails since 'AB' can...

  • RE: Odd SQL conversion error "August 2012"

    And just so you know, you would have this same issue if the database was Oracle as it uses a similar data type precedence as SQL Server when doing implicit...

  • RE: Odd SQL conversion error "August 2012"

    Andrew-495157 (9/9/2012)


    SELECT Job_Bag

    FROM Job_Bag

    WHERE

    Job_Bag.Description_Reference = 1609

    AND Job_Bag.Cust_Order_No = '70255'

    * A row exists which matches the WHERE cluase conditions

    * The row with value 'AB' in column Description_Reference has value...

  • RE: Odd SQL conversion error "August 2012"

    Andrew-495157 (9/8/2012)


    I don't understand.

    I described EXACTLY the results.

    Not sure how else to post them?

    I

    And actually, you didn't describe exactly the results of the query I asked you to run....

  • RE: Odd SQL conversion error "August 2012"

    Lynn Pettis (9/8/2012)


    Didn't ask for a description, I ask for the results of a specific query that would return 2 columns and an unknown number of rows (possibly 2).

    Copy paste...

  • RE: Odd SQL conversion error "August 2012"

    vijayinder (9/8/2012)


    Have we tried explicit conversion and see if it works?

    Yes, if you read the first post it says taht.

  • RE: Odd SQL conversion error "August 2012"

    Did ask for a description, I ask for the results of a specific query that would return 2 columns and an unknown number of rows (possibly 2).

    Copy paste normally works...

  • RE: Odd SQL conversion error "August 2012"

    I asked for the results of the query, where is it?

    Are you afraid to post the results?

  • RE: Are the posted questions getting worse?

    Evil Kraig F (9/7/2012)


    Lynn Pettis (9/7/2012)


    Evil Kraig F (9/7/2012)


    Now, if you pushed it for a mile or two and it took half an hour... I'd just say thank you, take...

  • RE: Odd SQL conversion error "August 2012"

    Run the following and post the results:

    SELECT

    Job_Bag.Description_Reference,

    Job_Bag.Cust_Order_No

    FROM

    Job_Bag

    WHERE

    Job_Bag.Description_Reference = 'August 2012' or

    ...

  • RE: Odd SQL conversion error "August 2012"

    Andrew-495157 (9/7/2012)


    As I mentioned before there was already the value "AB" in a row in the table which cannot be converted to a string.

    So one might expect the code to...

Viewing 15 posts - 9,691 through 9,705 (of 26,489 total)