Finding table-name from a DSN name

i need to find the total number and names of tables from a DSN setup on an access DB. can u tell me how? I couldn't find it in JDBC tutorial ..
Thanx

Try this
DatabaseMetaData meta=conn.getMetaData();
     ResultSet set=meta.getTables("Database_name",null,null,null);
     System.out.println("got meta data ");
     while(set.next()){
          System.out.println(set.getString(3));
// 3 rd column is the name of table
The resultant resultset has following columns (as strings)
(as per javadoc)
TABLE_CAT String => table catalog (may be null)
TABLE_SCHEM String => table schema (may be null)
TABLE_NAME String => table name
TABLE_TYPE String => table type. Typical types are "TABLE", "VIEW", "SYSTEM TABLE", "GLOBAL TEMPORARY", "LOCAL TEMPORARY", "ALIAS", "SYNONYM".
REMARKS String => explanatory comment on the table
TYPE_CAT String => the types catalog (may be null)
TYPE_SCHEM String => the types schema (may be null)
TYPE_NAME String => type name (may be null)
SELF_REFERENCING_COL_NAME String => name of the designated "identifier" column of a typed table (may be null)
REF_GENERATION String => specifies how values in SELF_REFERENCING_COL_NAME are created. Values are "SYSTEM", "USER", "DERIVED". (may be null)

Similar Messages

  • I want to find the image tag name from Image layer name InDesign JavaScript?

    I want to find the image tag name from Image layer name InDesign JavaScript?

    Hi,
    You can use following script to fetch image tag name and the layer name on which it lie:
    var imgBox = app.activeDocument.rectangles // fetch all rectangular frames from the active document
    for(var i = 0; i< imgBox.length; i++)
      if(null != imgBox[i].associatedXMLElement )
                var b = imgBox[i]
               alert("Image tag name "+imgBox[i].associatedXMLElement.markupTag.name + "\n exist on layer " + imgBox[i].itemLayer.name)
    Hope this would help you to resolve your problem.

  • Get Logical file name from Physical file name

    Hi everybody,
    Please how can i get Logical file name from Physical file name ?
    Thanks & Regards
    Hassan

    Hi,
    What i want is to get Logical file name from Physical file name, and not the opposite (get Physical file name from Logical file name).
    Thanks & Regards,
    Hassan

  • Finding the Title from the Program Name

    Hi Experts,
    Is there any FM or a Program to find out the title of the program by using the program name.
    I have a list of programs, I want the titles ( Short Description) for those pograms.
    Thanks in Advance,
    Praveen

    hi,
    u fetch title from TRDIRTI  table.
    write read r select to get title for particulr program
    <REMOVED BY MODERATOR>
    regards,
    chandu
    Edited by: Alvaro Tejada Galindo on Apr 23, 2008 5:47 PM

  • How to find Transaction code from Report/program name ?

    Dear all,
    How to find Transaction code if i know Report/program name ?

    Hi,
    In se 38 when u open ur program,in the application toolbar u have a button beside the where-used list button as display object list.on clicking this button,a window will be opened at the left most corner for repository browser,in this u can find any tranasctions,fileds,screens,dictionary structures defined for the program.
    if any transaction is created for the program u can find it under the transaction folder.
    revert back for further queries.
    Regards,
    Sravanthi

  • How to get the query name from  portal report name

    Hi Experts ,
    I am given a portal report Name and asked to do changes to the queries of that ,so how do i get the query name ,
    Thanks in Advance
    Nitya

    Hi Nithya,
    You can get the technical name by selecting the role in the portal where the report is enclosed you will generally find the report in description then identify the report you are looking then double click on that you will get a window pop-up in that you will have details tab there click on the details the your Query technical name will be displayed.
    EX : zqry_w001 Then replace W with Q and seach in analyser or Designer.
    Regards
    Amar.

  • How to find tables changed from one table authorization group to other.

    Hi Experts,
    We have a issue where certain tables have been moved from one Authorizaiton group to the othe table authorization group.
    We want to find all tables previous authorization group.
    Is there any wayt we could find the old authorization group.
    (for example)
    Consider a scenario where a table agr_1251 was moved to the new auth group ZAUTH.
    I wanted to find which auth group was holding the table agr_1251 previously.
    Can you please help me on this request?
    Thanks.

    One more way is to check TR (Table E070, E071). But you need to find the details for table (Like for role it is R3TR, ACGR).
    Regards,
    Arpan Paik

  • Removing short names from accounts, short names from accounts

    I have noticed that short names seem to stick.  i.e. if there are two short names, and I log in as one of the two (with admin rights), then authenticate to the Open Directory master, the other short name refuses to be removed/edited.  What is going on here?

    Hi
    Assuming I've understood you correctly.
    When you create a user the first shortname is automatically created as you're typing that name. Before you click Save you can amend that first shortname to something that suits your taste or needs. Once you click Save you can't amend or delete the first shortname. Even if you decide to change the User name (the long name) that first shortname won't change and can't be amended or deleted.
    The only way to delete the first shortname is to delete the user and start again assuming you've made a mistake with the desired shortname and clicked Save before you decided the first shortname was not the one you wanted. You can create additional shortnames which can be edited and/or deleted at any time thereafter. What you can't do is delete the first shortname regardless of how ever many other short names you create.
    If this is not what you meant and the above is not what you're experiencing and for lack of any further information I have to assume there's something wrong somewhere with either the server or the way you're using the tools to create those accounts?
    HTH?
    Tony

  • Find column name from constraint name

    How to fetch the column name from a constraint name to which the constraint is applied?.
    I only know the name of the constraint and can get the table name from "dba_constraints". How can I know to which column in the table this constraint is applied.
    Thanks

    What about this?
    satyaki>
    satyaki>
    satyaki>desc user_cons_columns;
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    CONSTRAINT_NAME                           NOT NULL VARCHAR2(30)
    TABLE_NAME                                NOT NULL VARCHAR2(30)
    COLUMN_NAME                                        VARCHAR2(4000)
    POSITION                                           NUMBER
    satyaki>
    satyaki>Regards.
    Satyaki De.

  • Table name from filed name

    Hi experts,
    I have one field name. I have several hundreds of tables in
    my database. Can you please tell me how can i retrive the table name from the field name.
    Regards
    Rajat

    Hello,
    Try:
    SELECT table_name
      FROM ALL_TAB_COLUMNS
    WHERE column_name = 'col_name';

  • Report that gets full name from the users id in the computer name

    I don't even know if this is possible, but I am finding that quite often of late I am needing to get the users full name from the computer name.
    We have a standard where a computer name is in this format XXXXXXXUSERID.
    Is there a way to get the Full name from the USERID that is in the computername (not last logged on user).
    I am fairly sure that I might be able to work it out in SQLSMS but I really need it on the web reports form SCCM.
    If anyone has any ideas please let me know.

    Thanks, I want to add it to most my reports but this is the main one that I am using right now due to an audit. 
    SELECT DISTINCT
    CS.Name0 AS 'Computer Name', CS.Domain0 AS 'Domain', CS.UserName0 AS 'User', BIOS.SerialNumber0 AS 'Bios serial',
    SE.SerialNumber0 AS 'System Enclosure serial', CS.Manufacturer0 AS 'Manufacturer', CS.Model0 AS 'model', OS.Caption0 AS 'OS',
    RAA.SMS_Assigned_Sites0 AS 'Site', RAM.TotalPhysicalMemory0 AS 'Total Memory', SUM(ISNULL(LDisk.Size0, '0')) AS 'Hardrive Size',
    SUM(ISNULL(LDisk.FreeSpace0, '0')) AS 'Free Space', CPU.Name0 AS [CPU Name]
    FROM dbo.v_GS_COMPUTER_SYSTEM AS CS RIGHT OUTER JOIN
    dbo.v_GS_PC_BIOS AS BIOS ON BIOS.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_GS_SYSTEM AS SYS ON SYS.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_GS_OPERATING_SYSTEM AS OS ON OS.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_RA_System_SMSAssignedSites AS RAA ON RAA.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_GS_X86_PC_MEMORY AS RAM ON RAM.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_GS_LOGICAL_DISK AS LDisk ON LDisk.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_GS_PROCESSOR AS CPU ON CPU.ResourceID = CS.ResourceID RIGHT OUTER JOIN
    dbo.v_GS_SYSTEM_ENCLOSURE AS SE ON SE.ResourceID = CS.ResourceID
    WHERE (LDisk.DriveType0 = 3)
    GROUP BY CS.Name0, CS.Domain0, CS.UserName0, BIOS.SerialNumber0, SE.SerialNumber0, CS.Manufacturer0, CS.Model0, OS.Caption0, RAA.SMS_Assigned_Sites0,
    RAM.TotalPhysicalMemory0, CPU.Name0
    What I really want to do is add another column called owner that just has the UID in it, I will then try to pull the users full name into another column.. hopefully I am not biting off more then I can chew with this but i have thousands of records and i
    will be forced to export to excel or something then look up all the names if I can't do this...

  • Alert name from Monitor name

    Hello All,
    Is ther any SQL/powershell query to get the alert name from a monitor name. I need the alert name to map with scorch for  autoticketing.
    Any help is appreciated.
    Thanks,
    Binoy Das

    One easy way to find the corresponding rule or monitor is of course PowerShell.
    Just run either the Get-SCOMRule or Get-SCOMMonitor cmdlet e.g.
    Get-SCOMRule | Where-Object {$_.Name –like “*Microsoft.Windows.Server.2008.NetworkAdapter.PercentBandwidthUsedTotal*”} | Select-Object *| Format-List
    or
    Get-SCOMMonitor | Where-Object {$_.Name –like “*Microsoft.Windows.Server.2008.NetworkAdapter.PercentBandwidthUsedTotal*”} | Select-Object * | Format-List
    Also you can refer below link
    http://stefanroth.net/2014/01/28/scom-get-rule-monitor-details-for-corresponding-workflow-name/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical | Twitter:
    Mai Ali

  • How to get the long file name from an 8.3 name in Windows.

    Because of a legacy string limitation, I have a list of files in 8.3 format. The actual files are saved with long names. How can I get the long name from the short name?
    In JavaScript, I would get a file system object and get the file object from there with the short name. Then it's no problem to get the full name. But I don't see anything in Java that matches that. ???
    Ideas?
    Frank Perry, MSEE

    Here is what I did.
    String displayName = "somefi~1.txt";
    File fO = new File("c:\\"); // I have a more involved path but that's not important here.
    String stPath = fO.getPath() + displayName;
    File fD = new File(stPath); // get the file using the short name.
    File fDc = new File(fD.getCanonicalPath()); // get another file using the cononical name
    String FulldisplayName = fDc.getName(); // get the long name from there.
    It's roundabout but it works. Since getName() on the file read with the short name only returns the name used to get the file, I open it twice. The alternative is to parse the cononical name for the file name but that's clumbsy too.
    Frank

  • What is the b2b setup for identifying TP names from file name in Inbound tx

    Hi,
    I am using B2B 11g version and documents of type ANSI-X12. I am working for Inbound Transaction and using Generic File protocol in Listening channel.
    File format is : %FROM_PARTY%_%TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    How can i make B2B to identify Trading partner names from the file name once the remote trading partner put the file in the specified path with the specified format "%FROM_PARTY%_%TO_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat" mentioned in the delivery channel.
    Now B2B is identifying Trading partner names from the Interchange Sender ID(ISA06) and Interchange Reciever ID(ISA08) of the ISA Segment. Please help me , how to make B2B to identify the trading partner names from the file name instead of from identifiers coming in ISA Segment.
    Thanks,
    Sridhar Rachumallu

    Hi Anuj,
    1)Now i am giving the file name for inbound documents in the format of "%FROM_PARTY%_<UniqueNumber/Timestamp>.dat" . But still B2B Identifying the TPNames at runtime from the ISA Segment elements ISA06 & ISA08 element values. I want to make B2B to identify the TPNames at run time from the file name instead of from ISA Segments.
    Please tell me how can i do these?
    2) I am giving exact Remote Trading partner Default Identifier Type 'NAME' value for "%FROM_PARTY% in the file format and i want B2B to identify the TP name at runtime based on the value of "%FROM_PARTY%" . If the value of "%FROM_PARTY%"is matching with any one of the Trading partner Default Identifier Type 'NAME' value than it should go for furthur else B2B should through error as " the TP name unable to found".
    3) Please tell me how B2B Identify trading partners at runtime in the business case given below
    - Inbound Transaction from remote TP to Host TP
    - Document protocol is 'ANSI-X12'
    - Listening channel protocol is 'Generic File'
    This is very urgent.. Please give the reply As soon as possible.
    Thanks,
    Sridhar.rachumallu
    Edited by: [email protected] on Jun 9, 2010 12:45 AM
    Edited by: [email protected] on Jun 9, 2010 1:01 AM

  • Getting host name from applet

    Hi All,
    How can i get the local host name from applet ( Host name where the applet running) . While i tried with InetAddress i got only the loop back address 127.0.0.1. Can anyone help me out in this regard.
    Thanks in advance
    V.S.Saravanan

    When you say you tried the InetAddress, did you try the following?
    You could try creating a Socket connection back to the host/server URL from where the Applet was downloaded (you should have permission to do this). You can then get the local address of the Socket.
    Something like:
    String hostName = getCodeBase();
    Socket s = new Socket( hostName, portNum );
    InetAddress address = s.getLocalAddress();
    String hostName = address.getHostName();
    Eric

Maybe you are looking for

  • MacBook Aluminum-Video Out needed

    hello, I need to display the content of my MacBook on a TV with S-Video Port, however there is no direct dongle that attaches mini DisplayPort to S-Video, so I was wondering if buying the mini Display to DVI adapter sold from Apple and a DVI to S-Vid

  • How can I transfer a playlist to my mum's iPad mini

    My mum is visiting me and I would like to transfer a playlist of her favourite muisc to her iPad mini. What is the best way to do this?  The home sharing function doesnt seem to be working for me as when I go into Music > More (via ipad)... there is

  • Php style switcher + flash + IE = broken?

    I am using the PHP style switcher by Chris Clark ( http://www.alistapart.com/articles/phpswitch/) and using a small flash interface to switch styles. 4 to be exact. I had this working before so i know it is possible. The problem is that when a user c

  • Help with SOAP

    Hi there, Hoping to get some help here with an issue I'm stuck on. I'm trying to use the Bing Ads Web service in Python (SUDS) and also just using curl. I'm able to read in the WSDL file and generate the XML/SOAP output.  I feel like there is somethi

  • Photoshop CS4 Extended and W3D

    I just upgraded to CS4 Extended, largely for the new 3D capabilities, and was astounded to learn that it doesn't support export of models to Adobe's only current 3D format, Shockwave W3D!  Can anyone give me one good reason for this incredibly short-