Forum Replies Created

Viewing 15 posts - 9,031 through 9,045 (of 13,881 total)

  • RE: Reconcile values in 2 Databases

    I am wondering whether it would be worth producing properly normalised tables in each of the databases. I'm thinking along the lines of

    (CustId, AttId, AttValue)

    These three values could form...

  • RE: Reconcile values in 2 Databases

    Paul Stasny (10/9/2014)


    Phil,

    Thanks for your reply. I'm not clear on what you are suggesting. The only thing that links the two databases is the custid and custcode values. Based on...

  • RE: Reconcile values in 2 Databases

    Perhaps you can change your approach slightly – how about modifying your queries to run independently and produce lists of row counts, sums, checksums, whatever and then comparing those results?

  • RE: Passing Date parameter to Stored Procedure

    Rick Harper (10/9/2014)


    An old friend has come up with the answer so the riddle is solved

    I just replace:

    DECLARE @strdate VARCHAR

    with

    DECLARE @strdate VARCHAR(15)

    and everything works fine.

    Never mind your old friend. Your...

  • RE: Passing Date parameter to Stored Procedure

    Try running this and the answer will become clear:

    DECLARE @strdate varchar

    SET @strdate = '2004-01-01'

    select @strdate

    By declaring your variable as Varchar but without a length, SQL Server assumes a length of...

  • RE: sql query need help

    There is no out of the box way to do this.

    Have a look here for some ideas.

    If you have only a few numbers to consider, there may be a simpler...

  • RE: SSIS - Stop DataFlow task if result set is empty help

    omakler (10/8/2014)


    I was thinking the same thing last night. I will have to give that a try. How would you go about the first case in 2012,...

  • RE: SSIS - Stop DataFlow task if result set is empty help

    omakler (10/7/2014)


    I am trying to create a SSIS package that will create a csv of a dataset for daily events in the database. However there will be days that...

  • RE: query help

    sturner-926343 (10/7/2014)


    I have 2 tables. Based on the Table1 id which is a column in Table2, I would like the following

    Table1

    T1_Id

    1

    2

    3

    4

    Table2

    T2_IDT1_ID ...

  • RE: Show emplty output with 0

    karthik82.vk (10/7/2014)


    Hi Chris,

    I cannot create rows for the missing dates or change the date as its not a permitted- one. the data comes from another system and adding or changing...

  • RE: Case statement

    A note to the original poster. This thread is typical of many on this forum where, had you taken the time to write the question in the form suggested in...

  • RE: Case statement

    Try this

    use AA_Helper

    go

    select extension = AGENT_ID

    from dbo.tblEmpData

    where agent_ID is not null

    union all

    select agent_id2

    from dbo.tblEmpData

    where agent_ID2 is not null

    If you want DISTINCT entries only, change UNION ALL to UNION.

  • RE: Case statement

    I'm not 100% sure of what you are after, but maybe start with this:

    SELECT DISTINCT

    Extension = isNull(Agent_Id,'') + isNull(Agent_Id2,'')

    from [AA_Helper].[dbo].[tblEmpData]

  • RE: for loop (SSIS 2008 r2)

    As you did not answer all of my questions, it is difficult to help you.

  • RE: for loop (SSIS 2008 r2)

    challakarthik (10/5/2014)


    Hi ,

    I have a scenario like ........I have 6 flat files(Country1,Country2,Country3,.......Country6) in the source and i need to fetch the records of Country1 flat file to Country1 table in...

Viewing 15 posts - 9,031 through 9,045 (of 13,881 total)