<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>Business Connectivity Services</title>
        <link>http://www.lightningtools.com/blog/category/12.aspx</link>
        <description>Business Connectivity Services</description>
        <language>en-GB</language>
        <copyright>Lightning Tools</copyright>
        <managingEditor>support@lightningtools.com</managingEditor>
        <generator>Subtext Version 1.9.5.177</generator>
        <item>
            <title>Firebird and the Business Connectivity Services in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/11/22/firebird-and-the-business-connectivity-services-in-sharepoint-2010.aspx</link>
            <description>&lt;p&gt;In this walkthrough we will demonstrate how to integrate Firebird database with Microsoft SharePoint 2010 through ODBC and display Firebird data on SharePoint 2010 page. In order to do that we will describe how to create a new external content type by means of &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;BCS Meta Man&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;.&lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Prerequisites:      &lt;ul&gt;       &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;        &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;        &lt;li&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;BCS Meta Man&lt;/font&gt;&lt;/u&gt;&lt;/a&gt; &lt;/li&gt;        &lt;li&gt;Download and install &lt;span id="BugEvents"&gt;Firebird ODBC driver (Windows 32-bit Full Install) for Microsoft Windows 32-bit &lt;a href="http://www.firebirdsql.org/en/odbc-driver/"&gt;http://www.firebirdsql.org/en/odbc-driver/&lt;/a&gt; &lt;/span&gt;on a machine where BCS Meta Man runs &lt;/li&gt;        &lt;li&gt;Download and install &lt;span id="BugEvents"&gt;Firebird ODBC driver (Windows 64-bit Full Install) for Microsoft Windows 64-bit&lt;/span&gt; &lt;a href="http://www.firebirdsql.org/en/odbc-driver/"&gt;http://www.firebirdsql.org/en/odbc-driver/&lt;/a&gt; on a machine where SharePoint 2010 runs &lt;/li&gt;        &lt;li&gt;&lt;span id="BugEvents"&gt;Firebird client component (it’s a part of Firebird server installer) for Microsoft Windows 32-bit &lt;a href="http://www.firebirdsql.org/en/downloads/"&gt;http://www.firebirdsql.org/en/downloads/&lt;/a&gt; on a machine where BCS Meta Man runs&lt;/span&gt;  &lt;/li&gt;        &lt;li&gt;&lt;span id="BugEvents"&gt;Firebird client component (it’s a part of Firebird server installer) for Microsoft Windows 64-bit &lt;a href="http://www.firebirdsql.org/en/downloads/"&gt;http://www.firebirdsql.org/en/downloads/&lt;/a&gt; on a machine where SharePoint 2010 runs&lt;/span&gt; &lt;span&gt;&lt;/span&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/1_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Firebird client component installation" border="0" alt="Firebird client component installation" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/1_thumb.png" width="244" height="188" /&gt;&lt;/a&gt;  &lt;/li&gt;     &lt;/ul&gt;   &lt;/li&gt;    &lt;li&gt;Open Visual Studio 2010 &lt;/li&gt;    &lt;li&gt;Add a New Project &lt;/li&gt;    &lt;li&gt;Expand the “SharePoint” node, select “Lightning Tools (2010)” node and then the “BCS Meta Man” project type &lt;/li&gt;    &lt;li&gt;Give your project a name i.e FirebirdBCSMetaManDemo and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create FirebirdBCSMetaManDemo project" border="0" alt="Create FirebirdBCSMetaManDemo project" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/5_thumb.png" width="244" height="182" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;On the next dialog box, enter the name of where you want to deploy your model, and click “Finish” button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/6_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Deploy as a farm solution" border="0" alt="Deploy as a farm solution" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/6_thumb.png" width="244" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;If prompted, click “Trial” on the licensing dialog &lt;/li&gt;    &lt;li&gt;To show the “BCS Meta Man Data Source Explorer” we need to enable it from the Menu item, this new window can be docked so it doesn’t get in your way      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/8_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the BCS MetaMan data source explorer" border="0" alt="Open the BCS MetaMan data source explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/8_thumb.png" width="244" height="111" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click the “Add Connection” button to show the “Connection Dialog” &lt;/li&gt;    &lt;li&gt;Select “ODBC Server” as Data Source type, enter Firebird ODBC connection string (for example it can be “&lt;strong&gt;DbName=cygnus:C:\Program Files\Firebird\Firebird_2_5\examples\empbuild\EMPLOYEE.FDB; Driver=Firebird/InterBase(r) driver;Uid=SYSDBA;Pwd=masterkey;Trusted_Connection=true;”&lt;/strong&gt;), enter double quotes as left and right delimiters and “&lt;strong&gt;?&lt;/strong&gt;” as parameter symbol and click “Connect” button       &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Firebird ODBC connection string" border="0" alt="Firebird ODBC connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/10_thumb.png" width="244" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The Data Source Explorer will now be populated with your Firebird data      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="See the tables and views available to use" border="0" alt="See the tables and views available to use" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/11_thumb.png" width="244" height="212" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;We will be working with the ”DEPARTMENT” table, to add it to the Model , just drag it from the “Data Source Explorer” onto the “Diagram” &lt;/li&gt;    &lt;li&gt;When you drop the table you will be shown the following dialog, we should choose “Database , click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Choose the model type &amp;quot;Database&amp;quot;" border="0" alt="Choose the model type &amp;quot;Database&amp;quot;" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/13_thumb.png" width="244" height="117" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Accept the default entity name by clicking “Next”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/14_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Accept the default entity name" border="0" alt="Accept the default entity name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/14_thumb.png" width="244" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Accept the default “Identifiers” by clicking “Next”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/15_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Accept the Identifiers selected" border="0" alt="Accept the Identifiers selected" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/15_thumb.png" width="244" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Accept the default 3 methods to be created, click “Generate” (The default 3 methods are: “Finder” – Returns all items, “Specific Finder” – Returns a single item by identifier, “IdEnumerator” – Returns just the Identifiers for all of the items )      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Accept the methods" border="0" alt="Accept the methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/16_thumb.png" width="244" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new External list by selection on SharePoint page “Site Action”-&amp;gt;“More Options”-&amp;gt;“External List”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add a new External List" border="0" alt="Add a new External List" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/18_thumb.png" width="244" height="148" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/19_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the External Content Type" border="0" alt="Select the External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/19_thumb.png" width="218" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select our FirebirdBCSMetaManDemo.DEPARTMENT External Content Type, click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/20_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the the Department External Content Type" border="0" alt="Select the the Department External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/20_thumb.png" width="244" height="73" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click “Create” &lt;/li&gt;    &lt;li&gt;Your External System data from Firebird database is now displayed in the SharePoint External List      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/22_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Data from Firebird is now shown within SharePoint 2010" border="0" alt="External Data from Firebird is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/555488938a6f_12D3/22_thumb.png" width="244" height="157" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;support@lightningtools.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/308.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/11/22/firebird-and-the-business-connectivity-services-in-sharepoint-2010.aspx</guid>
            <pubDate>Tue, 22 Nov 2011 21:16:27 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/308.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/11/22/firebird-and-the-business-connectivity-services-in-sharepoint-2010.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/308.aspx</wfw:commentRss>
        </item>
        <item>
            <title>MySQL Stored Procedures and the Business Connectivity Services in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/16/mysql-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this walkthrough we will demonstrate how to integrate MySQL stored procedures with Microsoft SharePoint 2010 and display the data on SharePoint 2010 page. In order to do that we will describe how to create a new external content type by means of &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Download and install “Windows (x86, 32-bit), MSI Installer Connector-ODBC” &lt;a href="http://www.mysql.com/downloads/connector/odbc/"&gt;http://www.mysql.com/downloads/connector/odbc/&lt;/a&gt; on a machine where BCS Meta Man runs &lt;/li&gt;    &lt;li&gt;Download and install “Windows (x86, 64-bit), MSI Installer Connector-ODBC” &lt;a href="http://www.mysql.com/downloads/connector/odbc/"&gt;http://www.mysql.com/downloads/connector/odbc/&lt;/a&gt; on a machine where SharePoint 2010 runs &lt;/li&gt;    &lt;li&gt;MySQL stored procedures for CRUD operations such as:      &lt;ol&gt;       &lt;li&gt;CREATE DEFINER = 'root'@'localhost'          &lt;br /&gt;PROCEDURE classicmodels.get_all_offices()           &lt;br /&gt;BEGIN           &lt;br /&gt;  SELECT * FROM offices;           &lt;br /&gt;END &lt;/li&gt;        &lt;li&gt;CREATE DEFINER = 'root'@'localhost'          &lt;br /&gt;PROCEDURE classicmodels.get_office_by_id(IN p_id INT)           &lt;br /&gt;BEGIN           &lt;br /&gt;SELECT * FROM offices WHERE officeCode=p_id;           &lt;br /&gt;END &lt;/li&gt;        &lt;li&gt;CREATE DEFINER = 'root'@'localhost'          &lt;br /&gt;PROCEDURE classicmodels.get_office_ids()           &lt;br /&gt;BEGIN           &lt;br /&gt;SELECT officeCode FROM offices;           &lt;br /&gt;END &lt;/li&gt;        &lt;li&gt;CREATE DEFINER = 'root'@'localhost'          &lt;br /&gt;PROCEDURE classicmodels.create_office(IN p_id INT, IN p_city VARCHAR(50),           &lt;br /&gt;IN p_phone VARCHAR(50), IN p_address_line1 VARCHAR(50),           &lt;br /&gt;IN p_address_line2 VARCHAR(50), IN p_state VARCHAR(50),           &lt;br /&gt;IN p_country VARCHAR(50), IN p_postal_code VARCHAR(15),           &lt;br /&gt;IN p_territory VARCHAR(10))           &lt;br /&gt;BEGIN           &lt;br /&gt;INSERT INTO offices values(p_id, p_city, p_phone, p_address_line1, p_address_line2,           &lt;br /&gt;  p_state, p_country, p_postal_code, p_territory);           &lt;br /&gt;END &lt;/li&gt;        &lt;li&gt;CREATE DEFINER = 'root'@'localhost'          &lt;br /&gt;PROCEDURE classicmodels.update_office(IN p_id INT, IN p_city VARCHAR(50),           &lt;br /&gt;IN p_phone VARCHAR(50), IN p_address_line1 VARCHAR(50),           &lt;br /&gt;IN p_address_line2 VARCHAR(50), IN p_state VARCHAR(50),           &lt;br /&gt;IN p_country VARCHAR(50), IN p_postal_code VARCHAR(15),           &lt;br /&gt;IN p_territory VARCHAR(10))           &lt;br /&gt;BEGIN           &lt;br /&gt;UPDATE offices SET city=p_city, phone=p_phone, addressLine1=p_address_line1,           &lt;br /&gt;  addressLine2=p_address_line2, state=p_state, country=p_country, postalCode=p_postal_code,           &lt;br /&gt;   territory=p_territory WHERE officecode=p_id;           &lt;br /&gt;END &lt;/li&gt;        &lt;li&gt;CREATE DEFINER = 'root'@'localhost'          &lt;br /&gt;PROCEDURE classicmodels.delete_office(IN p_id INT)           &lt;br /&gt;BEGIN           &lt;br /&gt;DELETE FROM offices WHERE officecode = p_id;           &lt;br /&gt;END &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open Visual Studio 2010 &lt;/li&gt;    &lt;li&gt;Add a New Project &lt;/li&gt;    &lt;li&gt;Expand the “SharePoint” node, select “Lightning Tools (2010)” node and then the “BCS Meta Man” project type &lt;/li&gt;    &lt;li&gt;Give your project a name i.e MySQLStoredProceduresBCSMetaManDemo and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create MySQLStoredProceduresBCSMetaManDemo project" border="0" alt="Create MySQLStoredProceduresBCSMetaManDemo project" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/4_thumb.png" width="244" height="170" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;On the next dialog box, enter the name of where you want to deploy your model, and click “Finish” button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Deploy as a farm solution" border="0" alt="Deploy as a farm solution" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/5_thumb.png" width="244" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;If prompted, click “Trial” on the licensing dialog &lt;/li&gt;    &lt;li&gt;To show the “BCS Meta Man Data Source Explorer” we need to enable it from the Menu item, this new window can be docked so it doesn’t get in your way      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/7_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the BCS Meta Man Data Source Explorer" border="0" alt="Open the BCS Meta Man Data Source Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/7_thumb.png" width="244" height="95" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click the “Add Connection” button to show the “Connection Dialog” &lt;/li&gt;    &lt;li&gt;Select “ODBC Server” as Data Source type, enter MySQL ODBC connection string (for example it can be “&lt;strong&gt;Driver={MySQL ODBC 5.1 Driver};Server=taurus;Port=3306;Database=classicmodels; User=root;Password=12345;Trusted_Connection=yes;&lt;/strong&gt;”), enter “&lt;strong&gt;`&lt;/strong&gt;” as left and right delimiters and “&lt;strong&gt;?&lt;/strong&gt;” as parameter symbol and click “Connect” button       &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/9_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="MySQL ODBC connection string" border="0" alt="MySQL ODBC connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/9_thumb.png" width="244" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The Data Source Explorer will now be populated with your MySQL data      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="See the stored procedures available to use" border="0" alt="See the stored procedures available to use" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/10_thumb.png" width="244" height="141" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Drag and drop your Finder Stored Procedure onto the design surface and enter External Content type name, i.e “Office”, click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop a Finder stored procedure and Enter External Content type name" border="0" alt="Drag and drop a Finder stored procedure and Enter External Content type name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/11_thumb.png" width="244" height="84" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Choose the Finder as the method type and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/12_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Choose the Finder as the method type" border="0" alt="Choose the Finder as the method type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/12_thumb.png" width="244" height="97" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will be created on the Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type created on diagram " border="0" alt="External Content Type created on diagram " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/13_thumb.png" width="244" height="109" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;In order to set an identifier right-click on the External Content Type, select “Manage External Content type” menu item      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/14_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Manage External Content type" border="0" alt="Manage External Content type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/14_thumb.png" width="244" height="68" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click “Edit Identifiers” button on the “Entity Management” dialog, select an identifier and click “OK” and “Update” button then      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/15_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Set identifier " border="0" alt="Set identifier " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/15_thumb.png" width="244" height="159" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new identifier      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with identifier" border="0" alt="External Content Type with identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/16_thumb.png" width="244" height="117" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;From the “BCS Meta Man Data Source Explorer” drag and drop your Specific Finder stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/17_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Specific Finder stored procedure onto existing External Content Type" border="0" alt="Drag and drop Specific Finder stored procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/17_thumb.png" width="244" height="101" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The “Stored Procedure Configuration” dialog will be displayed. Select “SpecificFinder” as the Method Type. Select the first Parameter – p_id and set the Filter Type as Comparison and the Default Value as ‘0’. Click “OK”.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring a Specific Finder stored procedure" border="0" alt="Configuring a Specific Finder stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/18_thumb.png" width="244" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Specific Finder Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/19_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with Finder and Specific Finder methods" border="0" alt="External Content Type with Finder and Specific Finder methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/19_thumb.png" width="244" height="137" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next drag and drop the Id Enumerator stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/20_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Id Enumerator Stored Procedure onto existing External Content Type" border="0" alt="Drag and drop Id Enumerator Stored Procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/20_thumb.png" width="244" height="103" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select “IdEnumerator” as the Method Type, Click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Id Enumerator stored procedure" border="0" alt="Configuring Id Enumerator stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/21_thumb.png" width="244" height="97" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Id Enumerator Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/22_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with Finder, Specific Finder and ID Enumerator methods" border="0" alt="External Content Type with Finder, Specific Finder and ID Enumerator methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/22_thumb.png" width="244" height="151" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;From the “BCS Meta Man Data Source Explorer” drag and drop your Creator stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Creator stored procedure onto existing External Content Type" border="0" alt="Drag and drop Creator stored procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/23_thumb.png" width="244" height="109" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The “Stored Procedure Configuration” dialog will be displayed. Select “Creator” as the Method Type. For each Parameter select the appropriate column to map it to. Click “OK”.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/24_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Creator stored procedure" border="0" alt="Configuring Creator stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/24_thumb.png" width="229" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Creator Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/25_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/25_thumb.png" width="244" height="167" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next drag and drop your Updater stored procedure onto the existing External Content Type &lt;/li&gt;    &lt;li&gt;Again the “Stored Procedure Configuration” dialog will be displayed. Select “Updater” as the Method Type. For each Parameter select the appropriate column to map it to. Click “OK”. &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Updater Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/28_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator and Updater methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator and Updater methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/28_thumb.png" width="244" height="182" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Finally drag and drop your Deleter stored procedure onto the existing External Content Type &lt;/li&gt;    &lt;li&gt;Again the “Stored Procedure Configuration” dialog will be displayed. Select “Deleter” as the Method Type. Click “OK”. &lt;/li&gt;    &lt;li&gt;The complete External Content Type will look like the following      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/31_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator, Updater and Deleter methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator, Updater and Deleter methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/31_thumb.png" width="244" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy The External Content Type, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new External list by selection on SharePoint page “Site Action”-&amp;gt;“More Options…”-&amp;gt;“External List”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/33_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add a new external list" border="0" alt="Add a new external list" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/33_thumb.png" width="244" height="148" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Give your External List a name and Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/34_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the available External Content Type" border="0" alt="Select the available External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/34_thumb.png" width="214" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select created MySQLStoredProceduresBCSMetaManDemo.Office External Content Type, click “OK”. Click “Create” button then.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/35_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select Office External Content Type" border="0" alt="Select Office External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/35_thumb.png" width="244" height="63" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The external data provided by MySQL stored procedure is now displayed in the SharePoint External List      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/36_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External data provided by MySQL stored procedure is now shown within SharePoint 2010" border="0" alt="External data provided by MySQL stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/36_thumb.png" width="244" height="103" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;You can hover over the first column of your list and you’ll see a drop down appear. If you click the drop down arrow you’ll get a number of options for that particular row of data – one of which will be View Item.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/37_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View items through External List" border="0" alt="View items through External List" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/37_thumb.png" width="244" height="55" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;You will be presented with the View Item dialog      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/38_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View Item dialog" border="0" alt="View Item dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/38_thumb.png" width="244" height="197" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Now click “Edit item” on the ribbon of the dialog. This option is only available if you create an Updater method for your External Content Type. Clicking on this link will open up a dialog form that allows you to edit that row of data and save it.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/39_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Edit Item dialog" border="0" alt="Edit Item dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/39_thumb.png" width="244" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;While viewing the external list, if you click the Items tab on the ribbon you’ll see a New Item button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/40_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add new data to MySQL database through the external list" border="0" alt="Add new data to MySQL database through the external list" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/40_thumb.png" width="244" height="85" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;This will bring up the “New Item” dialog where you can add a new Office. We will enter information about new Office and click “Save”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/41_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="New Item Dialog" border="0" alt="New Item Dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/41_thumb.png" width="244" height="211" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;This will insert a new row directly to your MySQL database      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/42_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Updated External data provided by MySQL stored procedure is now shown within SharePoint 2010" border="0" alt="Updated External data provided by MySQL stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/MySQL-Stored-Procedures-and-the-Business_14C0/42_thumb.png" width="244" height="104" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;support@lightningtools.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/302.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/16/mysql-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx</guid>
            <pubDate>Fri, 16 Sep 2011 15:54:09 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/302.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/16/mysql-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/302.aspx</wfw:commentRss>
        </item>
        <item>
            <title>BCS filters and DB2 Stored Procedures with Parameters in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/14/bcs-filters-and-db2-stored-procedures-with-parameters-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this tutorial we will show you how to connect to a DB2 Database using &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;BCS Meta Man&lt;/font&gt;&lt;/u&gt;&lt;/a&gt; and a Stored Procedure to return filtered data to a SharePoint Business Data List. In this walkthrough we will be creating a Finder Method with filters so our DB2 Stored Procedure needs to have parameters defined.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Download and install “IBM Data Server Runtime Client (Windows 32-bit AMD and Intel x86)” &lt;a href="http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217"&gt;http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217&lt;/a&gt; on a machine where BCS Meta Man runs &lt;/li&gt;    &lt;li&gt;Download and install “IBM Data Server Runtime Client (Windows AMD64 and Intel EM64T)” &lt;a href="http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217"&gt;http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217&lt;/a&gt; on a machine where SharePoint 2010 runs &lt;/li&gt;    &lt;li&gt;DB2 stored procedure such as:      &lt;ol&gt;       &lt;li&gt;CREATE PROCEDURE GET_EMPLOYEES_FILTERED(IN P_FIRST_NAME VARCHAR(12), IN P_BONUS DECIMAL(9,2))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN  &lt;br /&gt;DECLARE v_employees CURSOR WITH RETURN for  &lt;br /&gt;select * from EMPLOYEE where FIRSTNME like '%' || P_FIRST_NAME || '%' and BONUS &amp;gt; P_BONUS;           &lt;br /&gt;OPEN v_employees;           &lt;br /&gt;END P1 &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open Visual Studio 2010 &lt;/li&gt;    &lt;li&gt;Add a New Project &lt;/li&gt;    &lt;li&gt;Expand the “SharePoint” node, select “Lightning Tools (2010)” node and then the “BCS Meta Man” project type &lt;/li&gt;    &lt;li&gt;Give your project a name i.e BCSMetaManFilteredDB2StoredProcedure and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create BCSMetaManFilteredDB2StoredProcedure project" border="0" alt="Create BCSMetaManFilteredDB2StoredProcedure project" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/4_thumb.png" width="244" height="174" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;On the next dialog box, enter the name of where you want to deploy your model, and click “Finish” button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Deploy as a farm solution" border="0" alt="Deploy as a farm solution" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/5_thumb.png" width="244" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;If prompted, click “Trial” on the licensing dialog &lt;/li&gt;    &lt;li&gt;To show the “BCS Meta Man Data Source Explorer” we need to enable it from the Menu item, this new window can be docked so it doesn’t get in your way      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/7_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the BCS Meta Man Data Source Explorer" border="0" alt="Open the BCS Meta Man Data Source Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/7_thumb.png" width="244" height="122" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click the “Add Connection” button to show the “Connection Dialog” &lt;/li&gt;    &lt;li&gt;Select “ODBC Server” as Data Source type, enter DB2 ODBC connection string (for example it can be “&lt;strong&gt;Driver={IBM DB2 ODBC DRIVER};Database=SAMPLE; Hostname=cygnus;port=50000;Protocol=TCPIP;Uid=Administrator;Pwd=12345;Trusted_Connection=false;&lt;/strong&gt;”), enter double quotes as left and right delimiters and “&lt;strong&gt;?&lt;/strong&gt;” as parameter symbol and click “Connect” button.       &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/9_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="DB2 ODBC connection string" border="0" alt="DB2 ODBC connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/9_thumb.png" width="244" height="201" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The Data Source Explorer will now be populated with your DB2 data      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="See the stored procedures available to use" border="0" alt="See the stored procedures available to use" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/10_thumb.png" width="244" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Drag and drop your Finder Stored Procedure with parameters onto the design surface and enter External Content type name, i.e “FilteredEmployee”, click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop a Finder stored procedure and Enter External Content type name" border="0" alt="Drag and drop a Finder stored procedure and Enter External Content type name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/11_thumb.png" width="244" height="105" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select the Method Type as “Finder’' &lt;/li&gt;    &lt;li&gt;Select the first Parameter (p_first_name) and set it’s Filter Type to Comparison and the Default Value to ‘A’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Finder DB2 stored procedure and first parameter" border="0" alt="Configuring Finder DB2 stored procedure and first parameter" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/13_thumb.png" width="244" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next select the second Parameter (p_bonus) and also set it’s Filter Type to Comparison and the Default Value to ‘100’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/14_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Finder DB2 stored procedure and second parameter" border="0" alt="Configuring Finder DB2 stored procedure and second parameter" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/14_thumb.png" width="244" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click ‘OK’ &lt;/li&gt;    &lt;li&gt;The External Content Type will be created on the Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type created on diagram " border="0" alt="External Content Type created on diagram " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/16_thumb.png" width="244" height="90" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;In order to set an identifier right-click on the External Content Type, select “Manage External Content type” menu item      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/17_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Manage External Content type" border="0" alt="Manage External Content type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/17_thumb.png" width="244" height="55" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click “Edit Identifiers” button on the “Entity Management” dialog, select an identifier and click “OK” and “Update” button then      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Set identifier" border="0" alt="Set identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/18_thumb.png" width="244" height="159" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new identifier      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/19_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with identifier" border="0" alt="External Content Type with identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/19_thumb.png" width="244" height="100" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new Business Data List Web Part to your SharePoint page      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add Business Data List Web Part " border="0" alt="Add Business Data List Web Part " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/21_thumb.png" width="244" height="111" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click on the ‘Open the tool pane’ link &lt;/li&gt;    &lt;li&gt;Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the picker to select your External Content Type" border="0" alt="Open the picker to select your External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/23_thumb.png" width="244" height="165" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select our ‘BCSMetaManFilteredDB2StoredProcedure.FilteredEmployee’ External Content Type, click ‘OK’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/24_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the FilteredEmployee External Content Type" border="0" alt="Select the FilteredEmployee External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/24_thumb.png" width="244" height="59" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click ‘OK’ on the tool pane &lt;/li&gt;    &lt;li&gt;Click the ‘Add’ link on the Business Data List Web Part to add the second Filter option      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/26_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="To use multiple BCS filters click the Add link" border="0" alt="To use multiple BCS filters click the Add link" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/26_thumb.png" width="244" height="44" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Change the second Filter to be the P_BONUS and enter values for the filters and click ‘Retrieve Data’ &lt;/li&gt;    &lt;li&gt;Your DB2 data provided by Stored Procedure is now displayed in the SharePoint Web Part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/28_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View your filtered data provided by DB2 stored procedure" border="0" alt="View your filtered data provided by DB2 stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/bbdff1fff509_2B3F/28_thumb.png" width="244" height="51" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;support@lightningtools.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/301.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/14/bcs-filters-and-db2-stored-procedures-with-parameters-in-sharepoint.aspx</guid>
            <pubDate>Wed, 14 Sep 2011 20:11:45 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/301.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/14/bcs-filters-and-db2-stored-procedures-with-parameters-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/301.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Business Connectivity Service Associations using DB2 Stored Procedures in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/13/business-connectivity-service-associations-using-db2-stored-procedures-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this walkthrough we will demonstrate you how to connect to DB2 Database and use stored procedures to create an association between two External Content Types using &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt;.&lt;/p&gt;  &lt;p&gt;We are going to follow on from the ‘&lt;a href="http://lightningtools.com/blog/archive/2011/09/09/db2-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;DB2 Stored Procedures and the Business Connectivity Services in SharePoint 2010&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;’&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Download and install “IBM Data Server Runtime Client (Windows 32-bit AMD and Intel x86)” &lt;a href="http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217"&gt;http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217&lt;/a&gt; on a machine where BCS Meta Man runs &lt;/li&gt;    &lt;li&gt;Download and install “IBM Data Server Runtime Client (Windows AMD64 and Intel EM64T)” &lt;a href="http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217"&gt;http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217&lt;/a&gt; on a machine where SharePoint 2010 runs &lt;/li&gt;    &lt;li&gt;DB2 stored procedures  such as:      &lt;ol&gt;       &lt;li&gt;CREATE PROCEDURE GET_ALL_DEPARTMENTS()          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_departments CURSOR WITH RETURN for           &lt;br /&gt;SELECT * FROM DEPARTMENT;           &lt;br /&gt;OPEN v_departments;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE GET_DEPARTMENT_BY_ID(IN P_ID CHAR(3))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_departments CURSOR WITH RETURN for           &lt;br /&gt;select * from DEPARTMENT where DEPTNO=P_ID;           &lt;br /&gt;OPEN v_departments;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE GET_ALL_EMPLOYEES()          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_employees CURSOR WITH RETURN for           &lt;br /&gt;SELECT * FROM EMPLOYEE;           &lt;br /&gt;OPEN v_employees;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE GET_EMPLOYEE_BY_ID(IN P_ID CHAR(6))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_employees CURSOR WITH RETURN for           &lt;br /&gt;select * from EMPLOYEE where EMPNO=P_ID;           &lt;br /&gt;OPEN v_employees;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE GET_EMPLOYEE_BY_DEPARTMENT_ID(IN P_ID CHAR(3))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_employees CURSOR WITH RETURN for           &lt;br /&gt;select * from EMPLOYEE where WORKDEPT=P_ID;           &lt;br /&gt;OPEN v_employees;           &lt;br /&gt;END P1 &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Using the ‘&lt;a href="http://lightningtools.com/blog/archive/2011/09/09/db2-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;DB2 Stored Procedures and the Business Connectivity Services in SharePoint 2010&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;’ Tutorial create two External Content Types “Department” and “Employee” with Finder (Read List operation) and SpecificFinder (Read Item operation) methods only. &lt;/li&gt;    &lt;li&gt;You should have the following External Content Types on your Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/2_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Both External Content Types on the design surface" border="0" alt="Both External Content Types on the design surface" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/2_thumb.png" width="244" height="98" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Switch to the ‘Toolbox’ pane in Visual Studio (Ctrl-Alt-X) &lt;/li&gt;    &lt;li&gt;Select the ‘Association’ toolbox item from the list      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the Association toolbox control" border="0" alt="Select the Association toolbox control" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/4_thumb.png" width="244" height="83" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;With the Association selected, Click and Drag from ‘Department’ to ‘Employee’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and Drop between your two External Content Types" border="0" alt="Drag and Drop between your two External Content Types" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/5_thumb.png" width="244" height="97" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;When you release the ‘Association Configuration’ dialog will show &lt;/li&gt;    &lt;li&gt;Switch back to the ‘BCS Meta Man Data Source Explorer’ tool window pane &lt;/li&gt;    &lt;li&gt;Drag the Association Stored Procedure onto the Arrow in the ‘Association Configuration’ dialog, it will turn green when OK to release      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/8_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and Drop the DB2 Association Stored Procedure" border="0" alt="Drag and Drop the DB2 Association Stored Procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/8_thumb.png" width="244" height="87" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The dialog will update with the selected Stored Procedure      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/9_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Association Configuration dialog" border="0" alt="Association Configuration dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/9_thumb.png" width="244" height="176" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select ‘P_ID’ in the Parameter and ‘DEPTNO’ in the Identifier drop-down list boxes, Click ‘Save’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Map the DB2 stored procedure parameter to identifier" border="0" alt="Map the DB2 stored procedure parameter to identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/10_thumb.png" width="244" height="176" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The diagram will update to show an arrow indicating we have an association between the two External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Association has been created" border="0" alt="Association has been created" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/11_thumb.png" width="244" height="99" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new Business Data List Web Part to your SharePoint page      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add Business Data List Web Part " border="0" alt="Add Business Data List Web Part " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/13_thumb.png" width="244" height="111" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click on the ‘Open the tool pane’ link &lt;/li&gt;    &lt;li&gt;Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/15_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the picker to select your External Content Type" border="0" alt="Open the picker to select your External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/15_thumb.png" width="244" height="165" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select our ‘BCSMetaMan1.Department’ External Content Type, click OK      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the Department External Content Type" border="0" alt="Select the Department External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/16_thumb.png" width="244" height="78" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click ‘OK’ on the tool pane &lt;/li&gt;    &lt;li&gt;The external data provided by DB2 stored procedure is now displayed in the SharePoint Web Part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External data provided by DB2 stored procedure is now shown within SharePoint 2010" border="0" alt="External data provided by DB2 stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/18_thumb.png" width="244" height="125" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next, Add a new ‘Business Data Related List’ Web Part to the page &lt;/li&gt;    &lt;li&gt;Configure the Web Part to use the ‘BCSMetaMan1.Employee’ External Content Type &lt;/li&gt;    &lt;li&gt;The Web Part will display a message saying the following      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Need to setup web part connection" border="0" alt="Need to setup web part connection" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/21_thumb.png" width="244" height="33" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;To do this we can set up the connection using the small arrow from the top right of our Web Part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/22_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Use a web part menu to create a connection" border="0" alt="Use a web part menu to create a connection" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/22_thumb.png" width="244" height="105" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Once this is done we can click on the arrows next to an item in our ‘Department’ web part and the employees related to this department will display on our ‘Employee’ web part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Related list web part now shows the association data provided by DB2 stored procedure" border="0" alt="Related list web part now shows the association data provided by DB2 stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/470b5ebbcb16_1069/23_thumb.png" width="244" height="138" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;&lt;u&gt;support@lightningtools.com&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/300.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/13/business-connectivity-service-associations-using-db2-stored-procedures-in-sharepoint.aspx</guid>
            <pubDate>Tue, 13 Sep 2011 13:15:09 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/300.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/13/business-connectivity-service-associations-using-db2-stored-procedures-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/300.aspx</wfw:commentRss>
        </item>
        <item>
            <title>DB2 Stored Procedures and the Business Connectivity Services in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/09/db2-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this walkthrough we will demonstrate how to integrate DB2 stored procedures with Microsoft SharePoint 2010 and display the data on SharePoint 2010 page. In order to do that we will describe how to create a new external content type by means of &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Download and install “IBM Data Server Runtime Client (Windows 32-bit AMD and Intel x86)” &lt;a href="http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217"&gt;http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217&lt;/a&gt; on a machine where BCS Meta Man runs &lt;/li&gt;    &lt;li&gt;Download and install “IBM Data Server Runtime Client (Windows AMD64 and Intel EM64T)” &lt;a href="http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217"&gt;http://www-01.ibm.com/support/docview.wss?rs=4020&amp;amp;uid=swg21385217&lt;/a&gt; on a machine where SharePoint 2010 runs &lt;/li&gt;    &lt;li&gt;DB2 stored procedures for CRUD operations such as:      &lt;ol&gt;       &lt;li&gt;CREATE PROCEDURE GET_ALL_DEPARTMENTS()          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_departments CURSOR WITH RETURN for           &lt;br /&gt;SELECT * FROM DEPARTMENT;           &lt;br /&gt;OPEN v_departments;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE GET_DEPARTMENT_BY_ID(IN P_ID CHAR(3))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_departments CURSOR WITH RETURN for           &lt;br /&gt;select * from DEPARTMENT where DEPTNO=P_ID;           &lt;br /&gt;OPEN v_departments;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE GET_DEPARTMENT_IDS()          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;DECLARE v_department_ids CURSOR WITH RETURN for           &lt;br /&gt;select DEPTNO from DEPARTMENT;           &lt;br /&gt;OPEN v_department_ids;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE CREATE_DEPARTMENT(IN P_ID CHAR(3), IN P_NAME VARCHAR(36), IN P_MGRNO CHAR(6), IN P_ADMID CHAR(3), IN P_LOCATION CHAR(16))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;insert into DEPARTMENT values(P_ID, P_NAME, P_MGRNO, P_ADMID, P_LOCATION);           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE UPDATE_DEPARTMENT(IN P_ID CHAR(3), IN P_NAME VARCHAR(36), IN P_MGRNO CHAR(6), IN P_ADMID CHAR(3), IN P_LOCATION CHAR(16))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;update DEPARTMENT set DEPTNAME=P_NAME, MGRNO=P_MGRNO, ADMRDEPT=P_ADMID, LOCATION=P_LOCATION where DEPTNO=P_ID;           &lt;br /&gt;END P1 &lt;/li&gt;        &lt;li&gt;CREATE PROCEDURE DELETE_DEPARTMENT(IN P_ID CHAR(3))          &lt;br /&gt;DYNAMIC RESULT SETS 1           &lt;br /&gt;P1: BEGIN           &lt;br /&gt;delete from DEPARTMENT where DEPTNO=P_ID;           &lt;br /&gt;END P1 &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open Visual Studio 2010 &lt;/li&gt;    &lt;li&gt;Add a New Project &lt;/li&gt;    &lt;li&gt;Expand the “SharePoint” node, select “Lightning Tools (2010)” node and then the “BCS Meta Man” project type &lt;/li&gt;    &lt;li&gt;Give your project a name i.e DB2StoredProceduresBCSMetaManDemo and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create DB2StoredProceduresBCSMetaManDemo project" border="0" alt="Create DB2StoredProceduresBCSMetaManDemo project" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/4_thumb.png" width="244" height="170" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;On the next dialog box, enter the name of where you want to deploy your model, and click “Finish” button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Deploy as a farm solution" border="0" alt="Deploy as a farm solution" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/5_thumb.png" width="244" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;If prompted, click “Trial” on the licensing dialog &lt;/li&gt;    &lt;li&gt;To show the “BCS Meta Man Data Source Explorer” we need to enable it from the Menu item, this new window can be docked so it doesn’t get in your way      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/7_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the BCS Meta Man Data Source Explorer" border="0" alt="Open the BCS Meta Man Data Source Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/7_thumb.png" width="244" height="90" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click the “Add Connection” button to show the “Connection Dialog” &lt;/li&gt;    &lt;li&gt;Select “ODBC Server” as Data Source type, enter DB2 ODBC connection string (for example it can be “&lt;strong&gt;Driver={IBM DB2 ODBC DRIVER};Database=SAMPLE;Hostname=cygnus;port=50000;Protocol=TCPIP;Uid=Administrator;Pwd=12345;Trusted_Connection=false;&lt;/strong&gt;”), enter double quotes as left and right delimiters and “&lt;strong&gt;?&lt;/strong&gt;” as parameter symbol and click “Connect” button.       &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/9_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="DB2 ODBC connection string" border="0" alt="DB2 ODBC connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/9_thumb.png" width="244" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The Data Source Explorer will now be populated with your DB2 data      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="See the stored procedures available to use" border="0" alt="See the stored procedures available to use" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/10_thumb.png" width="244" height="132" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Drag and drop your Finder Stored Procedure onto the design surface and enter External Content type name, i.e “Department”, click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop a Finder stored procedure and Enter External Content type name" border="0" alt="Drag and drop a Finder stored procedure and Enter External Content type name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/11_thumb.png" width="244" height="100" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Choose the Finder as the method type and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/12_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Choose the Finder as the method type" border="0" alt="Choose the Finder as the method type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/12_thumb.png" width="338" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will be created on the Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type created on diagram " border="0" alt="External Content Type created on diagram " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/13_thumb.png" width="301" height="117" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;In order to set an identifier right-click on the External Content Type, select “Manage External Content type” menu item      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/14_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Manage External Content type" border="0" alt="Manage External Content type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/14_thumb.png" width="244" height="54" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click “Edit Identifiers” button on the “Entity Management” dialog, select an identifier and click “OK” and “Update” button then      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/15_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Set identifier " border="0" alt="Set identifier " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/15_thumb.png" width="244" height="159" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new identifier      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with identifier" border="0" alt="External Content Type with identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/16_thumb.png" width="302" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;From the “BCS Meta Man Data Source Explorer” drag and drop your Specific Finder stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/17_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Specific Finder stored procedure onto existing External Content Type" border="0" alt="Drag and drop Specific Finder stored procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/17_thumb.png" width="244" height="93" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The “Stored Procedure Configuration” dialog will be displayed. Select “SpecificFinder” as the Method Type. Select the first Parameter – P_ID and set the Filter Type as Comparison and the Default Value as ‘0’. Click “OK”.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring a Specific Finder stored procedure" border="0" alt="Configuring a Specific Finder stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/18_thumb.png" width="244" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Specific Finder Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/19_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with Finder and Specific Finder methods" border="0" alt="External Content Type with Finder and Specific Finder methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/19_thumb.png" width="300" height="150" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next drag and drop the Id Enumerator stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/20_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Id Enumerator Stored Procedure onto existing External Content Type" border="0" alt="Drag and drop Id Enumerator Stored Procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/20_thumb.png" width="244" height="99" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select “IdEnumerator” as the Method Type, Click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Id Enumerator stored procedure" border="0" alt="Configuring Id Enumerator stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/21_thumb.png" width="338" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Id Enumerator Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/22_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with Finder, Specific Finder and ID Enumerator methods" border="0" alt="External Content Type with Finder, Specific Finder and ID Enumerator methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/22_thumb.png" width="302" height="164" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;From the “BCS Meta Man Data Source Explorer” drag and drop your Creator stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Creator stored procedure onto existing External Content Type" border="0" alt="Drag and drop Creator stored procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/23_thumb.png" width="244" height="104" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The “Stored Procedure Configuration” dialog will be displayed. Select “Creator” as the Method Type. For each Parameter select the appropriate column to map it to. Click “OK”.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/24_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Creator stored procedure" border="0" alt="Configuring Creator stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/24_thumb.png" width="244" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Creator Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/25_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/25_thumb.png" width="299" height="181" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next drag and drop your Updater stored procedure onto the existing External Content Type &lt;/li&gt;    &lt;li&gt;Again the “Stored Procedure Configuration” dialog will be displayed. Select “Updater” as the Method Type. For each Parameter select the appropriate column to map it to. Click “OK”. &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Updater Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/28_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator and Updater methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator and Updater methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/28_thumb.png" width="299" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Finally drag and drop your Deleter stored procedure onto the existing External Content Type &lt;/li&gt;    &lt;li&gt;Again the “Stored Procedure Configuration” dialog will be displayed. Select “Deleter” as the Method Type. Click “OK”. &lt;/li&gt;    &lt;li&gt;The complete External Content Type will look like the following      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/31_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator, Updater and Deleter methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator, Updater and Deleter methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/31_thumb.png" width="299" height="210" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy The External Content Type, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new External list by selection on SharePoint page “Site Action”-&amp;gt;“More Options…”-&amp;gt;“External List”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/33_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add a new external list" border="0" alt="Add a new external list" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/33_thumb.png" width="244" height="148" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Give your External List a name and Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/34_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the available External Content Type" border="0" alt="Select the available External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/34_thumb.png" width="216" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select created DB2StoredProceduresBCSMetaManDemo.Department External Content Type, click “OK”. Click “Create” button then.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/35_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select Department External Content Type" border="0" alt="Select Department External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/35_thumb.png" width="244" height="69" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The external data provided by DB2 stored procedure is now displayed in the SharePoint External List      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/36_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External data provided by DB2 stored procedure is now shown within SharePoint 2010" border="0" alt="External data provided by DB2 stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/36_thumb.png" width="244" height="125" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;You can hover over the first column of your list and you’ll see a drop down appear. If you click the drop down arrow you’ll get a number of options for that particular row of data – one of which will be View Item.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/37_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View items through External List" border="0" alt="View items through External List" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/37_thumb.png" width="244" height="55" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;You will be presented with the View Item dialog      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/38_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View Item dialog" border="0" alt="View Item dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/38_thumb.png" width="244" height="162" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Now click “Edit item” on the ribbon of the dialog. This option is only available if you create an Updater method for your External Content Type. Clicking on this link will open up a dialog form that allows you to edit that row of data and save it.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/39_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Edit Item dialog" border="0" alt="Edit Item dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/39_thumb.png" width="244" height="158" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;While viewing the external list, if you click the Items tab on the ribbon you’ll see a New Item button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/40_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add new data to DB2 database through the external list" border="0" alt="Add new data to DB2 database through the external list" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/40_thumb.png" width="244" height="85" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;This will bring up the “New Item” dialog where you can add a new Department. We will enter information about new Department and click “Save”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/41_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="New Item Dialog" border="0" alt="New Item Dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/41_thumb.png" width="244" height="169" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;This will insert a new row directly to your DB2 database      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/42_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Updated External data provided by DB2 stored procedure is now shown within SharePoint 2010" border="0" alt="Updated External data provided by DB2 stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/DB2-Stored-Procedures-and-the-Business-C_14718/42_thumb.png" width="244" height="54" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;support@lightningtools.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/299.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/09/db2-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx</guid>
            <pubDate>Fri, 09 Sep 2011 13:16:51 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/299.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/09/db2-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/299.aspx</wfw:commentRss>
        </item>
        <item>
            <title>BCS filters and Oracle Stored Procedures with Parameters in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/07/bcs-filters-and-oracle-stored-procedures-with-parameters-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this tutorial we will show you how to connect to a Oracle Database Server using &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;BCS Meta Man&lt;/font&gt;&lt;/u&gt;&lt;/a&gt; and a Stored Procedure to return filtered data to a SharePoint Business Data List. In this walkthrough we will be creating a Finder Method with filters so our Oracle Stored Procedure needs to have parameters defined.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Oracle clients (This &lt;a href="http://www.lightningtools.com/bcs-meta-man/faq.aspx" target="_blank"&gt;FAQ&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt; describes what should be installed) &lt;/li&gt;    &lt;li&gt;Oracle stored procedure for such as:      &lt;ol&gt;       &lt;li&gt;create or replace function get_employees_filtered(p_last_name in varchar2, p_salary in number)          &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_employees sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_employees for select * from employees where last_name like '%' || p_last_name || '%' and salary &amp;lt; p_salary;           &lt;br /&gt;  return v_employees;           &lt;br /&gt;end get_employees_filtered; &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Open Visual Studio 2010 &lt;/li&gt;    &lt;li&gt;Add a New Project &lt;/li&gt;    &lt;li&gt;Expand the “SharePoint” node, select “Lightning Tools (2010)” node and then the “BCS Meta Man” project type &lt;/li&gt;    &lt;li&gt;Give your project a name i.e BCSMetaManFilteredOracleStoredProcedure and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create BCSMetaManFilteredOracleStoredProcedure project" border="0" alt="Create BCSMetaManFilteredOracleStoredProcedure project" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/4_thumb.png" width="244" height="170" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;On the next dialog box, enter the name of where you want to deploy your model, and click “Finish” button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Deploy as a farm solution" border="0" alt="Deploy as a farm solution" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/5_thumb.png" width="244" height="194" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;If prompted, click “Trial” on the licensing dialog &lt;/li&gt;    &lt;li&gt;To show the “BCS Meta Man Data Source Explorer” we need to enable it from the Menu item, this new window can be docked so it doesn’t get in your way      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/7_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the BCS Meta Man Data Source Explorer" border="0" alt="Open the BCS Meta Man Data Source Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/7_thumb.png" width="244" height="128" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click the “Add Connection” button to show the “Connection Dialog” &lt;/li&gt;    &lt;li&gt;Select “ODBC Server” as Data Source type, enter Oracle ODBC connection string (for example it can be “&lt;strong&gt;Driver={Oracle in OraClient11g_home1};Dbq=XE_AURIGA;Uid=hr;Pwd=hr;Trusted_Connection=yes;&lt;/strong&gt;”), enter double quotes as left and right delimiters and “&lt;strong&gt;?&lt;/strong&gt;” as parameter symbol and click “Connect” button.       &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/9_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Oracle ODBC connection string" border="0" alt="Oracle ODBC connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/9_thumb.png" width="244" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The Data Source Explorer will now be populated with your Oracle data      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="See the stored procedures available to use" border="0" alt="See the stored procedures available to use" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/10_thumb.png" width="244" height="241" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Drag and drop your Finder Stored Procedure with parameters onto the design surface and enter External Content type name, i.e “FilteredEmployee”, click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop a Finder stored procedure and Enter External Content type name" border="0" alt="Drag and drop a Finder stored procedure and Enter External Content type name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/11_thumb.png" width="244" height="104" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select the Method Type as “Finder’' &lt;/li&gt;    &lt;li&gt;Select the first Parameter (p_last_name) and set it’s Filter Type to Comparison and the Default Value to ‘a’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Finder Oracle stored procedure and first parameter" border="0" alt="Configuring Finder Oracle stored procedure and first parameter" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/13_thumb.png" width="244" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next select the second Parameter (p_salary) and also set it’s Filter Type to Comparison and the Default Value to ‘4000’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/14_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Finder Oracle stored procedure and second parameter" border="0" alt="Configuring Finder Oracle stored procedure and second parameter" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/14_thumb.png" width="244" height="230" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click ‘OK’ &lt;/li&gt;    &lt;li&gt;The External Content Type will be created on the Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type created on diagram " border="0" alt="External Content Type created on diagram " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/16_thumb.png" width="243" height="118" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;In order to set an identifier right-click on the External Content Type, select “Manage External Content type” menu item      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/17_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Manage External Content type" border="0" alt="Manage External Content type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/17_thumb.png" width="244" height="57" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click “Edit Identifiers” button on the “Entity Management” dialog, select an identifier and click “OK” and “Update” button then      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Set identifier" border="0" alt="Set identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/18_thumb.png" width="244" height="159" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new identifier      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/19_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with identifier" border="0" alt="External Content Type with identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/19_thumb.png" width="245" height="130" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new Business Data List Web Part to your SharePoint page      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add Business Data List Web Part " border="0" alt="Add Business Data List Web Part " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/21_thumb.png" width="244" height="111" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click on the ‘Open the tool pane’ link &lt;/li&gt;    &lt;li&gt;Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the picker to select your External Content Type" border="0" alt="Open the picker to select your External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/23_thumb.png" width="248" height="168" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select our ‘ BCSMetaManFilteredOracleStoredProcedure.FilteredEmployee’ External Content Type, click ‘OK’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/24_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the FilteredEmployee External Content Type" border="0" alt="Select the FilteredEmployee External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/24_thumb.png" width="244" height="59" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click ‘OK’ on the tool pane &lt;/li&gt;    &lt;li&gt;Click the ‘Add’ link on the Business Data List Web Part to add the second Filter option      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/26_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="To use multiple BCS filters click the Add link" border="0" alt="To use multiple BCS filters click the Add link" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/26_thumb.png" width="244" height="43" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Change the second Filter to be the P_SALARY and enter values for the filters and click ‘Retrieve Data’ &lt;/li&gt;    &lt;li&gt;Your Oracle data provided by Stored Procedure is now displayed in the SharePoint Web Part  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/28_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View your filtered data provided by Oracle stored procedure" border="0" alt="View your filtered data provided by Oracle stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e47d1727ebbb_E99/28_thumb.png" width="244" height="61" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;support@lightningtools.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/298.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/07/bcs-filters-and-oracle-stored-procedures-with-parameters-in-sharepoint.aspx</guid>
            <pubDate>Wed, 07 Sep 2011 13:35:51 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/298.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/07/bcs-filters-and-oracle-stored-procedures-with-parameters-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/298.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Business Connectivity Service Associations using Oracle Stored Procedures in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/06/business-connectivity-service-associations-using-oracle-stored-procedures-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this walkthrough we will demonstrate you how to connect to Oracle Database Server and use stored procedures to create an association between two External Content Types using &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt;.&lt;/p&gt;  &lt;p&gt;We are going to follow on from the ‘&lt;a href="http://www.lightningtools.com/blog/archive/2011/09/05/oracle-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;Oracle Stored Procedures and the Business Connectivity Services in SharePoint 2010&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;’&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Oracle clients (This &lt;a href="http://www.lightningtools.com/bcs-meta-man/faq.aspx" target="_blank"&gt;FAQ&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt; describes what should be installed) &lt;/li&gt;    &lt;li&gt;Oracle stored procedures for such as:      &lt;ol&gt;       &lt;li&gt;create or replace function get_all_countries  &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_countries sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_countries for select * from countries;           &lt;br /&gt;  return v_countries;           &lt;br /&gt;end get_all_countries; &lt;/li&gt;        &lt;li&gt;create or replace function get_country_by_id(p_id in char)  &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_countries sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_countries for select * from countries where country_id=p_id;           &lt;br /&gt;  return v_countries;           &lt;br /&gt;end get_country_by_id; &lt;/li&gt;        &lt;li&gt;create or replace function get_all_regions  &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_regions sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_regions for select * from regions;           &lt;br /&gt;  return v_regions;           &lt;br /&gt;end get_all_regions; &lt;/li&gt;        &lt;li&gt;create or replace function get_region_by_id(p_id in number)          &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_regions sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_regions for select * from regions where region_id=p_id;           &lt;br /&gt;  return v_regions;           &lt;br /&gt;end get_region_by_id; &lt;/li&gt;        &lt;li&gt;create or replace function get_countries_by_region_id(p_id in number)          &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_countries sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_countries for select * from countries where region_id=p_id;           &lt;br /&gt;  return v_countries;           &lt;br /&gt;end get_countries_by_region_id; &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt; &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Using the ‘&lt;a href="http://www.lightningtools.com/blog/archive/2011/09/05/oracle-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx" target="_blank"&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;Oracle Stored Procedures and the Business Connectivity Services in SharePoint 2010&lt;/font&gt;&lt;/u&gt;&lt;/a&gt;’ Tutorial create two External Content Types “Country” and “Region” with Finder (Read List operation) and SpecificFinder (Read Item operation) methods only. &lt;/li&gt;    &lt;li&gt;You should have the following External Content Types on your Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/2_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Both External Content Types on the design surface" border="0" alt="Both External Content Types on the design surface" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/2_thumb.png" width="244" height="151" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Switch to the ‘Toolbox’ pane in Visual Studio (Ctrl-Alt-X) &lt;/li&gt;    &lt;li&gt;Select the ‘Association’ toolbox item from the list      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the Association toolbox control" border="0" alt="Select the Association toolbox control" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/4_thumb.png" width="299" height="101" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;With the Association selected, Click and Drag from ‘Region’ to ‘Country’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and Drop between your two External Content Types" border="0" alt="Drag and Drop between your two External Content Types" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/5_thumb.png" width="244" height="148" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;When you release the ‘Association Configuration’ dialog will show &lt;/li&gt;    &lt;li&gt;Switch back to the ‘BCS Meta Man Data Source Explorer’ tool window pane &lt;/li&gt;    &lt;li&gt;Drag the Association Stored Procedure onto the Arrow in the ‘Association Configuration’ dialog, it will turn green when OK to release      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/8_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and Drop the Oracle Association Stored Procedure" border="0" alt="Drag and Drop the Oracle Association Stored Procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/8_thumb.png" width="244" height="131" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The dialog will update with the selected Stored Procedure      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/9_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Association Configuration dialog" border="0" alt="Association Configuration dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/9_thumb.png" width="244" height="193" /&gt;&lt;/a&gt; &lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select ‘P_ID’ in the Parameter and ‘REGION_ID’ in the Identifier drop-down list boxes, Click ‘Save’      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Map the Oracle stored procedure parameter to identifier" border="0" alt="Map the Oracle stored procedure parameter to identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/10_thumb.png" width="244" height="193" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The diagram will update to show an arrow indicating we have an association between the two External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Association has been created" border="0" alt="Association has been created" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/11_thumb.png" width="244" height="163" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new Business Data List Web Part to your SharePoint page      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add Business Data List Web Part " border="0" alt="Add Business Data List Web Part " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/13_thumb.png" width="244" height="111" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click on the ‘Open the tool pane’ link &lt;/li&gt;    &lt;li&gt;Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/15_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the picker to select your External Content Type" border="0" alt="Open the picker to select your External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/15_thumb.png" width="244" height="165" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select our ‘BCSMetaMan1.Region’ External Content Type, click OK  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the Region External Content Type" border="0" alt="Select the Region External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/16_thumb.png" width="244" height="79" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click ‘OK’ on the tool pane &lt;/li&gt;    &lt;li&gt;The external data provided by Oracle stored procedure is now displayed in the SharePoint Web Part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External data provided by Oracle stored procedure is now shown within SharePoint 2010" border="0" alt="External data provided by Oracle stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/18_thumb.png" width="244" height="88" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next, Add a new ‘Business Data Related List’ Web Part to the page &lt;/li&gt;    &lt;li&gt;Configure the Web Part to use the ‘BCSMetaMan1.Country’ External Content Type &lt;/li&gt;    &lt;li&gt;The Web Part will display a message saying the following      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Need to setup web part connection" border="0" alt="Need to setup web part connection" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/21_thumb.png" width="244" height="47" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;To do this we can set up the connection using the small arrow from the top right of our Web Part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/22_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Use a web part menu to create a connection" border="0" alt="Use a web part menu to create a connection" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/22_thumb.png" width="244" height="86" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Once this is done we can click on the arrows next to an item in our ‘Region’ web part and the countries related to this region will display on our ‘Country’ web part      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Related list web part now shows the association data provided by Oracle stored procedure" border="0" alt="Related list web part now shows the association data provided by Oracle stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/e122eaa9a95b_EBD1/23_thumb.png" width="244" height="155" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;&lt;u&gt;support@lightningtools.com&lt;/u&gt;&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/297.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/06/business-connectivity-service-associations-using-oracle-stored-procedures-in-sharepoint.aspx</guid>
            <pubDate>Tue, 06 Sep 2011 13:21:05 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/297.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/06/business-connectivity-service-associations-using-oracle-stored-procedures-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/297.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Oracle Stored Procedures and the Business Connectivity Services in SharePoint 2010</title>
            <link>http://lightningtools.com/blog/archive/2011/09/05/oracle-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx</link>
            <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;In this walkthrough we will demonstrate how to integrate Oracle stored procedures with Microsoft SharePoint 2010 and display the data on SharePoint 2010 page. In order to do that we will describe how to create a new external content type by means of &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt;.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Microsoft SharePoint Server 2010 &lt;/li&gt;    &lt;li&gt;Microsoft Visual Studio 2010 Professional or higher &lt;/li&gt;    &lt;li&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man&lt;/a&gt;&lt;/font&gt;&lt;/u&gt; &lt;/li&gt;    &lt;li&gt;Oracle clients (This &lt;a href="http://www.lightningtools.com/bcs-meta-man/faq.aspx" target="_blank"&gt;FAQ&lt;/a&gt;&lt;u&gt;&lt;font color="#0066cc"&gt;&lt;/font&gt;&lt;/u&gt; describes what should be installed) &lt;/li&gt;    &lt;li&gt;Oracle stored procedures for CRUD operations such as:      &lt;ol&gt;       &lt;li&gt;create or replace function get_all_countries  &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_countries sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_countries for select * from countries;           &lt;br /&gt;  return v_countries;           &lt;br /&gt;end get_all_countries; &lt;/li&gt;        &lt;li&gt;create or replace function get_country_by_id(p_id in char)  &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_countries sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_countries for select * from countries where country_id=p_id;           &lt;br /&gt;  return v_countries;           &lt;br /&gt;end get_country_by_id; &lt;/li&gt;        &lt;li&gt;create or replace function get_country_ids  &lt;br /&gt;return sys_refcursor           &lt;br /&gt;is           &lt;br /&gt;  v_country_ids sys_refcursor;           &lt;br /&gt;begin           &lt;br /&gt;  open v_country_ids for select country_id from countries;           &lt;br /&gt;  return v_country_ids;           &lt;br /&gt;end get_country_ids; &lt;/li&gt;        &lt;li&gt;create or replace procedure create_country(p_id in char, p_name in varchar2, p_region in number)          &lt;br /&gt;is           &lt;br /&gt;begin           &lt;br /&gt;  insert into countries values(p_id, p_name, p_region);           &lt;br /&gt;end create_country; &lt;/li&gt;        &lt;li&gt;create or replace procedure update_country(p_id in char, p_name in varchar2, p_region in number)          &lt;br /&gt;is           &lt;br /&gt;begin           &lt;br /&gt;  update countries set country_name=p_name, region_id=p_region where country_id=p_id;           &lt;br /&gt;end update_country; &lt;/li&gt;        &lt;li&gt;create or replace procedure delete_country(p_id in char)          &lt;br /&gt;is           &lt;br /&gt;begin           &lt;br /&gt;  delete from countries where country_id=p_id;           &lt;br /&gt;end delete_country; &lt;/li&gt;     &lt;/ol&gt;   &lt;/li&gt; &lt;/ul&gt; &lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;Walkthrough&lt;/strong&gt;   &lt;ol&gt;   &lt;li&gt;Open Visual Studio 2010 &lt;/li&gt;    &lt;li&gt;Add a New Project &lt;/li&gt;    &lt;li&gt;Expand the “SharePoint” node, select “Lightning Tools (2010)” node and then the “BCS Meta Man” project type &lt;/li&gt;    &lt;li&gt;Give your project a name i.e OracleStoredProceduresBCSMetaManDemo and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/4_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Create OracleStoredProceduresBCSMetaManDemo project" border="0" alt="Create OracleStoredProceduresBCSMetaManDemo project" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/4_thumb.png" width="334" height="235" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;On the next dialog box, enter the name of where you want to deploy your model, and click “Finish” button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/5_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Deploy as a farm solution" border="0" alt="Deploy as a farm solution" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/5_thumb.png" width="334" height="266" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;If prompted, click “Trial” on the licensing dialog &lt;/li&gt;    &lt;li&gt;To show the “BCS Meta Man Data Source Explorer” we need to enable it from the Menu item, this new window can be docked so it doesn’t get in your way      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/7_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Open the BCS Meta Man Data Source Explorer" border="0" alt="Open the BCS Meta Man Data Source Explorer" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/7_thumb_1.png" width="334" height="168" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click the “Add Connection” button to show the “Connection Dialog” &lt;/li&gt;    &lt;li&gt;Select “ODBC Server” as Data Source type, enter Oracle ODBC connection string (for example it can be “&lt;strong&gt;Driver={Oracle in OraClient11g_home1};Dbq=XE_TAURUS;Uid=hr;Pwd=hr;Trusted_Connection=yes;&lt;/strong&gt;”), enter double quotes as left and right delimiters and “&lt;strong&gt;?&lt;/strong&gt;” as parameter symbol and click “Connect” button.       &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/9_4.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Oracle ODBC connection string" border="0" alt="Oracle ODBC connection string" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/9_thumb_1.png" width="334" height="274" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The Data Source Explorer will now be populated with your Oracle data      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/10_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="See the stored procedures available to use" border="0" alt="See the stored procedures available to use" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/10_thumb.png" width="225" height="334" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Drag and drop your Finder Stored Procedure onto the design surface and enter External Content type name, i.e “Country”, click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/11_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop a Finder stored procedure and Enter External Content type name" border="0" alt="Drag and drop a Finder stored procedure and Enter External Content type name" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/11_thumb.png" width="334" height="172" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Choose the Finder as the method type and click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/12_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Choose the Finder as the method type" border="0" alt="Choose the Finder as the method type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/12_thumb.png" width="338" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will be created on the Diagram      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/13_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type created on diagram " border="0" alt="External Content Type created on diagram " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/13_thumb.png" width="214" height="113" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;In order to set an identifier right-click on the External Content Type, select “Manage External Content type” menu item      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/14_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Manage External Content type" border="0" alt="Manage External Content type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/14_thumb.png" width="334" height="99" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Click “Edit Identifiers” button on the “Entity Management” dialog, select an identifier and click “OK” and “Update” button then      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/15_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Set identifier " border="0" alt="Set identifier " src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/15_thumb.png" width="334" height="215" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new identifier      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/16_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with identifier" border="0" alt="External Content Type with identifier" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/16_thumb.png" width="213" height="127" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;From the “BCS Meta Man Data Source Explorer” drag and drop your Specific Finder stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/17_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Specific Finder stored procedure onto existing External Content Type" border="0" alt="Drag and drop Specific Finder stored procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/17_thumb.png" width="334" height="160" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The “Stored Procedure Configuration” dialog will be displayed. Select “SpecificFinder” as the Method Type. Select the first Parameter – P_ID and set the Filter Type as Comparison and the Default Value as ‘0’. Click “OK”.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/18_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring a Specific Finder stored procedure" border="0" alt="Configuring a Specific Finder stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/18_thumb.png" width="338" height="318" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Specific Finder Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/19_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with Finder and Specific Finder methods" border="0" alt="External Content Type with Finder and Specific Finder methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/19_thumb.png" width="216" height="146" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next drag and drop the Id Enumerator stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/20_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Id Enumerator Stored Procedure onto existing External Content Type" border="0" alt="Drag and drop Id Enumerator Stored Procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/20_thumb.png" width="334" height="140" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select “IdEnumerator” as the Method Type, Click “OK”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/21_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Id Enumerator stored procedure" border="0" alt="Configuring Id Enumerator stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/21_thumb.png" width="338" height="134" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Id Enumerator Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/22_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with Finder, Specific Finder and ID Enumerator methods" border="0" alt="External Content Type with Finder, Specific Finder and ID Enumerator methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/22_thumb.png" width="217" height="162" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;From the “BCS Meta Man Data Source Explorer” drag and drop your Creator stored procedure onto the existing External Content Type      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/23_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Drag and drop Creator stored procedure onto existing External Content Type" border="0" alt="Drag and drop Creator stored procedure onto existing External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/23_thumb.png" width="334" height="163" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The “Stored Procedure Configuration” dialog will be displayed. Select “Creator” as the Method Type. For each Parameter select the appropriate column to map it to. Click “OK”.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/24_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Configuring Creator stored procedure" border="0" alt="Configuring Creator stored procedure" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/24_thumb.png" width="338" height="276" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Creator Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/25_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/25_thumb.png" width="219" height="180" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Next drag and drop your Updater stored procedure onto the existing External Content Type &lt;/li&gt;    &lt;li&gt;Again the “Stored Procedure Configuration” dialog will be displayed. Select “Updater” as the Method Type. For each Parameter select the appropriate column to map it to. Click “OK”. &lt;/li&gt;    &lt;li&gt;The External Content Type will update with the new Updater Method      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/28_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator and Updater methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator and Updater methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/28_thumb.png" width="220" height="195" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Finally drag and drop your Deleter stored procedure onto the existing External Content Type &lt;/li&gt;    &lt;li&gt;Again the “Stored Procedure Configuration” dialog will be displayed. Select “Deleter” as the Method Type. Click “OK”. &lt;/li&gt;    &lt;li&gt;The complete External Content Type will look like the following      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/31_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator, Updater and Deleter methods" border="0" alt="External Content Type with with Finder, Specific Finder, ID Enumerator, Creator, Updater and Deleter methods" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/31_thumb.png" width="216" height="210" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Press F5 to deploy The External Content Type, this will load up your SharePoint Page once deployed &lt;/li&gt;    &lt;li&gt;Add a new External list by selection on SharePoint page “Site Action”-&amp;gt;“More Options…”-&amp;gt;“External List”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/33_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add a new external list" border="0" alt="Add a new external list" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/33_thumb.png" width="334" height="202" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Give your External List a name and Click on the icon to show the available External Content Types      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/34_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select the available External Content Type" border="0" alt="Select the available External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/34_thumb.png" width="278" height="334" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Select created OracleStoredProceduresBCSMetaManDemo.Country External Content Type, click “OK”. Click “Create” button then.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/35_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Select Country External Content Type" border="0" alt="Select Country External Content Type" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/35_thumb.png" width="334" height="83" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;The external data provided by Oracle stored procedure is now displayed in the SharePoint External List      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/36_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="External data provided by Oracle stored procedure is now shown within SharePoint 2010" border="0" alt="External data provided by Oracle stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/36_thumb.png" width="334" height="211" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;You can hover over the first column of your list and you’ll see a drop down appear. If you click the drop down arrow you’ll get a number of options for that particular row of data – one of which will be View Item.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/37_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View items through External List" border="0" alt="View items through External List" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/37_thumb.png" width="334" height="86" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;You will be presented with the View Item dialog      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/38_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="View Item dialog" border="0" alt="View Item dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/38_thumb.png" width="334" height="183" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;Now click “Edit item” on the ribbon of the dialog. This option is only available if you create an Updater method for your External Content Type. Clicking on this link will open up a dialog form that allows you to edit that row of data and save it.      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/39_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Edit Item dialog" border="0" alt="Edit Item dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/39_thumb.png" width="334" height="186" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;While viewing the external list, if you click the Items tab on the ribbon you’ll see a New Item button      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/40_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Add new data to Oracle database through the external list" border="0" alt="Add new data to Oracle database through the external list" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/40_thumb.png" width="334" height="141" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;This will bring up the “New Item” dialog where you can add a new Country. We will enter information about new Country and  click “Save”      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/41_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="New Item Dialog" border="0" alt="New Item Dialog" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/41_thumb.png" width="334" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt;    &lt;li&gt;This will insert a new row directly to your Oracle database      &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/42_2.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="Updated External data provided by Oracle stored procedure is now shown within SharePoint 2010" border="0" alt="Updated External data provided by Oracle stored procedure is now shown within SharePoint 2010" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/Oracle-Stored_F4B4/42_thumb.png" width="334" height="79" /&gt;&lt;/a&gt;&lt;/p&gt;   &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;We hope this walkthrough will be useful for you. If you have any questions feel free to email them to &lt;a href="mailto:support@lightningtools.com"&gt;&lt;font color="#0072bc"&gt;support@lightningtools.com&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;Dmitry Kaloshin/&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/296.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/09/05/oracle-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx</guid>
            <pubDate>Mon, 05 Sep 2011 19:35:03 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/296.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/09/05/oracle-stored-procedures-and-the-business-connectivity-services-in-sharepoint.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/296.aspx</wfw:commentRss>
        </item>
        <item>
            <title>BCS Meta Man - Using a Connection String stored in the Secure Store</title>
            <link>http://lightningtools.com/blog/archive/2011/08/24/bcs-meta-manndashusing-a-connection-string-stored-in-the-secure.aspx</link>
            <description>&lt;p&gt;In this blog post I will show you how you can update your code to use a connection string in the Secure Store rather than having the value hard coded in your BCS Meta Man generated c# file.  The reason why you may wish to put the connection details within the Secure Store is that the names of the database and server are likely to be different in my development environment than in my staging and production environments. In order to do this you will need to have the use of the secure store which is only available in SharePoint Server 2010 and not SharePoint Foundations.&lt;/p&gt;  &lt;p&gt;To be able to use the details stored within the secure store you will be required to do some manual changes to the code generated by BCS Meta Man. &lt;/p&gt;  &lt;p&gt;First of all create a new Secure Store application with the Connection String Field&lt;/p&gt;  &lt;p&gt;Central Administration &amp;gt; Service Applications &amp;gt; Secure Store &amp;gt; New&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_12.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Configure Secure Store" border="0" alt="Configure Secure Store" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_5.png" width="221" height="244" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Using the ‘Add Field’ button add a generic field called ‘Connection String’ and remove the other two fields&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_18.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Using Generic Field for Connection String in Secure Store" border="0" alt="Using Generic Field for Connection String in Secure Store" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_8.png" width="244" height="75" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Click next and then add the Secure Store Administrator on the next screen. Now the Secure Store ID has been created you can click on it and choose to set the credentials, this is where you supply all of the credentials required.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_16.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Setting Credentials for Secure Store Application" border="0" alt="Setting Credentials for Secure Store Application" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_7.png" width="244" height="136" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Enter the connection string and the Credential Owner, Click OK&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_20.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Setting Credentials for Secure Store Application" border="0" alt="Setting Credentials for Secure Store Application" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_9.png" width="244" height="201" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;In BCS Meta Man, create a new BCS Meta Man Project and when connecting to your Data Source choose ‘Use Secure Store’ as your Authentication Mode.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_8.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px" title="Connecting to External System using Secure Store and BCS Meta Man" border="0" alt="Connecting to External System using Secure Store and BCS Meta Man" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/a4cf3d9bf4f9_A86C/image_thumb_3.png" width="244" height="200" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;You will be prompted for your credentials again, this is to allow BCS Meta Man to connect to the External System. Next create the External Content Type and choose .Net Assembly connector as the Model Type, generate the External Content Type in the usual way.&lt;/p&gt;  &lt;p&gt;At this point the Model and assembly will be configured to the use Secure Store credentials for the User Name and Password but not for the Server and Database, Deploy the model to ensure the Secure Store details are correct. If it is working and you can see your External Data then it’s time to configure the code to retrieve the Server and Database, if not then check back to the Secure Store and make sure the credentials you entered have the permissions to the External System you are using.&lt;/p&gt;  &lt;p&gt;Locate the BCSMetaMan.cs class and find the following method which retrieves the credentials from the Secure Store&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;internal &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; &lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;()
{
    &lt;span style="color: green"&gt;// error checking removed for brevity
    &lt;/span&gt;&lt;span style="color: blue"&gt;string &lt;/span&gt;targetId = &lt;span style="color: purple"&gt;LobSystemInstance&lt;/span&gt;.&lt;span style="color: #008b8b"&gt;GetProperties&lt;/span&gt;()[&lt;span style="color: #a31515"&gt;"SsoApplicationId"&lt;/span&gt;] &lt;span style="color: blue"&gt;as string&lt;/span&gt;;
    &lt;span style="color: #00008b"&gt;ISecureStoreProvider &lt;/span&gt;provider = &lt;span style="color: #008b8b"&gt;GetSecureStoreProvider&lt;/span&gt;();

    &lt;span style="color: blue"&gt;var &lt;/span&gt;userCredentials = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt;(2);

    &lt;span style="color: green"&gt;// get the credentials for the user on whose behalf the code 
    // is executing 
    &lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #00008b"&gt;SecureStoreCredentialCollection &lt;/span&gt;credentials = provider.&lt;span style="color: #008b8b"&gt;GetRestrictedCredentials&lt;/span&gt;(targetId))
    {

        &lt;span style="color: green"&gt;// look for username and password in credentials 
        &lt;/span&gt;&lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #00008b"&gt;ISecureStoreCredential &lt;/span&gt;credential &lt;span style="color: blue"&gt;in &lt;/span&gt;credentials)
        {
            &lt;span style="color: blue"&gt;switch &lt;/span&gt;(credential.&lt;span style="color: purple"&gt;CredentialType&lt;/span&gt;)
            {
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;UserName&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsUserName&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"UserID"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;Password&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsPassword&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Password"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;default&lt;/span&gt;:
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
            }
        }
    }

    &lt;span style="color: blue"&gt;return &lt;/span&gt;userCredentials;
}&lt;/pre&gt;



&lt;p&gt;You should be able to see that by default only the Username and Password are retrieved, replace the method with the following to pick up the Generic Field that we are using for the Connection String&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;internal &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; &lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;()
{
    &lt;span style="color: green"&gt;// error checking removed for brevity
    &lt;/span&gt;&lt;span style="color: blue"&gt;string &lt;/span&gt;targetId = &lt;span style="color: purple"&gt;LobSystemInstance&lt;/span&gt;.&lt;span style="color: #008b8b"&gt;GetProperties&lt;/span&gt;()[&lt;span style="color: #a31515"&gt;"SsoApplicationId"&lt;/span&gt;] &lt;span style="color: blue"&gt;as string&lt;/span&gt;;
    &lt;span style="color: #00008b"&gt;ISecureStoreProvider &lt;/span&gt;provider = &lt;span style="color: #008b8b"&gt;GetSecureStoreProvider&lt;/span&gt;();

    &lt;span style="color: blue"&gt;var &lt;/span&gt;userCredentials = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt;(2);

    &lt;span style="color: green"&gt;// get the credentials for the user on whose behalf the code 
    // is executing 
    &lt;/span&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;(&lt;span style="color: #00008b"&gt;SecureStoreCredentialCollection &lt;/span&gt;credentials = provider.&lt;span style="color: #008b8b"&gt;GetRestrictedCredentials&lt;/span&gt;(targetId))
    {

        &lt;span style="color: green"&gt;// look for username and password in credentials 
        &lt;/span&gt;&lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #00008b"&gt;ISecureStoreCredential &lt;/span&gt;credential &lt;span style="color: blue"&gt;in &lt;/span&gt;credentials)
        {
            &lt;span style="color: blue"&gt;switch &lt;/span&gt;(credential.&lt;span style="color: purple"&gt;CredentialType&lt;/span&gt;)
            {
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;UserName&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsUserName&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"UserID"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;Password&lt;/span&gt;:
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;WindowsPassword&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"Password"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
                &lt;span style="color: blue"&gt;case &lt;/span&gt;&lt;span style="color: #00008b"&gt;SecureStoreCredentialType&lt;/span&gt;.&lt;span style="color: purple"&gt;Generic&lt;/span&gt;:
                    userCredentials.&lt;span style="color: #008b8b"&gt;Add&lt;/span&gt;(&lt;span style="color: #a31515"&gt;"ConnectionString"&lt;/span&gt;, &lt;span style="color: #008b8b"&gt;GetStringFromSecureString&lt;/span&gt;(credential.&lt;span style="color: purple"&gt;Credential&lt;/span&gt;));
                    &lt;span style="color: blue"&gt;break&lt;/span&gt;;
            }
        }
    }

    &lt;span style="color: blue"&gt;return &lt;/span&gt;userCredentials;
}&lt;/pre&gt;


&lt;p&gt; &lt;/p&gt;



















&lt;p&gt;Next switch to the *EntityService.cs class for your External Content Type i.e if your ECT was called Product the filename will be ProductEntityServiceClass.cs&lt;/p&gt;

&lt;p&gt;Update the following method&lt;/p&gt;

&lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: #008b8b"&gt;GetConnectionStringWithCredentials&lt;/span&gt;()
{
    &lt;span style="color: #00008b"&gt;Dictionary&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; credentialsFromSecureStore = &lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;();
    &lt;span style="color: blue"&gt;var &lt;/span&gt;connectionStringBuilder = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #00008b"&gt;SqlConnectionStringBuilder&lt;/span&gt;(&lt;span style="color: purple"&gt;ConnectionString&lt;/span&gt;) { &lt;span style="color: purple"&gt;UserID &lt;/span&gt;= credentialsFromSecureStore[&lt;span style="color: #a31515"&gt;"UserID"&lt;/span&gt;], &lt;span style="color: purple"&gt;Password &lt;/span&gt;= credentialsFromSecureStore[&lt;span style="color: #a31515"&gt;"Password"&lt;/span&gt;] };
    &lt;span style="color: blue"&gt;return &lt;/span&gt;connectionStringBuilder.&lt;span style="color: #008b8b"&gt;ToString&lt;/span&gt;();
}&lt;/pre&gt;

&lt;p&gt; &lt;/p&gt;

&lt;p&gt;with the following, this method now just returns the connection string&lt;/p&gt;
&lt;span style="color: blue"&gt;
  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;public string &lt;/span&gt;&lt;span style="color: #008b8b"&gt;GetConnectionStringWithCredentials&lt;/span&gt;()
{
    &lt;span style="color: blue"&gt;return &lt;/span&gt;&lt;span style="color: #008b8b"&gt;ReadCredentialsFromSecureStore&lt;/span&gt;()[&lt;span style="color: #a31515"&gt;"ConnectionString"&lt;/span&gt;];
}&lt;/pre&gt;
  

  

  
Now deploy the solution and it will be using the connection string from the Central Administration secure store, one thing which is worth noting is that when you go to change the credentials again you will not be shown what they were previously.  You also need to make sure that the same secure store setup is used in each of your environments.&lt;/span&gt;

&lt;p&gt;So there you have it not only can you use BCS Meta man to generate your c# code and configure the model with a few simple changes you can make the connection string configurable via the secure store.&lt;/p&gt;

&lt;p&gt;&amp;lt;Phill /&amp;gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/294.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/08/24/bcs-meta-manndashusing-a-connection-string-stored-in-the-secure.aspx</guid>
            <pubDate>Wed, 24 Aug 2011 15:32:00 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/294.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/08/24/bcs-meta-manndashusing-a-connection-string-stored-in-the-secure.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/294.aspx</wfw:commentRss>
        </item>
        <item>
            <title>BCS Meta Man 4.0.0.1 Beta released</title>
            <link>http://lightningtools.com/blog/archive/2011/04/15/bcs-meta-man-4.0.0.1-beta-released.aspx</link>
            <description>&lt;p&gt;BCS Meta Man 4.0.0.1 has just been released with some great new features:&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Where can I get it?&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;BCS Meta Man 4.0.0.1 Beta is included in the regular BCS Meta Man download package from our &lt;a href="http://www.lightningtools.com/bcs/bcs-meta-man.aspx" target="_blank"&gt;BCS Meta Man page&lt;/a&gt; , just head over there get started on these exciting new features.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Methods&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;The Delete method has now been added to give you full automatic code and model generation for all of the CRUD methods. This means that BCS Meta Man can now generate automatically for you:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;Finder Method&lt;/li&gt;    &lt;li&gt;Specific Finder Method&lt;/li&gt;    &lt;li&gt;Id Enumerator Method&lt;/li&gt;    &lt;li&gt;Creator Method&lt;/li&gt;    &lt;li&gt;Updater Method&lt;/li&gt;    &lt;li&gt;Deleter Method&lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;   &lt;br /&gt;&lt;strong&gt;Data Sources&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;We have added a new Data Source which was requested a number of out customers…. you can now add a SharePoint List as an External Content Type! &lt;/p&gt;  &lt;p&gt;&lt;a href="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/BCS-Meta-Man-4.0.0.1-Beta-released_83A9/07-04-2011-14-28-41_thumb_2.png"&gt;&lt;img style="background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px; padding-top: 0px" title="07-04-2011-14-28-41_thumb" border="0" alt="07-04-2011-14-28-41_thumb" src="http://lightningtools.com/blog/images/lightningtools_com/blog/Windows-Live-Writer/BCS-Meta-Man-4.0.0.1-Beta-released_83A9/07-04-2011-14-28-41_thumb_thumb.png" width="244" height="112" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;We’re continuing to add great features and data sources to BCS Meta Man, keep an eye on this blog to find out the latest&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Fixes&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;An issue with importing Associations has been fixed as well as some minor improvements.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.twitter.com/phillduffy" target="_blank"&gt;&amp;lt;Phill /&amp;gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://lightningtools.com/blog/aggbug/275.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Lightning Tools</dc:creator>
            <guid>http://lightningtools.com/blog/archive/2011/04/15/bcs-meta-man-4.0.0.1-beta-released.aspx</guid>
            <pubDate>Fri, 15 Apr 2011 07:41:00 GMT</pubDate>
            <wfw:comment>http://lightningtools.com/blog/comments/275.aspx</wfw:comment>
            <comments>http://lightningtools.com/blog/archive/2011/04/15/bcs-meta-man-4.0.0.1-beta-released.aspx#feedback</comments>
            <wfw:commentRss>http://lightningtools.com/blog/comments/commentRss/275.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>
