Welcome to Forums Sign in | Join | Help | Forums
in Search


Queries and Temporary Views

Last post 12-21-2010 11:20 AM by Reza Islam. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-03-2009 3:01 PM

    Queries and Temporary Views

    I'm getting started on extracting data from Raiser's Edge with RODBA. The approach is to take the queries defined through the front-end and examine the SQL.

    Some of the queries included views with names like tmp14565_286378713_1, that are also refereneced in the TempObjectLog table. These views are created and destroyed when the queries are open. The definition of these views is not available, from the database -- it seems like the source is encrypted or the proper permissions don't exist.

     I'm looking for any information on the views. They do not seem to be needed for all queries. Are they certain constructions or approaches that will prevent them? Is there some way to resolve them to their underlying definition? Any pointers for working with them?

    We are developing automated extraction scripts, so having a view generated by the front-end would be a problem.

     Thanks!

    Brian Dudley

  • 09-16-2010 3:51 PM In reply to

    • James Delaney
    • Not Ranked
    • User Since: 2009
    • Posts 4
    • Organization: Holy Names University
    • Products:  Blackbaud NetCommunity, Blackbaud Student Information System, Online Campus Community, The Education Edge, The Financial Edge, The Information Edge

    Re: Queries and Temporary Views

    Brian, 

    I'd be interested in hearing any outcomes you have had from this question and/or developments. I'm in the same boat in terms of getting started with RODBA with intent to reproduce some of the queries into web-services. I've been unable to reproduce some of the queries that require the temporary view objects. If possible, contact me here on via e-mail and perhaps we can collaborate?

    Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
  • 09-27-2010 6:14 PM In reply to

    • James Delaney
    • Not Ranked
    • User Since: 2009
    • Posts 4
    • Organization: Holy Names University
    • Products:  Blackbaud NetCommunity, Blackbaud Student Information System, Online Campus Community, The Education Edge, The Financial Edge, The Information Edge

    Re: Queries and Temporary Views

    Brian,

    Hope you are doing well. Been fooling around with it for a week: In queries that have views, I am creating them myself in another database to be used in the main sql query. I do not know the rules behind why they are created other than to hide complexity in cross-key statements.

    My intent, load permitting, is to just alter the tables with a new temp view during each extraction. Or in the case of ASP work, perhaps schedule a view to be created at a set time.

     

    Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
  • 12-21-2010 11:20 AM In reply to

    Re: Queries and Temporary Views

    If you're looking to take an extract of the database, always best to use RAW SQL particularly if you're plannign to use for replication/reporting/ETL-ing. The SQL view from the RE query is sometimes over-complicated for something fairly simple. You can use SQL management tools to export data out using pre-set SQL. Happy to advise further...
Page 1 of 1 (4 items)