Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)

  • RE: User Defined Table Type

    In sql server and in Azure the field that was causing the issue was a nvarchar(255), but the field coming back from salesforce was a numeric(10,0), so in my UDTT...

  • RE: sql injection help

    Lynn Pettis - Monday, December 4, 2017 12:53 PM

    By commenting the GROUP BY the query no longer parses, so doesn't run.

    but if...

  • RE: sql injection help

    Steve Jones - SSC Editor - Monday, December 4, 2017 9:19 AM

    What's the final code being run in SSMS? Can you show...

  • RE: sql injection help

    Sean Lange - Friday, December 1, 2017 9:52 AM

    kss113 - Friday, December 1, 2017 8:12 AM

    December 1, 2017 at 11:49 am

    #1970360

  • RE: sql injection help

    kss113 - Friday, December 1, 2017 11:38 AM

    Sean Lange - Friday, December 1, 2017 9:52 AM

    December 1, 2017 at 11:42 am

    #1970359

  • RE: sql injection help

    Thom A - Friday, December 1, 2017 10:01 AM

    Indeed, you would be much better off using parametrised SQL, or (even better) a...

  • RE: sql injection help

    Sean Lange - Friday, December 1, 2017 9:52 AM

    kss113 - Friday, December 1, 2017 8:12 AM

    December 1, 2017 at 11:38 am

    #1970355

  • RE: sql injection help

    DimPerson - Friday, December 1, 2017 10:16 AM

    I'm not entirely clear on what you are trying to do?
    Is 1,766.39 a variable?

    Assuming it...

  • RE: combine 2 rows into 1 row

    Doing that just gives me a total of 30029.35, both parts and labor added together, I need them separate fields/columns

    Parts 27791.85 labor 2237.50

  • RE: combine 2 rows into 1 row

    This is what I'd want my output to be.

    From:

    JRH-681 Daytona 2079347 2012-01-17 06:36:22.897 Labor 2237.5

    JRH-681 Daytona 2079347 2012-01-17 06:36:22.897 Parts 27791.85

    To:

    JRH-681 Daytona 2079347 2012-01-17 06:36:22.897 Labor 2237.5 Parts 27791.85

    ...

  • RE: sql help in where clause.

    Thanks jaya53, I'll give that a try on Monday.

    But, in all to get it working for my boss to view over the weekend I just did.

    If @activityStatusID = 1

    select..

    where

    ACS.Discription='Complete'

    else if...

  • RE: sql help in where clause.

    I have tried this, but get a

    Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when...

  • RE: sql help in where clause.

    Sorry no joy, I tried that.

    Also the ACS.Description fields is a nvarchar(80) which is what I set @ActiveStatusID to.

    I tried this, and it sort of works, but get a Subquery...

  • RE: sql help in where clause.

    Sorry still no joy, tried that.

    I also verified that ASC.Description is a nvarchar 80 so that's what my @ActivityStatusID is now.

    and

    ((

    case

    when @ActivityStatusID = '1'

    then ACS.[Description] = 'Completed'

    when @ActivityStatusID <>...

  • RE: sql help in where clause.

    nvarchar(3000) I made it that big because I've been testing all sorts of things. I've tried using an IN rather than = <>.

Viewing 15 posts - 1 through 15 (of 28 total)