Forum Replies Created

Viewing 15 posts - 826 through 840 (of 1,243 total)

  • RE: Acessing Unix files directly through SSIS

    Orlando Colamatteo (12/17/2014)


    Just for the record, CHAR(253) is not Unicode.

    Hi Orlando,

    Hmm, I guess I am not clear on what you mean... I just saw that unicode decimal 253 is the...

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

  • RE: Calculating Last 5 Business Days and Next 5Days

    Agreed, its not hard on my eyes either. I am trying to get into the mind of someone that has not seen this syntax before. It is not that difficult...

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

  • RE: Calculating Last 5 Business Days and Next 5Days

    jshuter (12/17/2014)


    I understand the need to use SQL when doing SQL but a little looping wont kill ya 🙂

    I'd still do something like the following

    declare @i int =...

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

  • RE: SQL doesn't see .bak file?

    Under SSMS> Server Objects, >

    there is a Backup Devices folder. Here you can easily create a .bak file and easily find it later as well through here. You can point...

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

  • RE: Select bottom 25%

    Statistically speaking you want the first quartile, so borrowing on Matt's solution I would just shift a few things to make it intuitive ...

    with MYcte as (

    selectMAINGROUP,vALUE, NTILE(4) OVER...

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

  • RE: Database column size increased but SSIS package not reflecting the change

    I find in these situation I save a lot of time by dropping the source and creating a new one. If I had SQL coded I copy it ahead of...

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

  • RE: Better to store 0 or null in a column

    0 means 0 , NULL means unknown. They are not the same.

    One approach if you do not want to have nulls in your table is to have a "magic"...

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

  • RE: Acessing Unix files directly through SSIS

    mitesh.temre (12/17/2014)


    lvbntapasvi (9/6/2014)


    Hello All,

    I am new to SSIS, and have started using it from the past 3 weeks. I have a task where in I am supposed to access the...

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

  • RE: Conversion of Date from legacy systems with 7 and 6 digit format to DD/MM/YYYY format

    Luis Cazares (12/9/2014)


    Should I insist on this method? I just added a NULLIF function and it works.

    SELECT CAST( CAST( 19000000 + NULLIF(oldDate, 0) AS CHAR(8)) AS date)

    FROM( VALUES('0980412'),('1100323'), ('0'))x(oldDate)

    I think...

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

  • RE: OLE DB provider "SQLNCLI10" for linked server "(null)

    I know this probably is a long shot but is everything lined up in the Sql Server Configuration Manager ? (I have shared memory, tcp/ip, and named pipes all enabled).

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

  • RE: Alter the schema from one view causes the need to alter the other

    MMartin1 (12/1/2014)


    You could schema bind a view to a table , so that the columns the view depends on are not altered until the binding is removed. This would have...

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

  • RE: Divide by zero error encountered.

    Eirikur Eiriksson (12/16/2014)


    DonlSimpson (12/16/2014)


    MMartin1 (12/16/2014)


    NULLIF((EVT.VAL2), 0)

    Maybe I'm just missing something here, but how can the above EVER return a zero?

    It would not, but that is what the user wanted. That...

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

  • RE: Divide by zero error encountered.

    NULLIF((EVT.VAL2), 0)

    Maybe I'm just missing something here, but how can the above EVER return a zero?

    It would not, but that is what the user wanted. That is to prevent a...

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

  • RE: Divide by zero error encountered.

    As long as the business users understand the calculation and they are fine with it, that is what matters. Ideally if there are values missing I like to return null...

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

  • RE: Divide by zero error encountered.

    Eirikur Eiriksson (12/15/2014)


    farrukhhameed786 (12/15/2014)


    Hi

    Please Below the query i need to use condition

    I need to use in below query how to use

    SELECT

    ISNULL(EVT.VAL1/NULLIF((EVT.VAL2),0),0) AS ITEM_ID

    FROM

    EVENT1 EVT

    WHERE NAME IN...

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

Viewing 15 posts - 826 through 840 (of 1,243 total)