Column description

Hi!
I'm using MSSQL 2000 as database engine. So far i'm using DataBaseMetaData for getting column properties like type, name and so on. Now i want to get columns description (i put this description). is there any way to do it, but from java not from database?
Tnx :-)

i dont know how this works
SELECT * FROM ::fn_listextendedproperty(NULL,
'user', 'dbo', 'table', 'Test', 'column',
default)
but
the following code snippet might help u
ResultSetMetaData rsMd = rs.getMetaData();
               int numberOfColumns = rsMd.getColumnCount();
               for (int i = 1; i <= numberOfColumns; i++) {
                    cName = "unknown";
                    try {
                         cName = rsMd.getColumnName(i);
                         cType = rsMd.getColumnTypeName(i);where cname is the column name and ctype is column
typei don't want column name or column type :-) i want column description.
for example:
column name = idPrimaryKey
column type = int indentity
column description = primary key for this table .....
with getColumnName i get idPrimaryKey, with getColumnTypeName i get int indentity, but how can i get "primary key for this table ....."?

Similar Messages

  • Error while trying to change the Column description in Table Control

    Hi,
    I have created a table control using the wizard in Module Pool.
    When i try to change the column description of the table control or adjust any other element which is already available on the screen and not in table control. It gives me an error
    Unable to transfer data. End Program?
    Any help would be appreciated.
    Thanks
    Sarves S V K

    Hi.,
    Check these  [Table Control Change Column Description|Add new columns in table control in custom screen program;
    and  [Add Columns in Table Control|Re: Table control columns]
    else  delete and create Table control Again..!!
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Problem with column description in report

    Hi Guys,
    In one of the queries, I have time-characteristic 0FISCPER (restricted on 0I_FPER variable) in the columns section. I have few key figures in my rows section of the query. When i executed the query (filter char. - Fiscal year variant restricted to July - June, 4 special periods i.e. V6), i get separate columns for each month as required. On execution, the following output appears (with user-entry values for 0FISCPER being 001/2005 - 012/2005):
    July 2005 August 2005 ..... June 2005
    The output i am expecting is:
    July 2004 August 2004 ... June 2005
    I have problem only with the column description. The data appears correctly. i.e. Data for July 2004 appears correctly but with heading July 2005 instead of July 2004. I created text variables on 0FISCPER for all the months of 2004. But no help.
    Any help will be greatly appreciated.

    Hi,
    Thanks for the note Bhanu. The note mentions about BW 3.5 SP9. We are already on SP10.
    Looking for help.
    Thanks.

  • Tabular model. Define column description to be visible in Excel

    Hello,
    I edit a Tabular Model in SQL Server Data Tools.
    Then I connect to it through Excel, where I see the names of the tables, column and measures.
    I would like to see descriptive names of the entities in Excel. There is "Description" field in a model, but Excel still displays the real names of the columns.
    I can only do that by setting description in the field parameters in Excel for each pivot table(there are many)
    Can I implement such functionality using SQL Server Data Tools fro VS2013 and Excel ? 

    Hi Ruslan,
    According to your description, you created a SQL Server Analysis Services Tabular model project, now you need to define column description to be visible in Excel, right?
    In SSAS tabular, there is a measure property Description
    that description of the measure. The description will not appear with the measure in a reporting client. Please refer to the link below to see the details.
    http://msdn.microsoft.com/en-us/library/hh230824.aspx
    For the tabular model table, the table description property is a text description for the table. In PowerPivot for Excel, if an end-user places the cursor over this table in the field list, the description appears as a tooltip.
    http://msdn.microsoft.com/en-us/library/hh479562.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Column description fixed KE30

    Hi,
    I need fixed the column description in the reporte KE30  from I move to the right and displayed continuously.
    Thanks.

    alekoc wrote:
    I use column's description for my tables in Oracle 11g data base. Sometimes I do the tables export for another developer, but it does not include the column's description into EXPDAT.DMP file. Probably I need to provide some additional parameter for export, I don't know. Is there a way to include column's descriptions into DMP file? If not, is there another way to pass this data from one developer to another?You must be referring to the data in dba_col_comments view. This is a data dictionary view and would not be exported with table data. If there is a expdp option to pull that information, it will be documented in the Utilities manual in the chapter on Data Pump. If there is such an option documented there, then you have your answer. If there is not such an option documented there, then you still have your answer.
    I strongly encourage you to follow up on that hint and search the documentation for such a parm.  The exercise will do you good.
    If there is no such option, you could extract that information separately by using a sql script to create a sql script
    set echo off verify off feedback off head off trimspool off
    spool doit.sql
    select 'comment on column ' ||
             owner ||
             '.' ||
             table_name ||
             '.' ||
             column_name ||
             ' is '''||
             comments ||
    from dba_col_comments
    where <whatever your criteria>
    spool offExamine doit.sql and see if any adjustments need to be made. You may need to play around with the quotes to get the required single quote literals around the value returned for the COMMENTS column.

  • CDS: Entity Column description

    Hi,
    Implementing CDS on HANA SPS6. Is there a possibility to maintain column description / comment when creating the HDBDD?
    Could not find any reference in developer guide. Appreciate any pointers.
    Thank you.

    No, not currently. The documentation/description annotation is something planned for the future.

  • Hana view column descriptions are not showing in Crystal 2013

    Hello All,
    I have a hana calculation view which has the column name and label defined perfectly. When I use the HANA view in Crystal Report 2013, the column labels are not showing up in the field explorer even after enabling the show both name and description. Please help.

    hi
    is anyone has answer for this question.
    thanks...!!!!

  • OO ALV column description

    Hi Experts,
                     I have a OO ALV with hierseq list display. My column heading description is coming from Data element and very short. How do I give my own description of the columns.
    Thanks

    http://help.sap.com/saphelp_nw04/helpdata/en/10/e4eb40c4f8712ae10000000a155106/content.htm

  • Database column descriptions in Sharepoint

    Hi All,
    my apologies if this is a stupid question but I'm somewhat of a n00b in Sharepoint so please bare with me. 
    I'm doing a reporting project (Data Warehouse, SQL Server Analysis Services Tabular model) and the number of available columns to use in the reports is getting quite big. To make things easier for the end users I'd like to create a documentation library
    which basically consists of key/value-pairs where the Key is the name of the column that can be used in the reports and the value would be the description. I would also prefer to have a few additional attributes also to describe the columns better. 
    The most important thing however is that the keys are searchable and when testing this (using standard sharepoint lists) I've had some issues with nothing showing up in the search results. 
    What should I do here? 
    Lumbago
    www.thefirstsql.com

    Hi John and Christian,
    Thanks for your input and thoughts about this problem.
    Since I am using the 'Externalize Display Names' and 'Externalize Descriptions' functionality, I'm actually already that far that I have the names and descriptions stored in a table (W_LOCALIZED_STRING_G table from Oracle BI apps) and the column name and description are stored in session variables, in the following format:
    Session variable for column name = VALUEOF(NQ_SESSION.CN_Presentation_Catalog_Name_Presentation_Table_Name_Presentation_Column_Name)
    Session variable for description = VALUEOF(NQ_SESSION.CD_Presentation_Catalog_Name_Presentation_Table_Name_Presentation_Column_Name)
    So when I have a report like this:
    Column 1____Column 2____Column 3
    Then I would need to create 6 extra columns, using the session variables:
    Column 1____Name of Column 1____Description of Column 1____Column 2____Name of Column 2_____Description of Column 2____Column 3___Name of Column 2_____Description of Column 3
    And then I could create a narrative view like this and add this to my report.
    @2: @3[br/]
    @5: @6[br/]
    @8: @9[br/]
    (And I could use HTML to create proper alignment.)
    This could be a solution, but I don't like the fact that
    1) I need to know all the names of the session variables by hard,
    2) I need to create separate columns for each column,
    3) I need to create a narrative view by hand.
    I was hoping that there was a sort of trick to easily get the description of the column in my report, ideally without using separate columns.
    If you have any further ideas, I'm very interested.
    Regards,
    Stijn
    Edited by: Stijn Gabriels on Nov 14, 2008 10:22 PM

  • Getting a column description

    Hi. I am running Microsoft SQL Server 2000 and am wanting to know if it is possible to get the text out of the Description field. I thought ResultSetMetaData.getColumnLabel(int id) would work but it keeps on returning the column name. Am I looking in the wrong spot? Is it even possible to retrieve this data?
    Thanks for the help.
    Ben

    I don't think I made myself clear enough. When designing a table, at the bottom of the page there is a text field entitled "Description" that allows you to enter a text description of the object. I was told a while ago that you can extract this information from the DB using the getColumnLabel(x), however this is returning the column name (the same value as getColumnName(x)). What you have suggested returns the type name which in my case is varchar. So far I have tried
    ResultSet rs = statement.executeQuery(......);
    ResultSetMetaData rsmd = rs.getMetaData();
    out.print(rsmd.getColumnName(x));
    out.print(rsmd.getColumnLabel(x));
    out.print(rsmd.getColumnTypeName(x));
    Thanks,
    Ben

  • Where can I find the Designer column Description in the Repository ?

    I recently posted a question about where to find roles in the data model in Designer (what I was looking for was in ci_business_units (column role_responsibilities). That was a good discussion (and I was happy to find a Designer group).
    Now I am looking for the field "Description", here:
    I looked at all of these tables but couldn't find what I was looking for:
    sdd_folders app
    sdd_folder_members afm
    sdd_folders fol
    sdd_folder_members fms
    ci_modules mds
    ci_general_modules gen
    ci_module_business_units mbu
    ci_business_units bnu
    I also looked for columns like 'DESC%' in the entire d.b. and nothing seemed to be what I'm looking for.

    Hi Wim,
    There is an artikel at the technology blog of Amis "Quick Query to report on Entities and Attibutes in Oracle Designer" https://technology.amis.nl/2006/02/16/quick-query-to-report-on-entities-and-attributes-in-oracle-designer/ In that article they needed the Description of Entities and Attrbiutes which is inside CDI_TEXT. Maybe this is the same for the modules.
    Regards,
    Mark

  • When will Excel Support Tabular Model Table and Column Descriptions via Tool Tip or other display mechanism

    I have noticed that SSMS supports tool tips for the Tabular Model (tables and columns) however Excel 2013 doesn't appear to.   This is a very important feature to our end users.
    Does anyone know when this will be supported?
    Thanks
    M Meyer

    Hi Meyer,
    According to your description, you want to use the tooltip function in Microsoft Excel for the SQL Server Analysis Services Tabular model, right?
    I have tested it on my local environment (Microsoft SQL Server 2012 SP1 and Excel 2013), the result is that the feature is not supported currently. It's hard to say the detail date when this will be supported. If this feature is enabled, Microsoft will announce
    it on the document.
    Besides, if you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback and hope it is resolved in the next release of service pack or product. Your feedback enables Microsoft to make software and services the best that
    they can be, Microsoft might consider to add this feature in the following release after official confirmation.
    Regards,
    Charlie Liao
    TechNet Community Support

  • OIM 9102 and USR table column description

    Can any one please tell me what is the difference between USR_create and USR_created column in the USR table.
    I need to generate a custom report and not sure which column contains what, apparently the data in both columns have the same date in my case.
    Thanks,

    Yeah...the date is same in both the case, but I could see a difference of few seconds between these two values for some users.
    This suggest that USR_CREATE might be the time when the user creation process starts and USR_CREATED might be the time when the user creation process was completed.

  • Sqlldr - 8i - SEQUENCE clause in column description

    I'm having trouble getting a handle on how SEQUENCE works in 8i when
    you're loading multiple tables from each logical record.
    The documention says a unique sequence number is generated for each
    logical record, but also describes the COUNT and MAX options as depending on
    TABLE values - num row in COUNT, max sequence for col in MAX.
    Here are 3 situations. I would appreciate any help. I do not have access to an
    ORACLE server, or I would simply have tried them myself!
    first: tab1 starts with 1 row, tab2 starts with 2 rows
    into table tab1
    (col1 sequence)
    into table tab2
    (col2 sequence)
    what are the first 2 values of col1 and col2?
    second - tab1 starts with 1 row, tab2 starts with 2 rows
    into table tab1
    (col1 sequence (COUNT,3)
    into table tab2
    (col2 sequence (COUNT,3)
    what are the first 2 values of col1 and col2?
    third - tab1 starts with 1 row, tab2 starts with 2 rows
    into table tab1
    (col1 sequence (MAX,3)
    into table tab2
    (col2 sequence (MAX,3)
    what are the first 2 values of col1 and col2?

    A sequence is an oracle object that will guarantee a unique number. While normally used to generate a unique key for a row, it has nothing to do with a table. For example, the following code will show how to use the same sequence in multiple tables.
    declare
    next_key number;
    begin
    select my_sequence.nextval
    into next_key
    from dual;
    insert into table1(col1,col2,col3) values(next_key,1,2);
    insert into table2(col1,col2,col3) values(next_key,3,4);
    insert into table3(col1,col2,col3) values(next_key,5,6);

  • 2 lines description in column table VC

    Hi
    I am working with VC. I have a table and columns description must be long.
    Is it possible to have 2 lines of description in a table?
    Best regards
    Carlos

    Hi Carlos,
    I think it's not possible, but I have never tried it. You can add a formula for your column text and use CHR(13) for the line break, e.g. "TEXT 1" & CHR(13) & "TEXT2".
    This works for a plain text field, but I haven't tried that so far for a table column.
    Best Regards,
    Marcel

Maybe you are looking for

  • "Unable to log in to the user account . . . "  Any suggestions?

    Hi, I have a 500 mhz PowerBook G4 that I've been using as a secondary computer since I got my MacBook Pro a few months ago. The PB has a 100gig drive with two partitions. There are 10.4.11 systems on both drives. This morning I renamed both drives in

  • CS4 Crashes when importing models

    I've made a 3D scene in 3DS Max and I'm trying to import a model to a 3D layer, however when I do this Photoshop crashes everytime. I must close it and reopen it and try again, each time failed. All my graphics drivers are up to date. I've managed to

  • Unexplained display brightness changes

    After a search of the forums, I understand that this issue has been floating around for a couple of years. I haven't found any explanations or resolution. I have an iMac G5, 1.6GHz. The computer seems fine in most respects except for one annoying "fe

  • MIDI events are crazy.

    When I create some events in the "matrix" and try to edit them, those edited events will cause a delay. It sounds like if every note was note quantized.

  • [svn:fx-trunk] 12848: * Another batch of compiler fixes.

    Revision: 12848 Revision: 12848 Author:   [email protected] Date:     2009-12-11 06:46:13 -0800 (Fri, 11 Dec 2009) Log Message: Another batch of compiler fixes. QE notes: Doc notes: Bugs: SDK-24472, SDK-14213, SDK-24555 Reviewer: Corey, Mike M. Cyclo