Forum Replies Created

Viewing 15 posts - 466 through 480 (of 3,544 total)

  • RE: VS 2012 - C# question on configuration files

    Brandie Tarvin (10/30/2015)


    Okay DataTables are a C# thing? I honestly did think you were talking SQL Server. And now DataViews?

    In this context, yes C# as in .NET

    Look up DataSets, DataTable...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (10/30/2015)


    Someone needs to have a talk with that David Burrows guy. He's talking crazy in another thread. Like suggesting I could use SQL Server tables to solve a...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Eirikur Eiriksson (10/30/2015)


    David could maybe use a little shrinking but he doesn't need a shrink:-P

    😎

    LOL Thanks Eirikur 😀

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: VS 2012 - C# question on configuration files

    Brandie Tarvin (10/30/2015)


    David Burrows (10/30/2015)


    As an alternative you could define a DataTable to contain JobName and Response columns, add rows using a loop (similar to above) and output to a...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: VS 2012 - C# question on configuration files

    Just a guess but if you had pairs of labels (ie J1,J1a,J2,J2a etc) to hold job name and response respectively then

    string[] MyJobs = SvrBJobNames.Split(',');

    Label[] JobNameLabels = {J1,J2,J3,J4,J5};

    Label[] JobResponseLabels = {J1A,J2A,J3A,J4A,J5A};

    for...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: VS 2012 - C# question on configuration files

    Or

    string[] MyJobs = SvrBJobNames.Split(',');

    if there are no empty entries 😉

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: CASE WHEN SELECT Help.

    Also you need to put the WHENs in the order you want them tested

    ie

    WHEN A.[Measure] IN ('RTT-01','RTT-04','RTT-07') AND A.Value NOT LIKE '%[0-9.]%' THEN ''

    WHEN A.[Measure] IN ('RTT-01','RTT-04','RTT-07') AND A.Value >...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: CASE WHEN SELECT Help.

    dramaqueen (10/29/2015)


    I have added that extra where clause. I agree with what you are saying but it still come back with an error.

    Sorry forgot to mention that you will have...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: CASE WHEN SELECT Help.

    ChrisM's solution is correct.

    The error will be due to inconsistances between your Measures and numeric/nonnumeric Values

    You will need to add extra WHEN conditions to avoid implicit cast errors

    i.e

    WHEN A.[Measure]...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    ChrisM@Work (10/1/2015)


    David Burrows (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Oh, and maple beer - yuck.

    This made me spill my ESB all over the Pub lunch

    😎

    Where have you found ESB on draught?

    Many many...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Oh, and maple beer - yuck.

    This made me spill my ESB all over the Pub lunch

    😎

    Where have you found ESB on draught?

    Many many moons ago when...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Recurrences

    Poor performance :angry:

    But....

    WITH

    cte1 (Dt,Item,RowNo) AS (

    SELECT Dt,Item,ROW_NUMBER() OVER (ORDER BY Dt ASC)

    ...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Recurrences

    DECLARE @value int = 2;

    WITH cte AS (

    SELECT Dt,Item,

    ROW_NUMBER() OVER (ORDER BY Dt ASC) -

    ROW_NUMBER() OVER (PARTITION BY Item ORDER BY Dt ASC) AS [Grp]

    FROM #tab1 t

    ),

    ...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: How to create report like this in SSRS

    In Tablix make blue section the detail group and the yellow section group header (Phase Code)

    See attached sample.

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Updating an existing table with max(value)+row number (partition by 2 columns)

    if we have same job_cd and permit_nbr, reference number should be same

    Is this for existing allocated reference number?

    take max(reference number) from the table +1 for all rows where reference_nbr column...

    Far away is close at hand in the images of elsewhere.
    Anon.

Viewing 15 posts - 466 through 480 (of 3,544 total)