How to find ContentDb Name for any of the service application (e.g. User profile , Managed metadata , etc) programmatically in a farm ?

Hi,
I have a application where i need to display Name for all the service application. Specifically i need to get the size of user profile service application and Managed metadata service application name.
Please guide me. :)
Thanks and Regards:
Sanjay

You can use 
http://blogs.technet.com/b/tothesharepoint/archive/2011/12/19/find-active-databases-used-by-sharepoint-server-2010.aspx
Get-SPDatabase | Sort-Object disksizerequired -desc | Format-Table Name”
http://webcache.googleusercontent.com/search?q=cache:kMHQXNGmjcwJ:sharepointstruggle.blogspot.com/2011/08/programmatically-enumerating-databases.html+&cd=1&hl=en&ct=clnk&gl=in
using(SPSitesite
= newSPSite(url))
using(SPWebweb
= site.OpenWeb())
SPFarmf
= site.WebApplication.Farm;
foreach(SPDatabaseServices
inf.Services.OfType<SPDatabaseService>())
Console.WriteLine(string.Format("Found
Database service {0} of type {1}",
s.Name, s.GetType().Name));
foreach(SPDatabaseServiceInstancespdsi
ins.Instances)
Console.WriteLine(string.Format("|-Found
Database Service Instance {0} ({1})",
spdsi.DisplayName, spdsi.Name));
foreach(SPDatabasespdb
inspdsi.Databases)
Console.WriteLine(
string.Format("  |-DB: {0}\r\n    |-TYPE: {1}\r\n   
|-HOST: {2} ",
spdb.Name.Length
> 70? spdb.Name.Substring(0,
65)
+ "...": spdb.Name,
spdb.GetType().Name, spdb.Server.Name)
http://social.msdn.microsoft.com/Forums/en-US/61e4e56e-e373-4167-ba97-e0f411feefe9/how-can-we-programmatically-find-the-names-of-sharepoint-databases

Similar Messages

  • How to find table name for the fields from Standard Extractor in CRM system

    How to find table name of fields from the standard extractor in CRM system ?
    e.g. We use LBWE TCode in R/3 system to find table name for the field from Extractor VCSCL(e.g.).
    Likewise is there any way to find table name for the fields from Standard extractor like 0CRM_LEAD_I.

    Hi ,
    Please find the link below for understanding BW CRM analysis.
    http://help.sap.com/bp_biv135/html/bw.htm
    activate the CRM DSs by scenario:
    1) Activate the application component hierarchy (tcode RSA9). Changes made to the application component hierarchy in the CRM system can be transferred to the BW using the "Edit Application Component Hierarchy" (SBIW - Postprocessing of DataSources).
    SAP Note 434886 must be implemented in CRM 3.0 before the application component hierarchy is activated.
    2) Activate the Business Content DataSources (tcode RSA5).
    Select/enter the application component and choose Execute (F8).
    To compare the shipped and active versions, choose the 'Select Delta' pushbutton. If there is no active version of the DataSource, it is selected automatically.
    To activate the shipped version, choose the 'Transfer DataSources' pushbutton.
    3) Management of the versions of the BW-Adapter metadata (tcode BWA5). All DataSources are displayed that are managed by the BW Adapter.
    As in transaction RSA5 (Service API Metadata Activation), the 'Select Delta' function can be used to select the inactive DataSources or compare shipped and active versions.
    You can also go directly to the screen for maintaining DataSources that are managed by the BW Adapter.
    The 'Compare Version' function makes a detailed comparison of the shipped and active versions.
    All BW-Adapter metadata is considered when versions are compared:
    Header information (Table SMOXHEAD)
    Mapping information (Table SMOXRELP)
    Global selection conditions (Table SMOXGSEL)
    Attribute key fields (Table SMOXAFLD)
    Hope this helps.
    Regards,
    csm reddy

  • How to find Object name for a object?

    Hi Experts,
    How to find Object name for a particular Object? Is there a Tcode for it?
    __Like Object name for__
    Material number -  materialnr
    Goods receipts / return - matbeleg
    Accounting documents -  rf_beleg
    How to find Object name for other Objects? Is there a particular way?
    Thanks & Regards
    Chandan

    Hi,
    You can find objects in SNRO transaction.
    In SNRO search by giving long text...
    for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
    Thanks & Regards,
    Anand.

  • How to find Table names for PO & Invoices in SRM Standalnoe system SRM 7.0?

    Hi,
    How to find Table names for PO & Invoices in SRM Standalnoe system SRM 7.0? Please let me know.
    Thanks,
    Monica

    Hi,
    In SRM for all objects like SC ( BUS21210),BID,PO(BUS22010),Confirmation (BUS2203),invoice etc all the data stored
    in BBP_PDHGP and BBP_PDBEI  tables only, These is no separate tables..
    for your reference below are the few SRM tables
    BBP_PDACC  Account Assignment 
    BBP_PDATT  Document Attachment 
    BBP_PDBEH  Backend Specific Header Data 
    BBP_PDBEI  Backend Specific Item Data 
    BBP_PDBGP  Partner Extension Gen. Purchasing Data 
    BBP_PDBINREL  Transaction Object Linkage (EBP) 
    BBP_PDHCF  Set for Tabular Customer and Solution Fields on Hdr 
    BBP_PDHGP  Business Transaction Purchasing Information 
    BBP_PDHSB  Bid Invitation 
    BBP_PDHSC  Header Extension for Customer Fields 
    BBP_PDHSS  Hdr Extension for SAP Internal Enhancements (IBUs and so on)
    BBP_PDICF  Set for Tabluar Customer and Solution Fields on Itm 
    BBP_PDIGP  Business Transaction Item-Purchasing Information 
    BBP_PDISB  Bid Invitation/Bid-Specific Item Data 
    BBP_PDISC  Item Extension for Customer Fields 
    BBP_PDISS  Item Ext. for SAP Internal Enhancements (IBUs and so on) 
    BBP_PDLIM  Value Limit 
    BBP_PDORG  Purchasing Organizational Unit 
    BBP_PDPSET  Further Procurement Information 
    BBP_PDTAX  Tax 
    CDCLS  Cluster structure for change documents 
    CDHDR  Change document header 
    CDPOS_STR  Additional Change Document - Table for STRINGs 
    CDPOS_UID  Additional Table for Inclusion of TABKEY>70 Characters 
    CRM_JCDO  Change Documents for Status Object (Table JSTO) 
    CRM_JCDS  Change Documents for System/User Statuses (Table JEST) 
    CRM_JEST  Individual Object Status 
    CRM_JSTO  Status Object Information 
    CRMD_LINK  Transaction - Set - Link 
    CRMD_ORDERADM_H Business Transaction 
    CRMD_ORDERADM_I Business Transaction Item 
    CRMD_PARTNER  Partners 
    SROBLROLB  Persistent Roles of BOR Objects 
    SROBLROLC  Persistent Roles of Business Classes 
    SRRELROLES  Object Relationship Service: Roles 
    Thanks & Regards,
    Prasad S

  • How to Find Business Objects for any Tranaction .

    Hi Abapers,
                        How to find Business objects for any transcation.....  and how to connect the Work flow to  any  Trancation  so that for example any body changes the date of Birth ...... so that the work flow should trigger .
    Thanks & Regards
    Bhaskar Rao.M

    Hi Bhaskar,
    For finding business object,you can try transaction SWO4 and by checking the documentation in it you can find your required business object.
    Another method is:
    1) Go to Trx SWE4 and switch on the event trace.
    2) Run your transaction which you want to use for triggering your workflow.
    3) Run transaction SWEL and find your Business Object and related event in it.
    For connnecting your WF to your transaction you have to create a start event in your WF in SWDD,where in you specify the Business Object and start event which you find using above method.
    Eg.You want your WF to be triggered whenever you have an error in your idoc.For this your BO will be IDOCAPPL and your event will be (inputErrorOccurred).This you will give in header data in SWDD.
    Neerja

  • How to find field name for BDC

    Hi,
    to find out the field name for BDC ,
    1. press F1 for that field
    2. click technical info
    3. use SCRREN FIELD name given in Field desc for batch input.
    NOw what to do if SCREEN field name in "Field desc for batch input." is not given...Even During BDC recording if we input values in those fields,values are saved in appropritae tables but not inn BDC recording fields

    Hi again,
    1. ABSOLUTELY Sure.
    2. Container (Container Control)
       is nothing but an EMPTY control
       to place controls inside it.
        eg. Its a FRAME
        inside which, there are contros!
    3. Container does not have any INPUT VALUE !
    regards,
    amit m.

  • How to find domain name for the host

    I have found the hostname but I am not able to find the domain name , how can I do that?? From the forums I was able to understand why the BSP Application was not displaying but unable to execute the same as I was unaware of the domain name.
    Thanks in advance.
    Regards,
    Narayani

    Hi Narayani,
    What about doing something like this?
    data: urls type tihttpurls2,wa type IHTTPURLS2, host type string.
    call method cl_http_server=>get_extension_info
    EXPORTING
    extension_class = 'cl_http_ext_bsp'
    IMPORTING
    urls = urls.
    concatenate sy-sysid '.' into host.
    translate host to lower case.
    loop at urls into wa.
    replace host in wa-host with ''.
    endloop.
    The idea is that you get all the possible URLs and then delete the host part of it. Then you get the domain.
    Eddy

  • How to find  open sto for any material in a Plant

    hello Guru's
    I want to find a list of open stos for any material in a plant.Is there any transaction for this,or any procedure

    Hy,
    Use t.Code MB5T (Stock In Transist).
    Regards,
    Dhaval

  • How to find table name for a structure field

    There is a field in contract display screen (VA43). Item overview tab. The name of the field is Value released (RV45A-AWERT). Can anybody let me know the name of the table and field that has this value. I have to display this value in a custom report.

    Hi Chandra,
    You can the see list of tables used for VA43 through transaction SE80.
    If you want to see the field is used by tables then go to transaction code SE84.
    1) Select ABAP dictionary->Data elements.
    2) Give the field name in the Data element under Standard selections and click on execute.
    3) Check the data element and click on where-used-list(CtrlshiftF3)
    4)Check table fields
    5)It will display list of table fields used by this field.
    Thanks,
    Vinay

  • How to find column name for OIM attributes?

    What is the COLUMN_NAME for attributes "Password Generated" and "Design Console access" in OIM 11g?
    Also I cannot find FormMetaData.xml anywhere. Which file represents FormMetaData.xml in OIM11g?

    Thanks Rajiv.
    Here is what I got for the query,
    SELECT USR_EMP_TYPE FROM USR WHERE USR_FIRST_NAME = 'Test';
    USR_EMP_TYPE
    Consultant
    But Design Console Access is a CheckBox in UserForm for OIM 11g, doesnt this value has to be True/False?
    Please help me understand

  • How to find job name for an event

    Hi,
    I have some event triggered process chains running in BW. The event starts a job in the source system.
    I know the event name but I don't know the job name getting triggered by it.
    Please let me know how to get it.

    Hi,
    I have some event triggered process chains running in BW. The event starts a job in the source system.
    From your statement, it appears that the event is firing the Process Chain. The PC could then be firing the job in the source system (through an Infopackage or something).
    Is this understanding correct? If not, how do you know that the event in BW is firing something in ECC?
    Regards,
    Suhas

  • How to add wait time for any of the process in Process chains?

    HI
    I want to add the wait time for the process in the process chains. How to do it?
    Regards
    Priya

    Hi there,
    Here you go:
    REPORT  ZREPORTNAME. "the name of your report
    WAIT UP TO 90 SECONDS. "a wait is set to 90 seconds before starting the chain
    "call your chain to be executed after that
    CALL FUNCTION 'RSPC_CHAIN_START'
      EXPORTING
        I_CHAIN             = 'ZYOURCHAIN'. "the name of the chain you wish to run
    Diogo.

  • How to fine query name for given transaction

    how to find query name for given transaction

    Check out the related thread
    https://forums.sdn.sap.com/click.jspa?searchID=1491773&messageID=959848
    Use T/code SQ01 to find query. after this transaction select client specific Query areas via
    Menubar>Environment>QueryAreas--> Select Client Specific.
    Regards,
    Santosh

  • How to identify the infosource name for any ods zpxrrm?

    hi all,
    How to identify the info source name for any ods that have created.
    thanxs
    haritha

    Hi Haritha,
                   Check the datasources from which the data is coming to the ODS.Take the technical name of the data source.Check in Infosources Tab.There you can find in which infosources the ODS is present.
    Hope this solves
    Regards
    Karthik
    Assign points if helpful.

  • How to find workarea ID for the work area name.

    Hi Experts..
    How to find workarea ID for the work area name.(Work area name CCIHT_WAH-WAID and I want to fetch characteristic data from table AUSP matching the OBJEK field,but I only have Work area name).Can anybody help me to find tables or relationship between Workarea ID and Workarea name for the same.I am using TCODE - CHIB02.Once I select a workarea and click on IHS Data button,I get data for that workarea.I need to find where this data comes from and How is this fetched.
    Points would be rewarded for helpful answers..
    Thanks
    Kunal Halarnakar

    U want to fetch the workarea description ?
    we can fetch it from CCIHT_WALD table with the RECN value.
    The informations are stored in AUSP table with the characterstic(ATINN) value.

Maybe you are looking for

  • Opening PC .sesx files on a Mac?

    Been using the 32 bit version of Audition via the CC on my Win 7 PC for 6 months. Now we're migrating to Macs and I cannot open any of my old session files. Maybe I'm dumb, but I thought that the sesx files would be cross platform compatible? Have I

  • How to display variable lenght grid within subreport

    Hello; In order to compensate and fill up space of a subreport to make up a full page or even generate a blank page to compensate for duplex printing, we have programmed the data to fill in blank records, as many as we need per invoice. These invoice

  • Application Server 10g R2: opmn start all failed

    Hi, I have sat up a test domain according to the guidelines from Claus Jandausch "Oracle for Windows and .NET". Everything worked fine until we started the manual configuration of the Single Sign On support on the application server. Even after we ha

  • Java's Defualt Literal Types (Whole number literals defaults to int?)

    Hello guys, its my first Post here, just want to ask is java whole number literals defaults to int? check these codes ---code 1:--- Java Code: 1 byte b = 10; //code 1 works ---code 2:--- void someMethod(byte a,byte b) System.out.println(a+b); then I

  • Problems testing podcast with iTunes 7

    My XML feed has been validated by feedburner. I tested my podcast by trying to manually subscribe to it in iTunes 7, but it says it's not a valid podcast feed. I've been able to successfuly watch the podcast in my browser and have succesfully watched