Rename Table Name with proper naming convention

Hi,
I have many tables in DB & want to create a copy of those in another DB, but with proper name
Means If My table is fgh_sub_record_file then It should rename like Fgh_Sub_Record_File in dynamic way.
Pls Help.

I am not sure of the reason for your intention. 
But, An easy method would be the below:
1. Get all the tables from DB1 to DB2(I assume you do this by backup/restore or export wizard)
2. Create the below function in DB2.
--Create the below function
Create Function dbo.CapitalizeEachword ( @MyString varchar(max))
Returns nvarchar(Max)
As
Begin
Declare @XML xml
Set @MyString = Replace(@MyString,'_',' ')
Set @XML =CAST( '<root><rows><row>' + REPLACE(@MyString,' ','</row></rows><rows><row>')
+ '</row></rows></root>' As XML)
Return
REPLACE((
Stuff (
(Select ' ' + Col
From
Select Stuff(COL, 1,1, UPPER(Left(col,1))) As Col
From
Select X.p.value('row[1]','nvarchar(200)') As col
From @XML.nodes('/root/rows') As X(p)
) X
) Y
For XML Path('')), 1, 1, '')
End
3. Execute the below and verify the generated script and execute the script once concluded.
--Test script to see your execution script(You may need to get the script and execute once verified)
select 'exec sp_rename @objname=' + name + ', @newname=' + dbo.CapitalizeEachword(name)
from sysObjects
where type = 'U'

Similar Messages

  • Transport with CTS+ : Naming convention

    Hi SDNers,
    I need your suggestion.
    This is wrt CTS+.
    My doubt is:
    I need to transport changes between the Dev, QA & Production system.
    I have a repository in Development system: Repo_Dev
    Now I want to create a repository in Quality / Production system, similar to Repo_Dev , but with different Repository names as Repo_QS /  Repo_Prod respectively.  My doubt is, will I be able to create the repositories in the Quality or Production systems with the name I want.... or is it because I am using CTS.. it will create a repository with the same name i.e Repo_Dev.
    With reference to the SAP document "Setup und Use the MDM Change Transport with CTS+ Transport Management Environment", my understading is to
    1. Create a repository in QS / Production side.
    2. Using the option "Create Transport Reference" , I will get a reference file of Repo_Dev.
    3. Then Import the reference file in the Repo_QS / Repo_Prod will result in synchronisation between all 3 (Repo_Dev, Repo_QS, Repo_Prod ) repositories.
    This way I can have the same Data modelling etc in all the 3 repositories, with the naming convention as required.
    If anyone has worked on it... please confirm it.
    Thanks & Regards,
    Priti Rani Patnaik

    Hi Priti,
    For transport with CTS+ you need to follow the steps which you have mentioned. You need to create a repository and then import the ref. in this repository. By doing so you are only importing the tables and fields present in your Dev repository. The sync between all three is only related to data modelling and it will not effect the name of reposiotry as you have already created a repository and I guess renaming of repository is not possible.
    I hope I am able to help you.
    Thanks & Regards
    Dilmit Chadha

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • Proper naming conventions for events?

    I am finally starting to understand custom events, but I
    admit that despite what I have read I am confused at the proper way
    to name events and their parts, or when multiple events can be part
    of the same class.
    For example, attached is an even I created for a quiz that is
    dispatched when the user makes a choice in my choice mxml
    component.
    The dispatch is like this:
    this.dispatchEvent(new ChoiceMade(ChoiceMade.CHOICE_MADE));
    It seems a bit dumb to have ChoiceMade.CHOICE_MADE. Is there
    a better naming convention?
    Also, many of the built-in events have "sub-events" such as
    MouseEvent having MOUSE_CLICK, MOUSE_OVER, etc. How do I set it up
    if I want to have this class able to dispatch more than 1 event,
    such as CHOICE_MADE, WRONG_ANSWER, etc?

    Yes... but. ( There's always a but! )
    You certainly can, and often times should, have Event
    constants for specific 'events'.
    But other times you should have a more generic 'transport'
    event. i.e. ChoiceEvent.MADE which as a custom event also accepts a
    parameter and passes it along. This way the event 'transports' some
    vital piece of info.
    See example code below.
    This custom event allows you to (optionally) pass the
    answer/choice made along with the event. You can then put your
    logic on either side of the event... either deciding the choice was
    right/wrong/other and dispatching a right/wrong/other event... or
    dispatching a MADE event, and including the answer in that event so
    that whomever is listening can do whatever they need to/with the
    answer.
    ~ Bart

  • AppleScript To Save Messages As PDFs With Specific Naming Convention

    I am looking for an Applescript that:
    1: Prompts and allows the user to select one or more Apple Mail email messages from within Mail (10.4, 10.5, 10.6).
    2: Prompts and allows the user to select a save-to folder.
    3: For each message, saves it as a PDF file in the save-to folder, using the following naming convention for the PDF file:
    "YYYY-MM-DD HH.MM.SS Email From FIRSTNAME LASTNAME - SUBJECT",
    "YYYY-MM-DD HH.MM.SS Email To FIRSTNAME LASTNAME - SUBJECT",
    where in the email date-sent stamp (if I am the sender) or date-received stamp (if I am the recipient):
    YYYY = the year
    MM = the two-digit month
    DD = the two-digit day
    HH = the two-digit hour (in 24-hour time)
    MM = the two-digit minute
    SS = the two-digit second
    FIRSTNAME is the email sender's first name for email that I receive (or is the email recipient's first name for email that I send)
    LASTNAME is the email sender's last name for email that I receive (or is the email recipient's first name for email that I send)
    SUBJECT = the email's subject line
    For example: 2010-04-10 16.32.48 Email From Kris Ryan - Status Of Payroll Updates.pdf
    For example: 2010-04-10 16.33.55 Email To Sue Anderson - RE Status Of Payroll Updates.pdf (Colon omitted after "RE".)
    4: For each attachment to the message, saves it as a PDF file in the same directory using the naming convention:
    "YYYY-MM-DD HH.MM.SS Email From FIRSTNAME LASTNAME Z Attachment - NUMBER - FILENAME",
    where:
    YYYY-MM-DD HH.MM.SS Email From FIRSTNAME LASTNAME = as above
    NUMBER = an integer representing the attachment number (1, 2, ...) sorted according to filename alphabetical order
    FILENAME = the name of the file attached to the email, including its extension (.docx, .xlsx, etc.)
    The letter "Z" sorts the attachment PDFs after its respective parent email in the directory.
    For example: 2010-04-10 16.32.48 Email From Kris Ryan Z Attachment - 1 - List Of Suggestions To Moore.doc.pdf
    For example: 2010-04-10 16.32.48 Email From Kris Ryan Z Attachment - 2 - Proposed Salary Adjustments.xls.pdf
    For example: 2010-04-10 16.32.48 Email From Kris Ryan Z Attachment - 3 - Salary History.pps.pdf
    Note: The email attachment may consist of a PDF or MS Office file (Word, Excel, Power Point); however, a smart implementation will be able to handle any attachment kind. If the attachment is a PDF file, then save it "as is" using the stipulated naming convention, without passing it through Distiller.
    Thank you.
    Kurt Todoroff

    Well, that's quite a spec sheet.
    Here's a start, you can easily edit the script to get what you need:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    Set a Mail Rule to Save Message and Attachment to Desktop.
    To save attachments to another another folder on the desktop (i.e. Attachments) create the folder and then
    change tell application "Finder" to set pathToAttachments to (path to desktop folder as string) & "Attachments:"
    using terms from application "Mail"
    on perform mail action with messages theMessages
    tell application "Finder" to set ptd to (path to desktop folder) as string
    tell application "Finder" to set pathToAttachments to (path to desktop folder) as string
    tell application "Mail"
    repeat with theMessage in theMessages
    set d_recd to date received of theMessage as string
    set d_recd to ReplaceText(d_recd, ":", " ") of me
    set d_recd to ReplaceText(d_recd, ",", " ") of me
    set theText to content of theMessage
    if theMessage's mail attachments is not {} then
    repeat with theAttachment in theMessage's mail attachments
    set theFileName to pathToAttachments & (theMessage's subject) & " (Attachment From " & (theMessage's sender) & " Sent " & d_recd & ")" & space & theAttachment's name
    try
    save theAttachment in theFileName
    on error errnum
    end try
    end repeat
    end if
    set theFile to ptd & (theMessage's subject) & " (From " & (theMessage's sender) & " Sent " & d_recd & ")" & ".txt"
    set theFileID to open for access file theFile with write permission
    write theText to theFileID
    close access theFileID
    end repeat
    end tell
    end perform mail action with messages
    end using terms from
    on ReplaceText(theString, fString, rString)
    set current_Delimiters to text item delimiters of AppleScript
    set AppleScript's text item delimiters to fString
    set sList to every text item of theString
    set AppleScript's text item delimiters to rString
    set newString to sList as string
    set AppleScript's text item delimiters to current_Delimiters
    return newString
    end ReplaceText</pre>

  • Using a Variable for Table Name  with a cursor

    Hello All
    Is it possible to use a Parameter passed to a procedure as the table name
    in a cursor selection statment. I thought the below would work but I get
    a error. Does anyone have any ideas?? The Error is listed below to.
    Here's the code I just complied
    CREATE OR REPLACE PROCEDURE Dup_Add(NEWQATABLE IN VARCHAR2) IS
    CURSOR c1 IS SELECT MUNI,PROV FROM NEWQATABLE GROUP BY MUNI, PROV;
    c1rec c1%ROWTYPE;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO c1rec;
    EXIT WHEN c1%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(c1rec.MUNI);
    END LOOP;
    CLOSE c1;
    END;
    Here is the errors
    LINE/COL ERROR
    3/8 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
    3/15 PL/SQL: SQL Statement ignored
    3/38 PLS-00201: identifier 'NEWQATABLE' must be declared
    5/7 PL/SQL: Item ignored
    10/3 PL/SQL: SQL Statement ignored
    10/17 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    12/3 PL/SQL: Statement ignored
    12/24 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    Thanks
    Peter

    If you are going to have a table name or a column name as a parameter, then you have to open the cursor dynamically. The following example uses Native Dynamic SQL (NDS) to open a ref cursor dynamically. I also eliminated the group by clause, since it is intended for use with aggregate functions and you weren't using an aggregate function. Also notice that there are some other differences in terms of defining variables and fetching and so forth.
    SQL> CREATE TABLE test_table
      2  AS
      3  SELECT deptno AS muni,
      4         dname  AS prov
      5  FROM   dept
      6  /
    Table created.
    SQL> CREATE OR REPLACE PROCEDURE Dup_Add
      2    (newqatable IN VARCHAR2)
      3  IS
      4    TYPE cursor_type IS REF CURSOR;
      5    c1 cursor_type;
      6    c1muni NUMBER;
      7    c1prov VARCHAR2 (20);
      8  BEGIN
      9    OPEN c1 FOR 'SELECT muni, prov FROM ' || newqatable;
    10    LOOP
    11      FETCH c1 INTO c1muni, c1prov;
    12      EXIT WHEN c1%NOTFOUND;
    13      DBMS_OUTPUT.PUT_LINE (c1muni || ' ' || c1prov);
    14    END LOOP;
    15    CLOSE c1;
    16  END;
    17  /
    Procedure created.
    SQL> SHOW ERRORS
    No errors.
    SQL> SET SERVEROUTPUT ON
    SQL> EXECUTE dup_add ('test_table')
    10 ACCOUNTING
    20 RESEARCH
    30 SALES
    40 OPERATIONS
    PL/SQL procedure successfully completed.

  • Querying the schema for table name with column value!

    In my schema i have 500+ tables and other objects.
    i have a column with the name BO_PRODUCT_CODE.
    I wants to know in what tables the value of BO_PRODUCT_CODE='FX03'.
    i have query the user_tab_columns which gives me the result with 90 tables having the column BO_PRODUCT_CODE.
    What is query which will give me the exact number/name of the table whose column value is FX03. ie, BO_PRODUCT_CODE='FX03'.

    Hi you can use this approach:
    BEGIN
    v_str VARCHAR2(250);
    v_count NUMBER :=0;
    DECLARE
    FOR loop_tbl IN ( SELECT DISTINCT table_name FROM USER_TAB_COLUMNS
    WHERE column_name ='BO_PRODUCT_CODE' )
    LOOP
    v_str := 'SELECT COUNT(*) FROM ' || loop_tbl.table_name || ' WHERE BO_PRODUCT_CODE=||'''' ||'FX03' || '''' '
    EXECUTE IMMEDIATE v_str INTO v_count ;
    IF v_count > 0 THEN
    DBMS_OUTPUT.PUT_LINE ('Table Name :'|| loop_tbl.table_name || ' Count :'||v_count);
    END IF;
    v_count :=0;
    END LOOP;
    EXCEPTION
    WHEN others THEN
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
    END;
    Please remove if any syntax error.
    Regards

  • Use a variable as a table name with NATIVE SQL

    Hi all,
    I am trying to execute a SELECT statement in order to fetch data from an external Oracle DB table to SAP with the following instructions:
    EXEC SQL.
      SELECT cityfrom, cityto
             INTO STRUCTURE :wa
             FROM spfli
             WHERE mandt  = :sy-mandt AND
                   carrid = :p_carrid AND connid = :p_connid
    ENDEXEC.
    However, I need to indicate the external table name from a variable instead of the solution above. That is, declaring a variable and store the name of the table (e.q. spfli) in it. The resulting ABAP code would be something like:
    EXEC SQL.
      SELECT cityfrom, cityto
             INTO STRUCTURE :wa
             FROM <VARIABLE>
             WHERE mandt  = :sy-mandt AND
                   carrid = :p_carrid AND connid = :p_connid
    ENDEXEC.
    Does anybody know if is possible to do that?
    If not, is there any other solution?
    Thank you in advance

    Yes, as Suhas said, you could use the ADBC API and his class CL_SQL_CONNECTION to achieve this...
    Here is a small example:
    PARAMETERS: p_carrid TYPE spfli-carrid,
                               p_connid TYPE spfli-connid.
    DATA:
      l_con_ref      TYPE REF TO cl_sql_connection,
      l_stmt         TYPE string,
      l_stmt_ref     TYPE REF TO cl_sql_statement,
      l_dref         TYPE REF TO data,
      l_res_ref      TYPE REF TO cl_sql_result_set,
      l_col1         TYPE spfli-carrid,
      l_col2         TYPE spfli-connid,
      l_wa           TYPE spfli.
    CONSTANTS:
      c_tabname  TYPE string VALUE 'SPFLI'.
    * Create the connecction object
    CREATE OBJECT l_con_ref.
    * Create the SQL statement object
    CONCATENATE 'select * from' c_tabname 'where carrid = ? and connid = ?'
           INTO l_stmt SEPARATED BY space.                           "#EC NOTEXT
    l_stmt_ref = l_con_ref->create_statement( ).
    * Bind input variables
    GET REFERENCE OF l_col1 INTO l_dref.
    l_stmt_ref->set_param( l_dref ).
    GET REFERENCE OF l_col2 INTO l_dref.
    l_stmt_ref->set_param( l_dref ).
    * Set the input value and execute the query
    l_col1 = p_carrid.
    l_col2 = p_connid.
    l_res_ref = l_stmt_ref->execute_query( l_stmt ).
    * Set output structure
    GET REFERENCE OF l_wa INTO l_dref.
    l_res_ref->set_param_struct( l_dref ).
    * Show result
    WHILE l_res_ref->next( ) > 0.
      WRITE: / 'Result:', l_wa-carrid, l_wa-connid.
    ENDWHILE.
    * Close the result set object
    l_res_ref->close( ).
    Otherwise you can also use the FM DB_EXECUTE_SQL...
    Kr,
    m.

  • Table Names with Spaces

    I am connecting to a DB with tables that have spaces in their names. When I browse the DB structure I see all the tables, but when I click on the table name I get an error. E.g. for the table with the unfortunate name "Clients tbl" I get an error that the "Clients" table does not exist.
    I don't see any option to make SQLDeveloper quote table names. Is there any way to get it to cope with these tables?

    I have just created a table "my Table", reflecting upper case, lower case and spaces. To do this I need to enclose the table in quotes.
    Queries might look like this:
    select * from "My Table";
    In the Navigator I see my Table (with no quotes), and can query it and the data.
    At no point am I picking up errors. Objects are stored in the DB in upper case by default, with no spaces, anything other than that needs to have double quotes to access the object.
    Please try a test case, using SQL Developer, so that we can iron out the issue.
    Sue

  • How to retrive table names with Java?

    Hello!
    If I connect to my Oracle Database 10g Express Edition Instance with some Java code and I run the following code:
                   ResultSet resultSet = databaseMetaData.getTables(null, null, "%", types);
                   while( resultSet.next() )
                        String tableName = resultSet.getString(3);
                        System.out.println(tableName);
    I get loads of different names of tables beside those that belongs to my user like:
    DR$NUMBER_SEQUENCE
    DR$OBJECT_ATTRIBUTE
    DR$POLICY_TAB
    ARTICLES
    BIN$tQZXQ0iGufbgQAB/AQELFg==$0
    BIN$tQZXQ0iLufbgQAB/AQELFg==$0
    But when I log in to http://127.0.0.1:9090/apex I get a perfect list of the tables belonging to the user:
    ARTICLES
    CUSTOMERS
    DATATYPES
    ORDERROWS
    ORDERS
    REQUESTROWS
    REQUESTS
    SUPPLIERROWS
    SUPPLIERS
    Does any one understand how to access just these table names that is created with my user?
    Best regards
    Fredrik

    Hello Adrian!
    Yes you are right I now understand that this is the wrong forum.
    So I posted the "same question" at:
    How to retrive table names belonging only to a user?
    How ever I seems to have problem with the schema name parameter any way.
    Best regards
    Fredrik

  • Table name with feild Duration of Task/Frequency , Change in Duration/Frequency for maintenance plan

    hi experts,
    i need a table for maintenance plan which has field
    1) Duration of Task/Frequency
    2) Change in Duration/Frequency
    below i have elaborated my requirements.
    among those fields i have got the table name mpos,mpla,plpo except the above listed two feilds.
    i have to create a report with these requirements.
    anyone tell me in which table can i get that 6 and 7th fields.
    Requirement1:
    Maintenance Plan Number 
    Operation Code 
    Standard Teode(assigned to Plan)
    Standard Text Key description
    Cost Center
    Duration of Task/Frequency
    Change in Duration/Frequency
    Created Date
    Created By 
    Changed On 
    Changed By
    Requirement 2: layout of the report should be modifiable with the existing fields.
    Requirement 3: A transaction will be created to access the report.
    Requirement 4: In the report, Maintenance Plan number will be hyperlinked which will divert to AMP screen (display view of maintenance Plan) once clicked on it.
    Requirement 4: Report should contain all created and changed Maintenance Plan details.
    Requirement 5: Initial selection parameter for the report will be only Date. Based on the entered date, records created or changed during the duration should be picked up in the report.
    Requirement 6: Change in frequency will only be picked for single cycle plan. Strategic Plan will not be considered in case frequency change made in it.
    Requirement 7: Change By and Created By should be the complete name instead of User ID.
    regards,
    priya

    can anyone answer for my above question?
    regards,
    priya

  • OSX renaming files names with number/letter suffixes

    I have some Quark files that are constantly being updated. Sometimes when I close and save the file, it renames it something like filename_f#CB70C.qxd (original name: filenameversionmonth, etc.), replacing my name with this gibberish! I have tried shortening the filenames and it still does this, but it's intermittent. I am working off of a server in an office, where a few people share the same files. I will rename it again and when I look in the window, it has snapped back to the gibberish name.
    Any ideas?
    Dual 1.8 GHz PowerPC G5   Mac OS X (10.3.9)   2 GB RAM

    jewelee:
    Welcome to Apple Discussions.
    I doubt whether OS X is doing this. Since it apparently happens with only one applicatication it may be a requirement of the application. (I don't know that; just a guess). I suggest that you try Repairing Disk Permissions, and see if it is a permissions issue.
    Good luck.
    cornelius
    PismoG4 550, 100GB 5400 Toshiba internal, 1 GB RAM; Pismo 500 OS (10.4.4) Mac OS X (10.3.9) Beige G3 OS 8.6

  • Difference between with table name with * and without *

    Hi..
    I had seen some of the standard abap that the table name had *, like *ekpo. What is the meaning? What is the difference between with * and without * ? 
    Thanks and Regards,
    Rishika

    Hi rishika,
    1. This is actually a facility provided in abap syntax.
    2. It is usually checked while saving a record.
    3. For eg.
    If we have one variable
    EKKO
    and another *EKKO
    (They both are same only, with same structure)
    (but two different variables)
    4. The functional meaning, for usage purpose,
    of *EKKO is OLDEKKO.
    5. While saving the transaction,
    the data is saved only if there is any change
    in the values.
    IF EKKO <> *EKKO.
    *--- SAVE
    ELSE.
    MESSAGE 'NO DATA CHANGED'
    ENDIF.
    6. We can aswell use any other variale
    eg. oldekko
    oekko
    myekko
    etc,
    7. But for business meaning,
    R/3 has the facility for *
    1. we can use almost everywhere.
    2. just copy paste
    report abc.
    TABLES : T001.
    TABLES : *T001.
    DATA : ITAB LIKE EKKO.
    DATA : *ITAB LIKE EKKO.
    DATA : NUM TYPE I.
    DATA : *NUM TYPE I.
    regards,
    amit m.

  • How can I change Overridden Qualified Table Name with a programm

    Hallo have the the Problem
    to change more then 500 Reports more than one time
    I want to change to change qualified Tabelname with a programm ( I wan't del the qualifier )
    manuel with the report designer I set the replace qualified Tablename and then verifiy Database is ok
    I want to do this with a program but the Qualifiers is write protected
    How can I change the Qualifier by programm.
    thanks for help

    Hello, Jörg;
    As I mentioned, you can remove the Qualifier in the report designer but we do not recommend it. It is not supported at runtime in an application. We expect a table location to be fully qualified or you may get incorrect data.
    There is a way to change the fully qualified location at runtime and get and set the qualifier. The following code gets what is saved in the report.
    'Definitions in Module.bas
    Public crxApplication As New CRAXDRT.Application
    Public External_Report As CRAXDRT.Report
    Public ReportFileName As String
    Public crxTable As CRAXDRT.DatabaseTable
    Private Sub Get_Qualifiers()
    'Get the fully qualified table location
    'Change it if necessary and set the new location "owner.dbo.tablename"
    'Verify the Database
    ' Assemble the qualified table name for each table.
    For Each crTable In External_Report.Database.Tables
        Dim strQualTableNamePart As Variant
        Dim strQualTableName As String
        strQualTableName = ""
        ' Obtain the table's qualifiers.
        Dim i As Integer
        For i = 1 To crTable.Qualifiers.Count
            If i > 1 Then
            strQualTableName = strQualTableName + "."
        End If
        strQualTableNamePart = crTable.Qualifiers.Item(i)
        strQualTableName = strQualTableName + strQualTableNamePart
        Next
        ' Obtain the table's name.
        If (strQualTableName <> "") Then
            strQualTableName = strQualTableName + "."
        End If
        strQualTableName = strQualTableName + crTable.Location
        ' Display the fully qualified table name.
        MsgBox "Fully qualified location " + strQualTableName
        crTable.Location = strQualTableName
    Next
    'Should be the equivalent of:
    'External_Report.Database.Tables(1).Location = "Xtreme1.dbo.Customer"
    'If the structure of the database has changed, verify the database
    'External_Report.Database.Verify
    End Sub
    Elaine

  • How to query / list table name with certain data type?

    Hi all spatials,
    Sorry for the dumb question. I need to make a query that list all table name that contain certain data type, eg. SDO_georaster. How to do this ?
    Many thanks in advance
    damon

    Skip it. I figured it : using USER_TAB_COLUMNS will definitely help.
    Cheers
    damon

Maybe you are looking for

  • Email output determination.

    Hi, I have configured the V3(Billing) output determination to send an email to my lotus notes, SAP and yahoo email address. It does send me an email the problem i am running into is the attachment which comes along with the out put is a blank text fi

  • My Toshiba TV 40TL933 does not turn with the command

    Hi I have a Toshiba 40TL933 TV and the remote turn on the LED changes from red to green but the screen goes black, no load. It has happened three times since I bought it and only a month ago. The current disconnect and re-plug in and then it works co

  • Output is no longer available in the database control file

    Hi All in Oracle 10g (10.2.0.1.0) - on suse Linux 9, OEM (10.2.0.1.0); I'm getting when I try to look at RMAN reports that databases reports are "Job output is no longer available in the database control file." - one one database. I've searched forum

  • Need information about Exchange server 2013 CU5

    Hello, Can anyone implemented Exchange Server 2013 CU5. I need feedback about this patch. Basically i will going to deploy this patch after getting best feedback. I'm waiting for your feedback. Thanks, Parvez

  • Creating a JTable of JLabels presented in a JScrollPane()

    Hi, I want to create an object showing all/some colored labels. I get it presented with 5 columns, but nothing is colored. Her is a part of the logic: public MyColorTableModel() // String [][] array; array = new JLabel [280][10]; //Just for test purp