Forum Replies Created

Viewing 15 posts - 556 through 570 (of 3,232 total)

  • RE: Problem converting DTS funtionality to SSIS

    Well, this works to catch the moving target. You may stick with what you have, but this would still work inside of an OLE DB Source provided the source...

  • RE: Problem converting DTS funtionality to SSIS

    Dan.Humphries (4/1/2010)


    John,

    Thanks for the script. Unfortunatley it will not work for what I need since the bucket starting position is determined by the month of the last reading. So...

  • RE: Problem converting DTS funtionality to SSIS

    Can you just swap the ordering around, this seems much simpler?

    DECLARE @Table TABLE (Account varchar(25) , Meter varchar(25), ReadDate datetime, Usage int)

    INSERT INTO @Table

    SELECT '010012080', '00068276', '2010-02-26 00:00:00.000', 440.00000...

  • RE: The string geting truncated

    First off, I appologize for letting this one get away from me.

    Secondly, adjust the column properties as da-zero suggests. Your column needs to match the destination...

  • RE: Today's Random Word!

    Man Man (my 3 year old's way of saying batman)

  • RE: Problem converting DTS funtionality to SSIS

    Well, I won't get into a normalization bashing here, but In my opinion, you should store the data in some sort of 'Readings' table and create a view to pivot...

  • RE: Problem converting DTS funtionality to SSIS

    Your example data shows 1 entry per month. Can you give me an example of what your data would look like when there are multiple entries in a given...

  • RE: Overactive use of Temp Tables?

    What you are seeing with the table variables is expected. Table variables are scoped to the SQL batch.

    Why not eliminate the temp tables completely and insert into your destination...

  • RE: SQL Query

    It is because of your WHERE condition with the OR statement. Group the OR condition together like this:

    WHERE(CardORKey='Key' or CardORKey='Both')

    AND (LastName = @LastName OR @LastName IS NULL)

    AND (Date >=...

  • RE: Today's Random Word!

    crookj (3/31/2010)


    Komodo Dragon

    (Extremely interesting documentary last night)

    Joe

    Bearded Dragon

  • RE: Today's Random Word!

    You belong here in Nebraska with me Jason. One of the small towns outside of Omaha has a Testical Festival every year. It's a big attraction.

    Personally,...

  • RE: Help with Datediff function

    DECLARE @Date datetime

    SET @Date = '2008-01-10 00:00:00.000'

    SELECT DATEDIFF(dd, @Date, GETDATE())

  • RE: Help with Datediff function

    Can you give an example of the result set you are looking for? Also, how are these 2 tables related?

  • RE: Search for Underscore (_)

    DECLARE @Table TABLE (RowID int IDENTITY(1,1), Col1 varchar(10))

    INSERT INTO @Table(Col1)

    SELECT 'test' UNION ALL

    SELECT 'T_est'

    SELECT *

    FROM@Table

    WHERECHARINDEX('_',Col1) > 0

  • RE: Today's Random Word!

    sushi

Viewing 15 posts - 556 through 570 (of 3,232 total)