Forum Replies Created

Viewing 15 posts - 10,171 through 10,185 (of 13,879 total)

  • RE: Select Distinct last records

    Methew (2/7/2013)


    i have a table with three fields

    id,bank_id,amount

    it has alot of data....how i can select last entry for all distinct banks ?

    lets say(Below code has not tested)

    IF OBJECT_ID('TempDB..#mytable1','U') IS NOT...

  • RE: Help with Derived Column Expression

    You could add another level of nesting:

    Expression < 0 ? 0 : Expression

    where expression is the entire statement you currently have.

    Or - slightly unorthodox - add another derived column transformation...

  • RE: Update on on join where maximum date value

    Great, no problem!

  • RE: Update on on join where maximum date value

    Here's one way, I think

    update it

    set Add1 = s.Add1

    ,Add2 = s.Add2

    from dbo.items_test it

    join dbo.Staging1 s on it.Location = s.Location

    and it.ProdCode = s.ProdCode

    and it.Customer = s.Customer

    where it.Date_Effective =...

  • RE: While/Loop Help

    Jason-299789 (2/6/2013)


    Phil,

    It was aimed as more of an example of how to generate the basic data (ie a Sequential date), so that you can then start adding on the...

  • RE: While/Loop Help

    wafw1971 (2/6/2013)


    thanks for the quick replies, because I am learning I have decided to just populate the first column with a date say 01/01/2010 and then increase this in increments...

  • RE: While/Loop Help

    Jason-299789 (2/6/2013)


    (reposted from other thread)

    Your best bet is to use a TALLY table, a CTE, or at worst a Recursive CTE.

    using an crude tally table

    With Cte_n

    AS

    (

    Select 1 a Union...

  • RE: Deployed package is not picking up dtsconfig file

    aaron.reese (2/6/2013)


    Resolved but not happy:angry:

    from the command line I have to use the /conf[iguration] switch to specify the location of the config file which will then override the location specified...

  • RE: SSIS Script Task update on a table

    fecker (2/6/2013)


    First: thanks for your feedback. Description may be strange while I am german.

    I did some screenshots (attached) - for this dummy - maybe this will explain more. I run

    this...

  • RE: Choose one static source inside for loop

    iamsql1 (2/5/2013)


    HI

    i have a qs: if i have a data flow task inside for loop container. and DFT contains five static connections of FLAt file as Source...

  • RE: Dialogue box from SSIS's script task throw error when called through SSMS Job

    The SQL Agent job runs asynchronously - so it's not going to return 'finished' info to your application.

    You could, perhaps, implement an MSMQ solution, though that may be a sledgehammer...

  • RE: SSIS Script Task update on a table

    I tried understanding what you are trying to do, but it confused me as it's not written very clearly.

    But then you have said that your script task to update a...

  • RE: DTExec succesfull in CMD window, fails in Agent Job

    opc.three (2/5/2013)


    ngreene (2/4/2013)


    What is stupid is I am running Interop 2010 on a Server 2008 box and this change still fixed my problem. What the heck!

    The issue is that...

  • RE: check contents of a text file

    aaron.reese (2/4/2013)


    Thanks Phil, That was a useful lesson.

    Unfortunately I can't see how to assign the value to a variable without using a script. I have tried sending the...

  • RE: check contents of a text file

    Read the file in a dataflow.

    Add a conditional split which redirects processing according to what has been read - two outputs: Build Success and the rest.

    Each different path sets a...

Viewing 15 posts - 10,171 through 10,185 (of 13,879 total)