I canu00B4t use different Databases

Hi ,
i need help !
I´m using CR XI and MS SQL Server 2005.  I use  ODBC(RDO) to read data from the server.
when i define the SQL command myself with the database assistant / adding a command the command looks like this:
SELECT  field_list
FROM   Table1  T1
INNER JOIN Table2 T2 ON T1.ID = T2.ID
This command is useable for different databases.
When i select the needed tables with the database assistant,  the SQL command looks like this:
SELECT  field_list
FROM   "DatabasName"."dbo"."Table1" "Table1"
INNER JOIN "DatabasName"."dbo"."Table2" "Table2" ON "Table1"."ID"="Table2"."ID"
in this sample, the databasename is also a part of the SQL command therfore i can´t use the report with an other database.
What can i do to suppress the databasename in the command ?  I need the second way because i have to give some parameters and formulas with the calling program to select the data.
thanks forward

Klaus,
When CR writes the SQL for you it uses the 4 part, fully qualified table name. Can't turn that part off.
You can, however, add parameters to a SQL Command without any problems. Just add the parameter to the SQL and to the Parameter List pane of the Command window.
For Example...
SELECT field_list
FROM Table1 T1
INNER JOIN Table2 T2 ON T1.ID = T2.ID
WHERE T1.ID BETWEEN '{?FirstParameter}' AND '{?LastParameter}'
They work just like SQL Variables, except that you don't have to DECLARE them in the SQL itself... that and there is no @ symbol...
HTH,
Jason

Similar Messages

  • Can we use different Databases (Oracle & SQL Server) in one report?

    Post Author: venki5star
    CA Forum: .NET
    Hi there.
    Can we use different databases (Oracle & SQL Server) in a same report?
    If possible how?
    Another question,
    Can we change the Provider Name at runtime of the given report. If so the above question is useless...
    Thanks in Advance.

    I tried this using Oracle Provider for OLEDB (the one that supplied by Oracle Client) and Crystal Reports 9. you can drag the column into designer but the image does not appear in preview.
    I guess it's because CR does not recognized it as image, and there are no information that the blob data is an image at all.

  • How to host one application using different database connection on OAS?

    Hi,
    Jdeveloper - 10.1.3.4
    Application - ADF/BC
    Oracle Application Server - 10.1.3
    Above our the specifications for our application,
    We have two database schemas different for development and production therfore we have different databse connections for the two,
    we have one application which is in production and enhacements on the same application are done by the development team.
    Since we have two different schemas for developement and prduction we use different database connections for the application on development and production.
    The problem is our Model and View Controller project are same, only the database connection file changes that's why we are able to host only on application at a time on our OAS. This is probably because the URL generated by OAS for developemnt and prodyction application is same.
    Is there a way we can host two instances of the same application with two different database connections on the a single OAS.
    Thanks & Regards,
    Raksha

    Use different deployment profiles each with a different context root for your application?
    See: http://one-size-doesnt-fit-all.blogspot.com/2009/02/configuring-separate-dev-test-prod-urls.html

  • Using different databases for an ADF web fusion application

    Hello all
    Here is the thing. Following some steps in a book developing an application, and I gotta say looks really good, so I thought why not just change it a bit and use it for the company I work for. Main problem is, the book uses the HR schema, and I wanna use the company's database. So can this be done and what damage should I be looking at? What are the areas I will have to fix?
    Thanks in advance all

    dino2dy,
    What are the areas I will have to fix?Not much, just the database design, business components, screen layouts, security, task flows, and business logic (in other words, just about everything)
    The best thing to do would be to learn from the book how to develop such an application and then use what you learned to develop your app. There may be utility classes/techniques/layouts/etc that you could reuse from the book perhaps.
    John

  • How to use %Type declaration with table residing in a different database

    How can I use the %TYPE declaration if the table is from a different database.
    E.g
    v_business_unit ps_jrnl.header.business_unit%TYPE;
    In the above declaration statement,the table 'ps_jrnl_header' resides in a different database(Database A) from the one I am currently in( Database B).(This is because data needs to be extracted from Database A into Database B).

    1. Create a database link to the other database (this probably already exists since your proc is interacting with that database)
    2. Create a synonym for the table in the other database
    create synonym foo for ps_jrnl.header@database_a;3. Reference the synonym in your variable declaration:
    v_business_unit  foo.business_unit%TYPE;

  • How to use more than one connection pool to 2 different databases ??? (Weblogic 5.1)

    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try to use
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the more efficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

    Hi
    You need to configure TxDataSource with XA connection pool.
    More information can be found here:
    http://e-docs.bea.com/wls/docs61/jta/thirdpartytx.html
    Regards,
    Slava Imeshev
    [email protected]
    "Philippe Da Cunha" <pdacunha@@webraska.com> wrote in message
    news:3bfcd6ee$[email protected]..
    Hello,
    In my application, I must use two different databases to retrieve
    informations...
    My application use EJB so I created two pool of connection named pool1 and
    pool2...
    But when I yet used the pool1 to connect to first database and I try touse
    the pool2 (to connect to the second database), an SQLException occurs :
    "java.sql.SQLException: Connection has already been created in this tx
    context for pool named <first pool's name>. Illegal attempt to create
    connection from another pool: <second pool's name>"
    I have found the answer in www.bea.com
    http://e-docs.bea.com/wls/docs61/faq/JTA.html#738373
    Anybody can help me and give me the more easy,quickly and the moreefficient
    way to use two database with two different connection pool..
    Thanks..
    Dephi

  • Can I use two different database with DBSystemLoginModule?

    Finally I can login with Database user id by DBSystemLoginModule on Embedded oc4j server.
    But I confused between [b]jazn-data.xml and system-jazn-data.xml.
    Which xml do I have to edit for jdbcUrl and jdbcDriver?
    Now I would like to use two different database(such as only sid is different).
    In this case I want to show specific database name as realm name.
    What should I do?
    When I use DBSystemLoginModule, I edit JdbcUrl in system-jazn-data.xml.
    So can I pass the parameter for sid programmatically?
    And also I tried to run my application with other database with DBSystemLoginModule on Embedded oc4j server.
    I changed few things(jdbcUrl at system-jazn-data.xml,jazn-data.xml in embedded-oc4j-server/config and database connection for BusinessComponents at Project Properties of Model/ViewController.
    But I got some error.
    Did I miss something?
    ----< my error messgae >------
    500 Internal Server Error
    JBO-30003: The application pool (customer.model.datamodel.CMAppModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2002)     Message was edited by:
    Message was edited by:
    sdcsdc

    I think I understand now, you are modifing the custom login modules configuration within the system-jazn-data.xml file. This is a bit dangerous! Didn't you register the login module in your orion-application.xml? For example, this is the way I do it:
    <web-module id="customProv-web" path="customProv-web.war" />
    <persistence path="persistence" />
    <!--data-sources path="./data-sources.xml"/-->
    <security-role-mapping name="sr_developer">
    <group name="developers" />
    </security-role-mapping>
    <security-role-mapping name="sr_manager">
    <group name="managers" />
    </security-role-mapping>
    <jazn provider="XML">
    <property name="custom.loginmodule.provider" value="true"/>
    <property name="role.mapping.dynamic" value="true"/>
    <property name="role.compare.ignorecase" value="true"/>
    </jazn>
    <!-- Configuring a Login Module in an Application EAR file. -->
    <jazn-loginconfig>
    <application>
    <name>customProv</name>
    <login-modules>
    <login-module>
    <class>oracle.security.jazn.login.module.db.DBTableOraDataSourceLoginModule</class>
    <control-flag>required</control-flag>
    <options>
    <option>
    <name>data_source_name</name>
    <value>jdbc/OracleDS2</value>
    </option>
    <option>
    <name>roles_fk_column</name>
    <value>userName</value>
    </option>
    <option>
    <name>table</name>
    <value>userinfo</value>
    </option>
    <option>
    <name>groupMembershipTableName</name>
    <value>groupinfo</value>
    </option>
    <option>
    <name>groupMembershipGroupFieldName</name>
    <value>role</value>
    </option>
    <option>
    <name>usernameField</name>
    <value>userName</value>
    </option>
    <option>
    <name>user_pk_column</name>
    <value>username</value>
    </option>
    <option>
    <name>passwordField</name>
    <value>passWord</value>
    </option>
    </options>
    </login-module>
    </login-modules>
    </application>
    </jazn-loginconfig>
    <log>
    <file path="application.log" />
    </log>
    <namespace-access>
    <read-access>
    <namespace-resource root="">
    <security-role-mapping name="<jndi-user-role>">
    <group name="administrators" />
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    <write-access>
    <namespace-resource root="">
    <security-role-mapping name="<jndi-user-role>">
    <group name="administrators" />
    </security-role-mapping>
    </namespace-resource>
    </write-access>
    </namespace-access>
    </orion-application>

  • Accessing the same database file using different handles/cursors

    Will there be any problems accessing the same database file using different DB handles in a transactional environment? We have implemented a process which have multiple transient threads coming up and initiating DB opens and read/write operations to the same database file using different handles and cursors?
    Can this potentially create any problems/bottlenecks? Can someone suggest the best way to deal with this scenario?
    Thanks in advance.
    SB

    Hi,
    Berkeley DB is well suited to the scenario you describe. You need to ensure that Berkeley DB is configured correctly for transactional access, the best information describing the requirements is in the Reference guide here:
    http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/transapp.html
    If there will be multiple threads operating concurrently, then you will need to design your application to detect and deal with deadlock situations.
    Regards,
    Alex Gorrod
    Oracle Berkeley DB

  • When using Appleworks database for printing labels can I have columns of different widths?

    When using Appleworks database for printing labels can I have a column of different width?
    Case in point, the supplied avery labels in Appleworks does not have 8195. When I build one using custom design  I need a small column between column 2 and 3 to line up the info in columns 3 and 4. All the labels are 1.3/4 inch wide but I need to insert a column 1/4 wide to match up with the avery page....
    Any ideas???    
    Thanks......
    ---warren

    Well, the issue is that when you creat a custom width of 1.3/4 from the edge of the first label to the edge of label 2 all is good. The right and left margins were also set correct in AW. The Avery page, for some reason, has a small 1/4 inch column between the columns of label 2 and 3 therefore making the distance between the left edge of the label in column 2 and the right edge of the label in column 3 - a width of 2 inches and not 1.3/4.
    I guess Avery wanted the page to look even.
    I did this work around.....
    I created a custom lay out of 2 columns (not 4) with the correct width of 1.3/4 from label edge to label edge and the correct left side margin. After printing the first page I just turned the sheet 180 degress and printed the 2nd page to use all the labels on the Avery sheet. Since the upper and lower margin were the same it worked great....
    "Great minds think alike"...   thanks for your suggetion

  • Cookie being used in different applications which are on different database

    Hi,
    I have two htmldb applications. One app (App1) is on database DB1, and the second one (App2) is on database DB2. App1 will create a cookie, and App1 will use URL to redirect to App2. App2 will use the cookie which App1 created.
    The problem is in App2, I used owa_cookie to get the cookie but, it is not there.
    I know different htmldb applications in the same workspace (in the same database) can share the cookie. Can the htmldb applications in the different databases share the same cookie?
    Thanks.
    June

    Scott,
    Thank you for your reply.
    In App1, I have set a cookie as following:
    begin
    owa_util.mime_header('text/html', FALSE);
    owa_cookie.send(
    name=>'LOGIN_USERNAME_COOKIE',
    value=> 'abcd');
    owa_util.http_header_close;
    exception when others then null;
    end;
    App1 in DB1 accesses source(URL) App2 (eg: http://mymachin.domain.com:7778/dbname/f?p=100:101).
    App2 in DB2 has a process (On Load -Before Header) in login page to get the cookie:
    declare
    v varchar2(255) := null;
    c owa_cookie.cookie;
    begin
    c := owa_cookie.get('LOGIN_USERNAME_COOKIE');
    :P101_USERNAME := c.vals(1);
    exception when others then null;
    end;
    I just want to pass the username from App1 to App2.
    Is there any way the cookie can be shared in my case?
    Thanks.
    June

  • Database connection pooling in ADF causing db procedure calls to use different transaction or session

    We have developed an application using JDev Version 11.1.2.1.0 and the database is oracle 11g EE.
    We have many database procedures or function calls from the model (AMImpl.java, VORowImpl.java) and the commit does not happen in the database and it happens from ADF. The database procedures are called in some valueChangeListnener and these procedures use the same transaction or session database session when called and update some records in some tables that are displayed in pages.
    We started using connection pooling recently in our ADF application,  -Djbo.doconnectionpooling=true -Djbo.txn.disconnect_level=1. When using connection pooling, we noticed that the database procedure calls use a different trasanction or different database session and the data or records that these procedures update is lost.
    After removing the connection pooling, we noticed that the procedures again started using the same transaction or same database session and was working fine.
    I want to know why this connnection pooling caused this issue and is there any fix for this when using connection pooling?

    Take a look at
    http://docs.oracle.com/cd/E15523_01/web.1111/b31974/bcampool.htm#CIHCHHEA
    What You May Need to Know About Database User State and jbo.doconnectionpooling = true
    As you can see:
    "At the end of the request when the application module is released back to the application module pool, that application module pool releases the JDBC connection it was using back to the database connection pool. It follows that with jbo.doconnectionpooling set to true the application module instance in the pool may have a completely different JDBC connection each time you check it out of the pool"
    So, the best you can do, is to revert jbo.doconnectionpooling to false.

  • Using 2 different databases in Oracle 9i with HTML DB

    I'm new to appex and I am wondering if I can use it to use data from different databases within Oracle 9i, and if so, how/where can I find out to do it. Basically I have an already existing database in 9i, and I have to create another one that uses information from one table in that original database. I have to somehow link it to the new tables (to use the live data from the original db) to filter data. Then ultimately make use of the collaborated information with HTML DB. Any and all help/suggestions is more than greatly appreciated.
    Thanks!

    I'm new to appex and I am wondering if I can use it to use data from different databases within Oracle 9i, and if so, how/where can I find out to do it. Basically I have an already existing database in 9i, and I have to create another one that uses information from one table in that original database. I have to somehow link it to the new tables (to use the live data from the original db) to filter data. Then ultimately make use of the collaborated information with HTML DB. Any and all help/suggestions is more than greatly appreciated.
    Thanks!

  • Using XML to exchange data between different databases?

    Hi,
    Does anyone know of any case-studies or tutorial's where XML has been used to transfer data between different databases... i.e. oracle to sql server?
    I basically looking into the differences between two schema's and what sort of tranformations need to take place.
    Thanks in advance guys!

    Hi,
    Does anyone know of any case-studies or tutorial's where XML has been used to transfer data between different databases... i.e. oracle to sql server?
    I basically looking into the differences between two schema's and what sort of tranformations need to take place.
    Thanks in advance guys!

  • Updating different Databases Using XI

    Hello,
    I am having one requirement for updating different databases using XI.
    The scenario is that
    Data is coming from ERP to XI.
    This data should be inserted or updated in SQL server.
    Depending on certain conditions I need to update different SQL servers.
    Currently I am having one interface which updates one SQL server database.
    I want to change that interface for updating different SQL server databases depending on the data coming from ERP.
    Is it possible?
    How can I achieve this?
    Thanks in Advance
    Abhijit.

    Hi abi,
        For using more than one database server u can use the BPM.
        there in the design phase, while u making the layout of the picture type connection , there in the switch tool , u can put the condition and according to that
    it will connect to the database server.......
    if it is useful give the rewards
    Regards
    Sasi.........

  • How can I connect to a different database schema,other than adobe?

    I'm building an application where I want to use a different database for it,for storing additional data for the users(different from "edcprincipaluserentity" table in "adobe" database stores)..How I can connect to my database schema created in MySQL from Workbench,to assign tasks to my users,using the Process Management/Assign Task service?

    You can only assign task to user that are known by the LiveCycle User Manager.
    When you configure LiveCycle, you can tell it where you want to get the users from. They can be created them locally in the local database, or synchronized from an LDAP directory in which case it'll read the users from LDAP and make a copy of some of the properties to the internal LiveCycle database.
    Bottom line, all users have an id (in the edcprincipalentity table) in the adobe database.
    If you need your users to come from a different database, then you need to customize the SPI (security provider interface) so that you can synchronize the users coming from your external database. Again, this is a customization since out of the box, we don't synchronize against external database. But it is possible, the API is there and other customers have done it.
    I hope this clarifies things a bit.
    Jasmin

Maybe you are looking for

  • JMS Adapter...

    Hi Frnds, I am working on one scenario using JMS Adapter, my requirement is i have to read messages from JMS Queue,suppose in Queue there is 20 messagesa have to read at a time 20 messages using JMS Adapter and merge into one message. JMS Adapter wl

  • How to run the variable exit without calling the variable selection screen?

    Hi all I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02. ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when

  • Cannot make a textfield to bold in CS5

    Hello All I've a weird problem, i'm not sure whether this is already raised or addressed elsewhere. I've got an FLA which was originally created using CS3, and i've got a dynamic textfield in it that uses font "Gadget". If i open the FLA in CS3, it g

  • Can't download Firefox onto M15x Alienware laptop

    I have Iexplore 9 on my laptop currently. Everytime I try to download firefox I get an error message and the window closes. This is the only system it does this on. I have added firefox to 2 desktops and my other laptop. I have updated my main browse

  • Idvd keeps freezing during burn of slideshow

    Any suggestions?