Resources

  Information

  Community

Sign in  | Join



Bookmark This
 
 
Skip Navigation Links
Home
Resource CenterExpand Resource Center
Research CenterExpand Research Center
BIG Resource List
Blog Zone
Forums
RequestsExpand Requests
About Us

Business Data Catalog (BDC) Information

Start here to learn about the BDC, and further your knowledge and research with a wealth of references available.





We are seeking a sponsor of this page or pages for this topic. You will be responsible for providing original content to help members learn about this Topic and in return your name or company will be featured in the title. Hint: This is a great way to get free advertising for your company. Your content will be reviewed by us and must be deemed worthy of course. Please email us at admin@sharepointsearch.com

The BDC is a generic set of components provided with the MOSS SharePoint Portal that makes the integration of external LOB (line of business systems like a CRM solution) into SharePoint easier. The components the BDC provides are multiple configurable Web Parts for listing and displaying the data, a search indexer (protocol handler) and a search query security trimmer. The BDC operates off of xml definition files which are used to define the connections and entities in the LOB system. For an example, I want to integrate the standard MS Adventure Works database into SP. I would write an xml file that would include the following overly simplified information:

o   Connection information – server, db, username, password

o   Entity Definition

  •  Product

    •  Finder Method (returns list of instances) - SELECT ProductID, Name, ProductNumber, ListPrice FROM Product

    • Specific Finder Method (returns exactly on instance) - SELECT ProductID, Name, ProductNumber, ListPrice FROM Product Where ProductID = @ProductID

    •  IDEnumerator Method(enumerator for search crawler – same as finder in this case) - SELECT ProductID, Name, ProductNumber, ListPrice FROM Product

    •  Access Checker Method (for query time security) - SELECT CAST(Rights as bigint) FROM Customers WHERE CustomerId = @CustomerId and UserName = @currentuser;

From the above information (and other information not shown) SP would be able to display products in a list web part using the Finder method and display a selected product in a form using the Specific Finder method. It uses the IDEnumerator method and Specific Finder methods to crawl the products and add them to the search index. During query time SP would take the returned search results and apply the Access Check method to each item to see if I have permission to access each item. NOTE: the BDC does not support indexing unstructured data like files in a document management system. New BDC editor tool: BDC Editor Tool.

FAQ: Business Data Catalog

This topic contains answers to commonly asked questions when working with the Business Data Catalog and the Business Data features. This topic is by no means complete and will be refreshed periodically with your questions.

Question: Added metadata, but unable to see entities in the Entity Picker?

Question: Where is the BdcMetadata.XSD file located?

Question: What is "Application Registry" in the Business Data Catalog object models?

Question: How can I get security trimmed results from a back-end method invocation?

Question: In what scenarios would I grant View permission on an entity without giving any permission on the application?

Question: Can I use GUIDs in the metadata?

Question: Where are the server logs? How can I use them to troubleshoot errors?

Question: How can I display a database field of type BLOB that stores image data via the Business Data Catalog?

Question: Added metadata, but unable to see entities in the Entity Picker?

Business data in lists and Business Data Web Parts are driven by Business Data Catalog permissions. The minimum permission you need on an entity to use it in clients is the Selectable in Clients right.

Note   Because Business Data Catalog is a Shared Service that is shared across site collections, site collection level security settings cannot be applied to it. Therefore, Site Settings has little relationship with Business Data Catalog permissions.

Question: Where is the BdcMetadata.XSD file located?

The Business Data Catalog provides a schema definition file (XSD) that defines the schema allowed in the XML file, and that defines the metadata for a business application. It is important for the XML documents to adhere to this schema.

You can find the BdcMetadata.XSD file in the \Bin directory of your Microsoft Office SharePoint Server 2007 installation, typically at <Root>\Program Files\Microsoft Office Server\12.0\Bin.

When authoring metadata in Microsoft Visual Studio 2005, copy the .xsd file to the working folder and set the SchemaReference attribute in the XML file to point to the .xsd file in the working folder. As a result, Visual Studio provides IntelliSense, which greatly simplifies editing.

Question: What is "Application Registry" in the Business Data Catalog object models?

The Business Data Catalog was originally named "Application Registry". That's why you see "Application Registry" in the namespace names and in the object model. When you see the name "Application Registry" in these contexts, you can assume it is the same as Business Data Catalog.

Question: How can I get security trimmed results from a back-end method invocation?

The UserContext filter limits the instances returned by a method to the current user’s context. This filter tells the Business Data Catalog to append the current Microsoft Windows user’s domain name and user name to the method call.

If a metadata author creates metadata that takes a user name as a user-controllable filter and returns sensitive personal data, a user may see another user's data. To avoid this, use the UserContext filter to pass in the user name to the method call.

Question: In what scenarios would I grant View permission on an entity without giving any permission on the application?

There are valid scenarios in which you may want to give a user View permissions on an entity without giving that user any permissions on the application. Consider the case of delegated administration. The Business Data Catalog allows an administrator to delegate the administration of any object to another user. For example, he or she (domain\admin) may authorize domain\xyz to administer Entity ABC. She does this by giving domain\xyz the Set Permissions right to Entity ABC. Domain\xyz can now give himself the View permission, which enables him to view data (entity instances) for that entity. Domain\xyz does not need to have any rights on other objects (such as the application or other entities in the application).

The View permission controls the user's ability to view the data associated with the entity, in contrast to the user's ability to view all metadata objects all the time. The applications and entities are viewable in the UI by default. The View permission is equivalent to having the Execute permission to execute methods on an entity or an entire application.

Question: Can I use GUIDs in the metadata?

GUIDs are first-class Business Data Catalog primitives. They can be used as Properties, DefaultValues, and Identifiers.

Question: Where are the server logs? How can I use them to troubleshoot errors?

If you get an error when you try to use a Business Data Web Part, a Business Data column, or the object model, enable diagnostic logging in Central Administration and check the Windows Event Viewer, or the Unified Logging Service (ULS) server log files. The Business Data Catalog writes messages and run-time exceptions to the event Log and in ULS log files.

The ULS log files contain a copy of the event log information and the stack trace. As a result, you may find the event logs are friendlier to use and understand than the ULS log files. However, if you need detailed information to debug the error, ULS log files may come in handy.

The Business Data Catalog creates a ULS log file every 30 minutes. You can find the log files in the following path: <drive>\Program Files\Common Files\Microsoft Shared\web server extensions\12\LOGS. ULS log files contain useful information about all the run-time exceptions and can help you identify problems. In the ULS log files, messages are categorized and contain the following fields:

  • Timestamp

  • PID: Web client errors appear under the w3wp.exe PID. Search and user profile import errors appear under mssdmin.exe PID.

  • TID

  • Product

  • Category: (the Category field is Business Data for Business Data Catalog–related errors)

  • EventID

  • Level

  • Message

  • Correlation

An easy way to find Business Data Catalog–related messages is to search for "metadataexception", "ApplicationRegistry", or "Exception" in the Message field, and then look under the Business Data category.

Question: How can I display a database field of type BLOB that stores image data via the Business Data Catalog?

This is not supported. In SharePoint Server 2007, Business Data Catalog does not provide BLOB support for databases.

collapse Article
Lessons Learnt on the BDC
Introduction to Microsoft Office SharePoint Server 2007
BDC and Security
collapse Blog
Christopher on SharePoint
Bob Mixon's Blog
Sahil Malik's blah blah Blog
Mart Muller's SharePoint Blog
Robin's SharePoint Blog
John Westworth
Eli Robillard's World of Blog - SharePoint 2007
SharePoint Content and Resources
collapse Discussion Forum
MSDN SharePoint Search Discussion Forum
collapse Forum
SharePoint Business Data Catalog
General SharePoint
collapse How To
Make Search Results Actionable
Writing a Custom Protocol Handler for SharePoint
Using the BDC with SSO
SharePoint Server 2007 Visual How To's
collapse Online Book
Planning and architecture for Office SharePoint Server, part 1
Deployment for Office SharePoint Server
collapse Presentation
OS303 — The Business Data Catalog Part 1
OS403 - The Business Data Catalog Part 2
SharePoint 2007: Search Deep Dive
collapse Product Documentation
Enabling Business Data Search
Searching Business Data Catalog
Business Data Catalog Security Trimmer
collapse Screencast
Retrieving Data Programmatically from the MOSS Business Data Catalog
collapse Tools and Add-ons
BDC Editor Tool
MOSS 2007 C# Protocol Handler
collapse Virtual Lab
Enterprise Search: Business Data Catalog Virtual Lab (Lab 7 of 8)
collapse Webcast
TechNet Webcast: Extending SharePoint Server 2007 Search Capabilities by Exposing Data with the Business Data Catalog (Level 300)
Deliver Business Intelligence in a search result
Stengths, Limitations, Solutions
MSDN Webcast: Office SharePoint Server 2007 Business Data Catalog (Part 1 of 2): Integrating Line-of-Business Data and Applications into Your Enterprise Portal (Level 200)
Extending search in Microsoft Office SharePoint Server 2007: Exposing line-of-business data with the Business Data Catalog
collapse Whitepaper
Deploying and Supporting Enterprise Search
   
SHAREPOINTSearch.com is not affiliated with or endorsed by the Microsoft Corporation.
SharePoint is a trademark of the Microsoft Corporation. See our Terms, Conditions and Privacy Statements.