Forum Replies Created

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

  • 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...

  • RE: Adding new varchar (30) field to table causes stored procedure to take 10 times more time

    JeeTee (12/9/2014)


    Where did you read nolock is deprecated?

    Not that I'm encouraging use of nolock, but I see it's deprecated in from clauses in updates and inserts, but not straight selects....

  • RE: CONVERT DATETIME INTO DATE IN SSIS

    Another thing to consider... in your four tables, if you only pull records that are time stamped within that last hour that you want to fetch and you dont need...

  • RE: CONVERT DATETIME INTO DATE IN SSIS

    I am still confused on the existence of the looping task. If you want to pull data hourly you can simply schedule the job to run hourly. Are you setting...

  • RE: Tricky SQL Query

    Is this what you are looking for ?

    with MYcte as (

    select studentUID, qual, max(regyear) as throughYear

    from #AAA_Mytable

    group by studentUID, qual

    )

    SELECTt1.termCalendarID, t1.regyear, t1.studentUid, t1.qual

    ,coalesce(oa.rollover, 0) as Rollover

    from #AAA_Mytable as t1...

  • RE: Adding new varchar (30) field to table causes stored procedure to take 10 times more time

    You probably have here the table being more index than data. The covering index helps but know the cost.... longer inserts, updates, deletes and makes maintenance plans (such as backups)...

  • RE: backup on maintenance plan doesn't work.

    When the process is ran by a job, is the job step using a credential to run? If so it could be an account different from the one the Agent...

  • RE: Report Metadata

    From reading the posts on this topic, an idea is to use sort of a hybrid system . That is, I would explain the purpose of the report and anything...

  • RE: Dynamically hourly data extraction in SSIS 2012

    Are you doing a lot of transformations to this data? SSIS is effiecient in its resource use when you have non blocking data movements. (IE.. no aggregating, sorting....). How is...

  • RE: Using SSIS

    The Data Profile Viewer is installed through the SQL Server installation , not something that you can download for free (as of yet). In the install wizard one would uncheck...

  • RE: Weird I/O Problem with server

    I am wondering if it is possible that the sql server service on that host machine has eaten up most of the available ram, to where the other processes have...

  • RE: T-SQL Development Standards

    DonlSimpson (12/2/2014)


    Jeff Moden (10/25/2008)


    As soon as something needs to "go in in a hurry", all notions of standards and well intended code reviews will go by the wayside.

    +1

    You may even...

  • RE: Approach to archiving tables with foreign key constraints

    I'm assuming you are deleting/archiving based on the date here. I would try to build a clustered index on your table by date if it is not there already. Take...

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