Sap mdm  or  master data services from business objects ...

hi
i  knew sap is acquiring business objects , but BO is having a software package called master data services , whose functions are same as sap mdm which is already available for few customers , then how sap is planning on these two procucts. are these two products going to be mixed or only one will be there in market .   any body any idea ?
or . master data services is going to be an addon to sap mdm ?
akhil
Edited by: akhil k on Jan 20, 2008 2:13 AM

Hi Akhil,
Please go through these link i think they may help:
1. ttp://www50.sap.com/m1/global/bobj/le/packages/mdm.htm
2. Enterprise master data management (MDM) should always be the objective of any ... This approach extends Approach 4 by exposing master data services in the ...
http://www.b-eye-network.com/view/5051
3.Solving the SOA Data Dilemma with Master Data Services
http://www.b-eye-network.com/view/6034
Akhil, from 3rd link it looks like that this MDS( master data services) is same as MDM just the thing to be noticed is MDS term is used with SOA and MDM is an independent tool to provide MDS.
Rewards if found helpful.
Regrds,
Alok

Similar Messages

  • SAP to Data Services System (Business Objects)

    Hi,
    Currently there is an RFC connection between Data Services and R/3 which exchange three idocs. Each idoc has an volume of 30k per day.
    As we are trying to introduce PI as central broker, will it be recommended to bring PI into the scope thinking on the performance head.
    As this would be simple idoc to idoc conversion, let me know the things that will help to reduce the performance overhead.
    Also should i be using RFC adapter between PI and Data Services.
    Also since the licensing model is based on CPU, what effect will it bring with these three interfaces?
    Is there any other connectivity that we can try apart from simple RFC

    Hi,
    >>>Do you mean to say with dual stack, Idoc adapter is available both in ABAP as well JAVA.
    yes you can use any of the two
    but if you want to use ICO you can only use IDOC_AAE (java stack idoc adapter)
    >>>I thought idoc adapter would present in Java stack when you go for java stand alone installation only.
    no, with dual you also get it
    >>>>That would solve my volume issues. What is the best way to find the size of an idoc?
    send it via PI or easier and without PI - send it to an XML port (but this will give you the XML idoc size)
    Regards,
    Michal Krawczyk

  • What is Data services in Business Objects

    Hi Folks,
    Can I know What is Data services and
    Where we can consider usage or need for this tool.

    Hi,
    Data Services consists of Data Quality and Data Intergrator that'll help in gathering, clensing and loading data from multple data sources into a single datawarehouse. Reporting and analysis for BI purpose can then be done on the final datawarehouse.
    Please find Data Services product guides and documents at [http://help.sap.com/content/bobj/bobj/index.htm]
    Regards,
    Subhodeep

  • SAPBI data accessing from Business objects and other OLAP tools

    Hi,
    We already have heavy usage of Business Object, Essbase and are planning to implement SAPBI 7.0
        a) We are planning to connect our existing Business
            Objects infrastructure onto the new SAPBI platform, Did
            You experience any issues such as performance,
            config issues, delays, web issues.. is there any
            document or link with steps involved in integrating
            Business objects and SAPBI
         b) Can Bex analyzer gives simliar functionalities that
            are in Essabse front- end (EXCEL), I know that the
            backend data managament is quite different, but my
            question is around user  interface, do you have any
            comparisons between these two tools.
         c) Is it possible to get data from SAPBI using external
            reporting tools (OLAP) such as Oracle Discoverer ...
    Regards,
    Raman

    if the export to XML file is successful, the file will not be deleted if you are creating it from Metadata Exchange.
    The file gets deleted in case you are using the create universe option and by default the file is created in %LINK_DIR%\log\MetadataExchange, you will also see ME_errorlog.txt and ME_outputlog.txt if there are any errors, do you see and erros in these files if you are creating the Universe directly from DS Designer ?
    to use Metadata Exchange do the following
    Open Data Services Desginer
    Click on tools Menu -> Metadata Exchange
    In the Metadata Exchange window
    Select Export Data Services metadata to a file
    Select DI CWM as metadata format
    enter location for xml file (C:\temp)
    Select the datastore you want to create Universe for
    Click OK
    Check for file named repo_export.xml in the C:\temp folder or the folder that you specified
    Open Universe Builder and Select
    Data Integrator bridge
    and use the xml file as input to create universe

  • Master Data load from Info Object

    Hello,
    Iam tryting to load masterdata from info object using the standard package in 7.5 NW. My requirement is similar to the scenario 3b in the How to load masterdata doc(to prefix and strip the Compounding obj). This is the ssue i am currently facing.
    1. When i validate the transformation file , I get an error saying "Duplicate member id'12345'
    2. I have spaces in my node name. How am i supposed to give the technical name in the Member id field of the hiererchy tab in the data manager set selection options.
    3. text nodes not getting converted to member values.
    note:  I  am able to  get past this with out giving the seletion for the hierarchy in the DM package and running the package succesfully ,but i dont see the text nodes getting converted to member values.
    Please provide me some useful insights. had anyone had a similar issue??
    Thanks,
    Simi

    Simi,
    Did you checked YES to import the Text Nodes ... and even the Short Text in Language Tab under the SET SELCTION of the info object.

  • Master Data Service: how to remove the dirty data from master data service from a table using store procedure?

    hello, we need to remove the dirty data from MDS, but we found we can only do this from MDS web, and we need to do this by store procedure to make this process automatically. is there any easy method to remove the data from MDS automatically? thank.
    Warren

    Hi Warren,
    Assuming the dirty data is easily identifiable, all you need to do is use the staging process with import type of 5 (de-activate - i.e., soft delete) or import type of 6 (hard delete).
    Could give more details if I knew the version of MDS you are running (SQL 2008R2 or SQL 2012).
    Kind regards,
    M

  • Master data services 2012 domain trust issues

    hi,
    we have a Master Data Services 2012 installation within one domain and the users exist within another domain.  This has a selective trust both ways.
    the behaviour that we are seeing in MDS 2012 when adding users to the master data services from the other domain we are getting no exact match found for the users that exists when adding users in;  these users are from the domain that MDS does not reside
    in but there is a trust in place.
    we have given authentication permissions to all users requiring access to the server that MDS resides on.
    the question is what steps are necessary to allow MDS to operate in two domain environment.   We have other applications that function in this manner but MDS is causing issues.
    any help would be appreciated..
    thanks

    I don't have the exact multi domains environment to try it on. But I tried on mutil forest domains. It seems working fine.
    When add the user, the format is like [DomainName\]UserName
    When add the user for another domain, the domain name is required.
    There is a trust between our two domains (which works because I can log into SQL Server effortlessly with SSMS). However, when I try to add a user from the other domain, I get the error
    "No exact match was found for domain\user"
    It seems that MDS really doesn't like trusts.
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • Extracting Data from SAP ERP using BODI/Data Services 4.0

    HI,
    I am trying to extract data from SAP ERP via SAP extractors using BODI/Data Services 4.0.
    I do not have my own ERP system so I am renting remote access from one of the many available on the internet.
    I am able to connect BODI to the ERP system and import the extractors metadata.
    The problem I am experiencing is that when I run job to extract the data I get the following error:
    Vendor-supplied function module <Z_AW_RFC_READ_EXTRACTOR> not found. Ensure that you can execute the function module in SAP via transaction /nSE37.
    How do I create the function? Or is the function a SAP standard function?
    SAP ERP system being used is: ECC6 EHP4
    User has SAP FULL and DEVELOPER authorizations.
    Any assistance would be appreciated.

    You might have better luck in the (somewhat misnamed) [Data Integration and Data Quality Management|Data Services and Data Quality; forum:
    This forum is dedicated to topics related to SAP BusinessObjects Data Services (Data Integrator, Data Quality Management, Text Data Processing), SAP BusinessObjects Information Steward (Metadata Management, Data Insight), SAP BusinessObjects Rapid Marts and SAP BusinessObjects Data Federator.
    (emphasis added)
    Regards,
    Sean

  • Master data extraction from SAP ECC

         Hi All,
    I am a newbie here and teaching myself SAP BI. I have looked through the forums regarding master data extraction from SAP ECC in all forums but could not answers for my question. Please help me out.
    I want to extract customer attributes from SAP ECC. i have identified the standard data source 0customer_attr and replicated in SAP BI. I have created infopackage for full update. I validated the extractor checker(RSA3) and found 2 records for 0customer_attr.
    When I run the info package, the info package remains in yellow state until it times out. Please let me know in case i am missing anything, Please let me know if there is any other process for master data extraction similar to transaction data extraction.

    Hi All,
    i did the below and afte clicking execute in the Simple job, it takes me back to the Monitor Infopackage screen.
    From your info pack monitor --> menu environment-->job overview--> job in the source system--> prompts for source system(ECC) user id and password, enter them, you will get your job at SM37(ECC), select job and click on log details icon. there you can see details about your error. please share that error screen shot.
    Please find the screenshots.
    I did an Environment -->Check connection and found the below,

  • Advice on Promoting Master Data Services Changes from one environment to another, e.g. DEV to UAT

    Hi,
    Has anyone got experience of creating a script to promote Master Data Services changes from one environment to another, e.g. Development to Production please?
    The changes basically consist of adding several new MDS members which can be accessed via Excel.
    Thanks in advance,
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    In MDS terminology an Entity is metadata, and Entity Members are the data. 
    Typically changes to an Entity (ie model design changes) are promoted to different environments.  Model design changes can be replicated manually in each environment or you can Export the model and Import it into the target environment.
    Adding, editing and deleting entity members is performed directly in each environment.
    If you want to selectively import data from a Dev environment, you can use staging.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • Excel 2012 SP1 plagin for Master Data Services - Bugs ???

    Excel 2012 SP1 plagin for Master Data Services 32bit or 64bit
    1.  
    My entity A has 50,000 records.
    Entity B has a domain attribute "City" from entity A.
    I successfully add new records to the entity B, but after refresh I cannot see any data in the domain attribute "City" for new records (empty cels)!!! Although in the Web client (or through SSMS in table)  I can see the data in "City"
    attribute (e.g. code_095 {Moscow}).
    If I reduce the number of records in the entity A to 20 000, then I see code_095 {Moscow} in Excel 2012 SP1 plagin for MDS.
    Bug???
    2.
    Why Excel 2012 SP1 plagin for MDS resets the format cells ???  Bug???
    3.
    I have created rows for my own headings (business captions) above the MDS-table in the Excel-worksheet.
    Excel 2012 SP1 plagin for MDS: Why after applying the filter (query from server) Excel-worksheet completely recreated ?
    And all my row headers have been removed!!! What the hell ?
    from Moscow with money

    Superbluesman, is this still an issue? This looks like a bug. Did you file a Connect Item?
       Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

  • How to  extract  master data  attribute from  r/3 to bw give steps details

    how to  extract  master data  attribute from  r/3 to bw give steps details screenshots

    Hi
    Go through the below process to extract Master Data Attribute from R/3
    Hi,
    Maintaining Generic DataSources
    Use
    Regardless of the application, you can create and maintain generic DataSources for transaction data, master data attributes or texts from any transparent table, database view or SAP Query InfoSet, or using a function module. This allows you to extract data generically.
    Procedure
    Creating Generic DataSources
    1. Select the DataSource type and specify a technical name.
    2. Choose Create.
    The screen for creating a generic DataSource appears.
    3. Choose the application component to which you want to assign the DataSource.
    4. Enter the descriptive texts. You can choose any text.
    5. Select the datasets from which you want to fill the generic DataSource.
    a. Choose Extraction from View if you want to extract data from a transparent table or a database view. Enter the name of the table or the database view.
    After you generate the DataSource, you have a DataSource with an extraction structure that corresponds to the database view or transparent table.
    For more information about creating and maintaining database views and tables, see the ABAP Dictionary Documentation.
    b. Choose Extraction from Query if you want to use a SAP Query InfoSet as the data source. Select the required InfoSet from the InfoSet catalog.
    Notes on Extraction Using SAP Query
    After you generate the DataSource, you have a DataSource with an extraction structure that corresponds to the InfoSet.
    For more information about maintaining the InfoSet, see the System Administration documentation.
    c. Choose Extraction Using FM if you want to extract data using a function module. Enter the function module and extraction structure.
    The data must be transferred by the function module in an interface table E_T_DATA.
    Interface Description and Extraction Process
    For information about the function library, see the ABAP Workbench: Tools documentation.
    d. With texts you also have the option of extracting from fixed values for domains.
    6. Maintain the settings for delta transfer, as required.
    7. Choose Save.
    When performing extraction, note SAP Query: Assigning to a User Group.
    Note when extracting from a transparent table or view:
    If the extraction structure contains a key figure field that references a unit of measure or a currency unit field, this unit field has to be included in the same extraction structure as the key figure field.
    A screen appears on which you can edit the fields of the extraction structure.
    8. Edit the DataSource:
    &#9675; Selection
    When you schedule a data request in the BI scheduler, you can enter the selection criteria for the data transfer. For example, you can determine that data requests are only to apply to data from the previous month.
    If you set the Selection indicator for a field within the extraction structure, the data for this field is transferred in correspondence with the selection criteria in the scheduler.
    &#9675; Hide field
    You set this indicator to exclude an extraction structure field from the data transfer. The field is no longer available in BI when you set the transfer rules or generate the transfer structure.
    &#9675; Inversion
    Reverse postings are possible for customer-defined key figures. Therefore inversion is only active for certain transaction data DataSources. These include DataSources that have a field that is marked as an inversion field, for example, the update mode field in DataSource 0FI_AP_3. If this field has a value, the data records are interpreted as reverse records in BI.
    If you want to carry out a reverse posting for a customer-defined field (key figure), set the Inversion indicator. The value of the key figure is transferred to BI in inverted form (multiplied by –1).
    &#9675; Field only known in exit
    You can enhance data by extending the extraction structure for a DataSource by adding fields in append structures.
    The Field Only Known in Exit indicator is set for the fields of an append structure; by default these fields are not passed to the extractor from the field list and selection table.
    Deselect the Field Only Known in Exit indicator to enable the Service API to pass on the append structure field to the extractor together with the fields of the delivered extract structures in the field list and in the selection table.
    9. Choose DataSource ® Generate.
    The DataSource is saved in the source system.
    Maintaining Generic DataSources
    &#9679; Change DataSource
    To change a generic DataSource, in the initial screen of DataSource maintenance, enter the name of the DataSource and choose Change.
    You can change the assignment of a DataSource to an application component or change the texts of a DataSource. Double-click on the name of the table, view, InfoSet or extraction structure to get to the appropriate maintenance screen. Here you make the changes to add new fields. You can also completely swap transparent tables and database views, though this is not possible with InfoSets. Return to DataSource maintenance and choose Create. The screen for editing a DataSource appears. To save the DataSource in the SAP source system, choose DataSource ® Generate.
    If you want to test extraction in the source system independently of a BI system, choose DataSource ® Test Extraction.
    &#9679; Delta DataSource
    On the Change Generic DataSource screen, you can delete any DataSources that are no longer relevant. If you are extracting data from an InfoSet, delete the corresponding query. If you want to delete a DataSource, make sure it is not connected to a BI system.
    NR

  • Is it possible to update master data attributes from an ODS?

    HELLO ALL,
    we have records coming into our ods like the following:
    costcenter1, subcostcentera, subcostcenterb, manager responsible, costs (kf). 
    This is a custom flat file load from a legacy system.
    We would like to just create an update rule from the ODS to the cost center mater data characteristic attributes. 
    Is this possible?
    thank  you

    Yes its possible to update the master data attributes from an ODS.
    Define your master data characteristics as a infoprovider.
    Create a update rule on Characteristic with ODS as a source and do general mapping.
    For step by step, pls refer..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/business-intelligence/g-i/how%20to%20implement%20flexible%20master%20data%20staging

  • Hard Delete all soft delete records (members) in Master Data Service (MDS) database

    Hi,
    I am using Master Data Service for couple of months now. I can load, update, merge and soft delete data in MDS. Occasionally we even have to hard delete data from MDS. If we keep on soft deleting records in a MDS table eventually there will be huge number
    of soft deleted records.
    Is there an easy way to hard delete all the soft deleted records from all MDS tables in a specific Model.
    Regards,
    Rehan

    We did develop a Transact SQL procedure for this using the staging interface. It works and can be used freely :)
    God Luck!
    Jan Isacsson
    USE [MDS]
    GO
    /****** Object: StoredProcedure [dbo].[AutoPurge] Script Date: 4/21/2015 10:39:21 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- To be used without warranty but it works even for collections
    -- Jan Isacsson (www.independent.se) 2015-04-21
    CREATE PROCEDURE [dbo].[AutoPurge]
    @modelName nvarchar(200) = 'PDWmReferenceData',
    @versionName nvarchar(200) = 'VERSION_1',
    @entityName nvarchar(200) = NULL
    AS
    DECLARE @name nvarchar(200)
    DECLARE @tableName nvarchar(200)
    DECLARE @stagingName nvarchar(200)
    DECLARE @collectionTable nvarchar(200)
    DECLARE @collectionMemberTable nvarchar(200)
    DECLARE @isFlat INT
    DECLARE @sqlIsFlat NVARCHAR(512)
    DECLARE @sqlGetEntityTable NVARCHAR(512)
    DECLARE @sqlGetCollectionTable NVARCHAR(512)
    DECLARE @sqlGetCollectionMemberTable NVARCHAR(512)
    DECLARE @sqlGetStagingBaseTable NVARCHAR(512)
    DECLARE @sqlLoadPurgeConsolidated NVARCHAR(512)
    DECLARE @sqlLoadPurgeLeaf NVARCHAR(512)
    DECLARE @sqlRinseStaging NVARCHAR(512)
    DECLARE @sqlPurgeCollections NVARCHAR(512)
    DECLARE @sqlCheckErrorStaging NVARCHAR(512)
    DECLARE @batchTagName NVARCHAR(512)
    DECLARE @executePurge NVARCHAR(512)
    DECLARE @errorMsg NVARCHAR(512)
    DECLARE @i INT
    DECLARE @id INT
    DECLARE leaf_entity_cursor CURSOR FOR
    select e.ID, e.Name from
    mdm.tblModel m,
    mdm.tblEntity e
    where
    e.Model_ID = m.ID
    and m.Name = @modelName
    DECLARE noleaf_entity_cursor CURSOR FOR
    select e.ID, e.Name from
    mdm.tblModel m,
    mdm.tblEntity e
    where
    e.Model_ID = m.ID
    and m.Name = @modelName
    and e.IsFlat = 0
    -- Leaf purge
    SET @batchTagName = '''AutoPurge'''
    OPEN leaf_entity_cursor
    FETCH NEXT FROM leaf_entity_cursor INTO @id, @name
    WHILE @@FETCH_STATUS = 0
    BEGIN TRY
    if @name = @entityName or @entityName is null
    BEGIN
    SET @sqlGetEntityTable = N'select @tableName = EntityTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
    EXEC sp_executesql
    @query = @sqlGetEntityTable,
    @params = N'@tableName NVARCHAR(100) OUTPUT',
    @tableName = @tableName OUTPUT
    SET @sqlGetStagingBaseTable = N'select @stagingName = StagingBase from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
    EXEC sp_executesql
    @query = @sqlGetStagingBaseTable,
    @params = N'@stagingName NVARCHAR(100) OUTPUT',
    @stagingName = @stagingName OUTPUT
    SET @sqlRinseStaging = N'delete from stg.' + @stagingName + '_Leaf where BatchTag = ' + @batchTagName
    EXEC sp_executesql @query = @sqlRinseStaging
    SET @i = @@RowCount
    SET @sqlLoadPurgeLeaf = N'insert into stg.' + @stagingName + '_Leaf (ImportType, ImportStatus_ID, BatchTag, Code) select 6, 0, ''AutoPurge'', Code from mdm.' + @tableName + ' where Status_ID = 2'
    EXEC sp_executesql @query = @sqlLoadPurgeLeaf
    SET @i = @@RowCount
    if @i != 0
    BEGIN
    SET @executePurge = N'EXEC stg.udp_' + @stagingName + '_Leaf @VersionName = ''' + @versionName + ''', @LogFlag = 1, @BatchTag = ' + @batchTagName
    EXEC sp_executesql @query = @executePurge
    SET @i = @@RowCount
    SET @sqlCheckErrorStaging = N'select ErrorCode from stg.' + @stagingName + '_Leaf where BatchTag = ' + @batchTagName + ' and ErrorCode != 0'
    EXEC sp_executesql @query = @sqlCheckErrorStaging
    SET @i = @@RowCount
    if @i != 0
    BEGIN
    SET @errorMsg = 'Error in purging leaf entity: ' + CONVERT(nvarchar,@id)
    RAISERROR (@errorMsg, 16, 1 )
    END
    END
    END
    FETCH NEXT FROM leaf_entity_cursor INTO @id, @name
    END TRY
    BEGIN CATCH
    SET @errorMsg = ERROR_MESSAGE()
    PRINT @errorMsg
    BREAK
    END CATCH
    -- Consolidated purge
    OPEN noleaf_entity_cursor
    FETCH NEXT FROM noleaf_entity_cursor INTO @id, @name
    WHILE @@FETCH_STATUS = 0
    BEGIN TRY
    if @name = @entityName or @entityName is null
    BEGIN
    SET @sqlGetEntityTable = N'select @tableName = HierarchyParentTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
    EXEC sp_executesql
    @query = @sqlGetEntityTable,
    @params = N'@tableName NVARCHAR(100) OUTPUT',
    @tableName = @tableName OUTPUT
    SET @sqlGetStagingBaseTable = N'select @stagingName = StagingBase from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
    EXEC sp_executesql
    @query = @sqlGetStagingBaseTable,
    @params = N'@stagingName NVARCHAR(100) OUTPUT',
    @stagingName = @stagingName OUTPUT
    SET @sqlRinseStaging = N'delete from stg.' + @stagingName + '_Consolidated where BatchTag = ' + @batchTagName
    EXEC sp_executesql @query = @sqlRinseStaging
    SET @i = @@RowCount
    SET @sqlLoadPurgeLeaf = N'insert into stg.' + @stagingName + '_Consolidated (ImportType, ImportStatus_ID, BatchTag, HierarchyName, Code) select 4, 0, ''AutoPurge'', ''' +@entityName + ''', Code from mdm.' + @tableName + ' where Status_ID = 2'
    EXEC sp_executesql @query = @sqlLoadPurgeLeaf
    SET @i = @@RowCount
    if @i != 0
    BEGIN
    SET @executePurge = N'EXEC stg.udp_' + @stagingName + '_Consolidated @VersionName = ''' + @versionName + ''', @LogFlag = 1, @BatchTag = ' + @batchTagName
    EXEC sp_executesql @query = @executePurge
    SET @i = @@RowCount
    SET @sqlCheckErrorStaging = N'select ErrorCode from stg.' + @stagingName + '_Consolidated where BatchTag = ' + @batchTagName + ' and ErrorCode != 0'
    EXEC sp_executesql @query = @sqlCheckErrorStaging
    SET @i = @@RowCount
    if @i != 0
    BEGIN
    SET @errorMsg = 'Error in purging consolidated entity: ' + CONVERT(nvarchar,@id)
    RAISERROR (@errorMsg, 16, 1 )
    END
    END
    SET @sqlGetCollectionTable = N'select @collectionTable = CollectionTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
    EXEC sp_executesql
    @query = @sqlGetCollectionTable,
    @params = N'@collectionTable NVARCHAR(100) OUTPUT',
    @collectionTable = @collectionTable OUTPUT
    SET @sqlGetCollectionMemberTable = N'select @collectionMemberTable = CollectionMemberTable from mdm.tblEntity where ID = ' + CONVERT(nvarchar,@id)
    EXEC sp_executesql
    @query = @sqlGetCollectionMemberTable,
    @params = N'@collectionMemberTable NVARCHAR(100) OUTPUT',
    @collectionMemberTable = @collectionMemberTable OUTPUT
    SET @sqlPurgeCollections = N'delete mdm.' + @collectionMemberTable + ' from mdm.' + @collectionTable + ' cn inner join mdm.' + @collectionMemberTable +
    ' cm on cm.Parent_CN_ID = cn.ID where cn.Status_ID = 2'
    EXEC sp_executesql @query = @sqlPurgeCollections
    SET @i = @@RowCount
    if @i != 0
    BEGIN
    SET @sqlPurgeCollections = N'delete from mdm.' + @collectionTable + ' where Status_ID = 2'
    EXEC sp_executesql @query = @sqlPurgeCollections
    SET @i = @@RowCount
    END
    END
    FETCH NEXT FROM noleaf_entity_cursor INTO @id, @name
    END TRY
    BEGIN CATCH
    SET @errorMsg = ERROR_MESSAGE()
    PRINT @errorMsg
    BREAK
    END CATCH
    CLOSE noleaf_entity_cursor
    DEALLOCATE noleaf_entity_cursor
    GO
    JAIS

Maybe you are looking for

  • All share options greyed out in FCPX

    I've been editing video on my iMac and sending it directly to YouTube for seveal weeks now, and just recently the entire Share menu is greyed out. The only thing I've done is install MacKeeper, which is a scanner and virus protection app. Anyone have

  • How to attach a document stored in Archive link in a notification

    Hi Friends, Is it possible to get the PDF file stored in Archive link and make it as an attachment in a notification. I think we need to get this PDF attachment and convert it into SOFM instance, then only we can make it as an attachment in notificat

  • Mini disc

    Can I put a mini disc in my MacBook Pro 17" without it getting stuck?

  • My 8826 tv out dont work

    Hello my MSI 8826 tv out dont work i use the RCA TV out but i dont see nothing in the tv ?( , are there some step for install this tv out?

  • ARD-Unix Command for Energy Saver Settings

    I need to take out the schedule for turning on and off 100 + iMacs. The setup was done with managed preferences in OSX server but cannot be taken off now. Is there a way to turn this off using a unix command with ARD? I've been doing one by one with