Results 1 to 2 of 2
  1. #1
    Join Date
    May 2013
    Posts
    14

    Unanswered: Reporting automation using SQL SERVER 2008 R2 Reporting Services

    I am a relatively new user of SQL SERVER 2008 R2 Reporting services and am in the process of automating (subscriptions) much of our reporting needs.

    I have a batch of reports that follow this scenario that I would like to automate from the current manual process.

    I have two separate databases on two different servers. I use ODBC connections to query both servers.

    ODBC1 on the first server returns the following data fields:


    LN_ACCT.acn
    LN_ACCT.ln_sfx
    LN_ACCT.col_cd
    LN_ACCT.orig_ln_dt
    LOAN_ADD.VIN

    This is saved as query1


    ODBC2 on the second server returns the following data fields:


    LN_EXTRA.acct
    LN_EXTRA.ln_sfx
    LN_EXTRA.col_cd
    LN_EXTRA.orig_ln_dt
    LN_EXTRA.doc_type

    WHERE LN_EXTRA.doc_type = 'COLLATERAL'

    This is saved as query 2


    Both queries are imported into MS ACCESS as new tables

    query1
    query2

    Left Outer Join query1.acn = query2.acct
    Left Outer Join query1.ln_sfx = query2.ln_sfx

    Query run to return the following:

    query1.acn
    query1.ln_sfx
    query1.col_cd
    query1.orig_ln_dt
    query1.VIN
    query2.doc_type

    Where query2.doc_type does not equal 'COLLATERAL'


    I would love to be able to automate this process into SSRS. I understand there may be a way to "link" these two tables and design a report in SSRS that would be able to accomplish my goal.


    Any help would be greatly appreciated....

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    Link one server to the other and then only execute one procedure.

    sp_addlinkedserver (Transact-SQL)
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •