Sladescross's Blog

Blogging about Sharepoint related stuff

BCS and Stored Procedures January 9, 2012

Filed under: BCS,BCS and Stored Procedures,BDC XSD — sladescross @ 10:05 pm

http://blogs.msdn.com/b/sharepointdev/archive/2011/02/10/173-a-step-by-step-guide-in-designing-bcs-entities-by-using-a-sql-stored-procedure.aspx

Step by step to use a stored procedure in a read.

http://kjellsj.blogspot.com/2011/04/stored-procedures-in-bcs-sharepoint.html?m=1

The workaround is quite simple and requires the use of a SQL Server table variable, which defines the result set and allows SPD to discover the table metadata. Rewrite the stored procedure by declaring a table variable, insert the result of the dynamic SQL statement into the variable, and finally return the result set by reading the table variable. The changes to the sproc is shown in blue in this example:

http://blog.allegient.com/blog/csi-code-crib/auditing-with-sharepoint-2010-business-connectivity-services-bcs

Also, on the create procedure, we are returning the new auto generated ID using the following logic: SELECT CAST(SCOPE_IDENTITY() AS INT) AS [ReturnId]

The four auditing columns must be changed so that they are NOT required and so that they ARE read only. You will see warnings when setting these fields to read-only and these warnings may be ignored in this case. It’s important that we set the audit columns to read-only because we’ll eventually be using the two stored procedures created earlier to make our Create and Update operations. Neither of these stored procedures contains all four of the audit fields as input parameters. BCS operations are interdependent and will display errors when the Create and Update operations are later created if these fields are not set to read-only here. Next, the Read List operation may be created in the same way by setting the return parameter audit properties to read-only, the same way we’ve done the Read Item operation.

http://ilyal-technology.posterous.com/sharepoint-2010-bcs-ects-sql-stored-procedure

First, create a filter on your external content type’s Read List operation. Keep in mind that creating filters on a routine/stored procedure is a little different from creating a filter on a table or view. Instead of getting a separate Filters screen, you have to define a filter on an Input Parameter.

http://blogs.msdn.com/b/sharepointdev/archive/2011/07/22/rapid-application-development-using-infopath-and-bcs-part-1-anweshi-deverasetty.aspx

Set up BCS schema and stored procedures.

http://blogs.msdn.com/b/sharepointdev/archive/2011/07/26/rapid-application-development-using-infopath-and-bcs-part-2-anweshi-deverasetty.aspx

Import BCs schema.

http://blogs.msdn.com/b/sharepointdev/archive/2011/07/28/rapid-application-development-using-infopath-and-bcs-part-3-anweshi-deverasetty.aspx

Use Infopath Forms for Add/Edit/Delete forms.

http://dotnetmafia.sys-con.com/node/1299753/mobile

Save as Template, import and then build out feature for External List.

http://www.itidea.nl/index.php/bcs-model-some-basics/

BCS Model basics for Visual Studio project.

http://msdn.microsoft.com/en-us/library/ee559369.aspx

BCS XML basics.

http://msdn.microsoft.com/en-us/library/ee559278.aspx

BCS XML Snippets.

http://msdn.microsoft.com/en-us/library/ee819925.aspx

Create the bdc schema.

http://schemas.microsoft.com/windows/2007/BusinessDataCatalog/

BDC xsd for the schema.

About these ads
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 63 other followers