Forum Replies Created

Viewing 15 posts - 481 through 495 (of 1,246 total)

  • RE: TSQL Query Help

    Another way to approach this is if you have a rowID column in your table , you can derive one into a temp table from the base table if you...

    ----------------------------------------------------

  • RE: How to average a date column?

    Hmm, I would rather do this in the SQL code ...

    I scrapped up the following >>

    with cte as

    (

    selectcast('20140701' as date) as cteDate

    Union all

    selectdateadd(d, 1,c.cteDate)

    fromcte as c

    wherec.cteDate <'20140731'

    )

    ,nextCte as

    (

    select top...

    ----------------------------------------------------

  • RE: How to get first day of next month in variable

    Spiff (9/29/2016)


    MMartin1 (9/29/2016)


    In the SSIS expression builder , enter:

    (DT_DATE)((DT_WSTR, 4) year(getdate())+"-"+ REPLICATE( "0", 2-LEN((DT_WSTR, 2)(month(getdate())+1) )) + (DT_WSTR, 2)( month(getdate())+1) +"-01")

    EDIT : This will give you...

    ----------------------------------------------------

  • RE: Any way to clean up mutually exclusive OR conditions?

    xr280xr (9/29/2016)


    drew.allen (9/26/2016)


    Luis Cazares (9/26/2016)


    drew.allen (9/26/2016)


    xr280xr (9/26/2016)


    I don't specifically care about short circuiting. I just need to only evaluate b if a is false and only evaluate c if a...

    ----------------------------------------------------

  • RE: How to get first day of next month in variable

    In the SSIS expression builder , enter:

    (DT_DATE)((DT_WSTR, 4) year(getdate())+"-"+ REPLICATE( "0", 2-LEN((DT_WSTR, 2)(month(getdate())+1) )) + (DT_WSTR, 2)( month(getdate())+1) +"-01")

    EDIT : This will give you the first...

    ----------------------------------------------------

  • RE: make over columns using comma seperated and select in query

    If you absolutely are identifying a row here base on the values of emp1, emp2 and emp3, then you can create a calculated field that persists in the table. This...

    ----------------------------------------------------

  • RE: Loading Multiple csv or xlsx Files into Table

    Another option you can try is the fixed width delimiter in SSIS. THere is no guarantee here though as it totally depends on the way your data is laid out.

    ----------------------------------------------------

  • RE: Loading Multiple csv or xlsx Files into Table

    You are in a tight spot here. You have text files with commas as the field separators and some of those fields are strings with commas within them. You cant...

    ----------------------------------------------------

  • RE: Loading Multiple csv or xlsx Files into Table

    RonKyle (9/28/2016)


    I have several dozen csv files where the data quality is poor, so is difficult to load directly into the SQL Server 2012.

    I have trouble imaging this, and certainly...

    ----------------------------------------------------

  • RE: Loading Multiple csv or xlsx Files into Table

    Michael L John (9/27/2016)


    and Access does a better job pulling spread sheets in then SSIS.

    So you would not use SSIS to pull into Access? I think the user wants...

    ----------------------------------------------------

  • RE: Exception has been thrown by the target of an invocation. SSIS Package. Integration Service Catalog

    If you are able to access the folder and file then you may want to study creating a proxy account for the SQL SERVER Agent account. This allows the agent...

    ----------------------------------------------------

  • RE: Loading Multiple csv or xlsx Files into Table

    I am not totally certain but you may want to install the appropriate version of the provider (32 bit, 64 bit) on both the machine where Office is installed and...

    ----------------------------------------------------

  • RE: Querying SSAS 2016

    If DAX in any way resembles MDX then I would say yes it is hard. Like any language, if you dont use it you begin to lose this. This holds...

    ----------------------------------------------------

  • RE: Any way to clean up mutually exclusive OR conditions?

    In a Where clause you may have a situation as

    WHERE (a>20) OR

    ...

    ----------------------------------------------------

  • RE: Getting the last weekday date for report header

    Just out of curiosity, what was your language setting?

    ----------------------------------------------------

Viewing 15 posts - 481 through 495 (of 1,246 total)