Getting the name of the table of a column in a result

I am connected via ODBC (3.52) to an Oracle 8i Db in a Windows 2000 application and want to get the name of the table a column of the result belongs to. I tried SQLColAttribute and SQLGetDescField with SQL_DESC_TABLE_NAME (that works fine with MsAccess), but always get an empty string. Is there another way of getting such information, or do I need another driver, or am I lost in space and time now?

You can query ALL_TAB_COLS directly if you want.

Similar Messages

  • Query to get the name of the tables used in a View?

    Hi,
    Could you please help me in getting the name of the tables used in a perticular view?
    Please help me out...
    thnx in advance.
    Thnx,
    Bits
    Edited by: Bits on Sep 14, 2009 2:15 PM

    There is no data dictionary table that stores this directly.
    - You could get the DDL used to create the view and parse that SQL. Depending on how complex the view might be, this could be relatively easy or highly complex.
    - You could get a recursive list of the objects that the view depends on (from ALL_/USER_/DBA_DEPENDENCIES) and trace those dependencies back to all the tables that the view depends on. If your view calls functions, however, this may or may not be what you're looking for. If you are selecting from just one table in the FROM clause but you are calling a function that references a dozen tables, do you want one row? Or thirteen? What about tables referenced in a correlated subquery in the WHERE clause?
    Justin

  • Get the names of all tables

    First I want to tell you: I'm a amateur concerning Java Programming.
    My task is to write a java program - using JCO -, which retrieves the names of all tables (a user can access).
    Can anybody help me, please?

    Hi Michael,
    i can't help you because i don't know anything about JCO!
    It's simply funny and i'm happy to see a "known face" here!
    Perhaps this will help you:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/tips and tricks for sap java connector client programming.pdf
    And don't be so decent...you're not so bad in Java at all
    Greetings
    Florian

  • Any Function module or BAPIs are available to get scheme name for the inter

    I have internal order no value in table  AUFK-AUFNR ,  and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?

    look at DB-VIEW  "V_IVP_OR".
    Regards,
    Laurent

  • What is the name of the table for finding user exit !

    What is the table name to find the user exit !

    Hi,
    Goto to the table tstc and enter the transaction code for
    which u want to find out the User-Exits. Check out the
    program name from the result. Goto SE38 and dee that
    program in display mode. Then search for the string Call
    Cutomer-Funtion. All the result of search are the user
    exits defined there for that transaction.
    SAP user exits (enhancement names that we see in SMOD transaction) are all stored in the table MODSAP. The field NAME contains the enhancement name and the field MEMBER contains the name of the function module that will be called if the customer enhancement exists and is active. The customer enhancement projects are stored in the table MODACT. There, the NAME field is the name of the project and MEMBER is the name of SAP enhancement (that from the MODSAP).
    So, if you are in some include, you can use where-used-list to get to the function module name. Then you find the SAP enhancement name from the MODSAP by supplying the function module. And finally, you find the customer enhancement projects by querying the MODACT with the SAP enhancement in the field MEMBER.
    cheers,
    vasavi.
    kindly reward if helpful.

  • Not able to change the name of the attribute of the Table operator.

    We are trying to create OMB scripts to automate certain tasks. As a part of this, there is a requirement to change the attribute name of table operators (which by default gets the name of the column). It is possible to change the attribute name from the GUI. But I was not able to do the same using OMB Scripting. Here is the script I used.
    OMBALTER MAPPING 'TEST' \
    MODIFY ATTRIBUTE 'GEOGRAPHY_ID' OF GROUP 'INOUTGRP1' OF OPERATOR 'TEST' \
    SET PROPERTIES(BUSINESS_NAME,PRECISION,DESCRIPTION) \
    VALUES('MEMBER_ID',2,'MEMBER')
    This script was to change the name of the attribute - GEOGRAPHY_ID of the table operator TEST.
    From what I can make out from the Scripting reference, changing BUSINESS_NAME of the attribute should do the trick but it is not happening. The syntax looks correct as the precision of the column changes.
    Am I missing something? Or is it a limitation or a bug?
    I use OWB client 10.2.0.1.25 and OWB repository 10.2.0.1.0.

    Hi!
    I'm using successfully
    OMBALTER MAPPING '$mapName' MODIFY ATTRIBUTE '$attrName' OF GROUP '$groupName' OF OPERATOR '$joinName' RENAME TO '$newName'
    Regards,
    Carsten.

  • How to get the name of the subform

    Hi All,
    My form is designed in the below structure.
    masgterpage-->form1-->table
                                  -->subform
    How can i get the name of the subform dynamically(as it varies from page to page, but the rest of the structure is same).
    Please help me.
    Thank you,
    Saravanakumar.

    Hi there,
    the name property would be the correct attribute to get the subform name, just by looking at the code it doesn't seem like it's doing the right thing
    I am assuming that you send Main in the function countChk() which would look something like this
    countChk(Main);
    And you probably want to make sure you are entering the right subform so you need to keep that loop at the end of the function
    but if you want to get through all the checkboxes inside that subform you must do a loop through that node to find each checkbox
    I am assuming that the function would probably look something like this
    function countChk(vNode) {//Starts vNode with Main
         for (var i = 0; i < vNode.nodes.length; i++) {
              if (vNode.nodes.item(i).className === "field") {
                   if (vNode.ui.oneOfChild.className === "checkButton") {
                        if (vNode.items.nodes.length > 1) {
                             if (vNode.value.oneOfChild.value == 1) {
                                  nChk++ ;
              }else if (vNode.nodes.item(i).className === "subform"){
                   if (vNode.nodes.item(i).name === "Door_Subform"){
                        countChk(vNode.nodes.item(i));
         }//endloop
    Hope this help!

  • Getting the name of the generic class?

    I have a generic class declared as such:
    public class MyClass<T>
    and I want to access the name of the <T> class a member function in that class? I just can't figure out which syntax to use.
    Thank you!
    Joshua

    Sorry, I'm a little bit confused at your answer.
    I cannot seem to instantiate an object of class T, like: T item = new T();does not work. If I can't create an object of type T, then I can't get it's type. I need to get the class even if I don't have any instantiated objects (or if I can create a blank one), so that I can use the name to fetch the objects from the persistence engine. Here is the class, so you can see what I'm talking about. I have in there now what seems like it should be right, but doesn't compile.
    A small example of solution please?
    public class PersistentSelectorCellEditor<T> extends AbstractCellEditor
              implements TableCellEditor {
         JComboBox control;
         List<T> choices;
         Session session;
         public PersistentSelectorCellEditor() {
              initializeComponents();
         public PersistentSelectorCellEditor(Object value) {
              initializeComponents();
              this.control.setSelectedItem(value);
         private void initializePersistence() {
              session = LabApp.getSession();
              session.beginTransaction();
         private void initializeComponents() {
              initializePersistence();
              populateList();     //query for selections to fill combo box
              control = new JComboBox((ComboBoxModel)choices);
         private void populateList() {
              //query to populate drop down lists
              Query query = session.createQuery("from " + T.class.getName());
              choices = query.list();
         public void setValue(T value) {
              control.setSelectedItem(value);
         public T getValue() {
              return (T)control.getSelectedItem();
         //interface members
         public Object getCellEditorValue() {
              return control.getSelectedItem();
         public Component getTableCellEditorComponent(JTable table, Object value,
                   boolean isSelected, int row, int column) {
              return control;
    }Thank you!
    Joshua

  • Obtaining the name of a table from it's data

    Hello,
    i have a strange need ... i would like to obtain the name of a table from it 's data !!!!
    Thank's in advance.

    ALTER TABLE t
    ADD (table_name VARCHAR2(30));
    then
    SELECT table_name FROM T;Though, as Martin said, I don't know how you get the data if you don't know the name of the table.

  • Who can give me all the name of system table or organization table in sap?

    Who can give me all the name of system table or organization table in sap? such as the table stores the client,company code ,plant,transaction code ,sap menu,purchase organization along with the relation between organizations such as
    the relation between company code and plant, the relation between company and purchase organization and so on.Pls supply the list of table name or the url where I can see these information.
    Thank you in advance.

    Hi YuLin
    refer this link you will get all tables in SAP with description and relation.
    http://www.erpgenie.com/abap/tables.htm
    regards
    Yogesh

  • Find out the name of a table

    Hi Gurus,
    I would like to know the name of the table which is filled with the WPUBON Idoc types.
    The only sales data available to extract to BW is the data generated by the transaction WPUK, but the extractor MC43RK0CAS doesn't get any sales data to 2LIS_43_POSCAS.
    Best Regards,
    Patrício Silva

    Hi Cereal Cerial
    How are you. Hope everything is fine.
    I am also working on 2lis_43_poscas, 2lis_44_posrec data sources.
    I transfer these two datasources and activate thru LBWE still no success.
    I didnt find where we should generate setup tables for these data sources.
    Always 0 data records showing in RSA3.
    If u get any solutions for this, plz let me know.
    Kindly advise me on the procedure. And if you have a document about it it will be greatly appreciated.
    Advanced Thanks
    Chandra

  • FI-SL: create an user exit to get the "name of the group account"

    Hi,
    I'm creating a special ledger and have to add 2 informations:
    - name of the general account
    - name of the group account
    The table I se is ACCIT_GLX. In this table, I can't get the name of the general and group accounts directly.
    I guess I have to use user exits.
    I can find the name of the general account in the table SKA1. But do you know where I can find the name of the group account?
    I'm not a developer at all. But I just need the name of the field and table to indicate them to the IT team.

    Dear Expert,
    In Tcode Fs00 when you create GL account Master there is Group Account number when you maintain group chart of accounts this field automatically becomes mandatory entry , here Press F1 and Select the Technical Details button there you can find the Technical name and the table and other details of it.
    Regards,
    Shankar K B

  • What is the name of the table where Release Strategy changes are maintained

    Dear Friends,
                       Every time I make the changes in the Release Strategy Codes the Signature of the Approver changes in the Output. The problem is that it even changes for the Older PO's which are already approved by some other approver. Is there any way this problem can be sorted out? or can any one give the name of the table which records the changes made in the Release Strategy along with time and date? I will be really thankful if you guys can help me out!

    Hi Chintan,
    I hope you are talking about the release codes, which we attach later on to user Ids and signature means its description. I hope followed correctly.
    In standard system, as and when you change the description of release code at back end, it gets reflected on front end. No matter whether its old or new PO. There is no way out to stop this. Every time you display the purchase order, the release codes checks for description at back end and displayes the same. Still, it should not bother you, as the already released PO dosent get affected for any changes you do at back end in the entire release strategy.
    Beside the tables mentioned by other friends AUSP is the table where all release related entries gets stored.
    I hope it clarifies.
    Regards
    sachin

  • ANY IDEA TO GET THE NAME OF THE FILE

    Hi guys , i´m using method cl guifrontend_services=>file_open_dialog  to search any file in my hard disc, with that ,I get the whole path,  however I only want the name of the file , eg.
    G:MusicGuns N' RosesG N' R Liespatience.mp3  i only want "patience "  any ideas. thank you .

    Try
    DATA: BEGIN OF itab1 OCCURS 0,
                 word(40),
               END   OF itab1,
               l_lines TYPE i.
    SPLIT file_name AT '\' INTO TABLE itab1.
    DESCRIBE itab1 LINES l_lines.
    READ TABLE itab1 INDEX l_lines.
    This will put each bit of text between the '/' into a separate line in table itab1.  If you read the last line, you'll get the last bit of the text which is your file name.

  • Mail running under LIon no longer grays out the name of the sender of an email that has been read.  How can I get that to happen?

    Under the old version of Mail, when an e-mail was read, the name of the sender was greted out so that I knew I had read that email.  This does not seem to happen under the new Mail thaqt came with Lion.  Help!?
    Chuck Humphrey
    [email protected]
    303-997-2755

    Kirk,
    Thanks again for your suggestions. No, I don't get an
    error message. In fact nothing happens. My name and
    key are typed in and from what I understand, once you
    do that with a real key it directs you to the
    registration page. When I get done entering the
    information the window just sits there without any
    button or option to continue.
    QT Pro is already in the QT (non-pro) you installed and the key (which is a hash of your name in part) allows the Pro features to work.
    No redirect, internet, nothing like that. As such many people have activated and think they haven't. Just look at the menu items and see if the "Pro" logo is shown next to a few (which are greyed out and not available without Pro). If not you are done.

Maybe you are looking for

  • Yoga 2 Pro audio jack problem

    Greetings, Please know that I am not tech-savvy....at all!  I have been researching this prpblem for about a week, and did find some posts here that are similar to my problem but the 'fix' didn't work  I have owned my new Yoga 2 Pro 64 bit with Windo

  • Technical Content

    we have just finish the BI7 ugprade. When I run RSA1 (for the first time), it says the job BI_TCO_ACTIVATION is schedule and run in the background. I check on the website site and it says this Job will activate the Technical Content. 1) Question is w

  • Display Message from automatically FOX-Formula

    Hello, we are using a FOX-Formula as automatically Function "After data change" within the planning-layout (WebInterface). Does anybody know, how we can tune the function / layout, that we will see this message if the conditions agree? For example: I

  • Nikon D700 RAW import shows only dotted boxes, not thumbnails

    I am unable to see thumbnails of the RAW images on the memory card of my Nikon D700 when I import images into Aperture. What I see during an import is a series of frames with a dashed or dotted border that represent the correct number of images on th

  • Aperture stopped showing pictures in viewer and split view

    Suddenly Aperture 3 has stopped showing any pictures in viewer and split view (except for the bottom fim strip) but I can see them all in browser view. I have tried using Aperture Repair and have reset Aperture (using Clean My Mac to delete the user