Exposing SQL data with SharePoint
Business Connectivity Services
Scott Brickey, SharePoint Practice Manager
www.sds-consul...
About Us
SDS provides SharePoint solutions
Agile development and SharePoint experience create an
optimal solution for your...
A Brief Forward
• Focus on the subject
– Feel free to ask questions
• Slides are available online
www.sbrickey.com/Tech/Ca...
Some quick question…
Quick Survey
• Who is currently using: SharePoint 2007
Quick Survey
• Who is currently using: SharePoint 2010
Quick Survey
• Who is currently using: SharePoint 2013
Exposing SQL Data
This a GOOD thing?
Data
Exposing SQL Data : The Need
• Often, data in SQL has no UI
– Control tables for custom apps
• Searching beyond the applic...
Exposing SQL Data : The Problems
• Only accessible via LAN
– 1433 should not be exposed
• Authentication options are limit...
Exposing SQL Data : SP Solutions
• SharePoint is a WEB based platform
– Port 80/443
– Multiple authentication (identity) o...
SharePoint : A brief overview
SharePoint : A Brief Overview
• Front-End : Web Applications
– “URLs”
• Back-End : Service Applications
– Business Connect...
SharePoint : A Brief Overview
http://SharePoint
Service Applications
• Business Connectivity Services
• Secure Store
• Sea...
Authentication Options
• Kerberos
– May require special configuration
• Impersonation / Stored Credentials
– SQL User
– Wi...
Data Queries
• SELECT *  List Views
• SELECT PK  ID Enumerator
• SELECT 1  Display Form
• INSERT
• UPDATE
• DELETE
• Fo...
Search Indexing
• Columns  Crawled Properties
– On their own: Meaningless
• Crawled Properties  Managed Properties
– Sea...
Exposing via Excel
• Downloads owssvr.iqy
– Just a data connection
Exposing via PowerPivot
Exposing via PowerPivot
• http://sharepoint/_api/web/lists/
getByTitle(‘listName')/items?param1&param2
– select=columnA wh...
Exposing via Search + REST
• http://sharepoint/_api/search/query
– querytext=‘abc’
– selectproperties=‘columnA,column’
• a...
What does it look like?
Building the connection / model
Unsupported Data Types
• Spatial (Geography)
• HierarchyId
References
• BDC Model file
http://sbrickey.codeplex.com/SourceControl/latest#Samples/SharePoint/Business
Connectivity Ser...
Questions?
MORE INFORMATION
• Strategic Data Systems
http://sds-consulting.com
Lunch and Learn sessions
• SharePoint Library
http://s...
SQL Saturday Columbus 2014 Exposing SQL Data with SharePoint
Upcoming SlideShare
Loading in …5
×

SQL Saturday Columbus 2014 Exposing SQL Data with SharePoint

336 views
237 views

Published on

You've got your data, but accessing it means using one application among dozens, which can be difficult for once-in-a-while users. Alternatively, you can make the data to SharePoint where it can be easily searched, related, and even (securely) exposed for integration via the SharePoint native OData, REST, and WCF interfaces.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
336
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

SQL Saturday Columbus 2014 Exposing SQL Data with SharePoint

  1. 1. Exposing SQL data with SharePoint Business Connectivity Services Scott Brickey, SharePoint Practice Manager www.sds-consulting.com
  2. 2. About Us SDS provides SharePoint solutions Agile development and SharePoint experience create an optimal solution for your unique SharePoint needs. • Business Intelligence : Self service, team, and enterprise • Collaboration, Content Management • Intranets, Portals, and Public Websites • Workflow + forms = application Agile Practices for proven faster delivery, higher quality, & increased business value.
  3. 3. A Brief Forward • Focus on the subject – Feel free to ask questions • Slides are available online www.sbrickey.com/Tech/Calendar www.sds-consulting.com www.slideshare.net/Scott_Brickey/SQL-Saturday-Columbus-2014- Exposing-SQL-data-with-SharePoint
  4. 4. Some quick question…
  5. 5. Quick Survey • Who is currently using: SharePoint 2007
  6. 6. Quick Survey • Who is currently using: SharePoint 2010
  7. 7. Quick Survey • Who is currently using: SharePoint 2013
  8. 8. Exposing SQL Data This a GOOD thing? Data
  9. 9. Exposing SQL Data : The Need • Often, data in SQL has no UI – Control tables for custom apps • Searching beyond the application’s ability – LIKE vs FULLTEXT – Based on a JOIN, or external data • Data analysis – What do you mean I need to “wait for the BI team”
  10. 10. Exposing SQL Data : The Problems • Only accessible via LAN – 1433 should not be exposed • Authentication options are limited – Windows or SQL only • Limited tools / functionality – JOINs? Good luck!
  11. 11. Exposing SQL Data : SP Solutions • SharePoint is a WEB based platform – Port 80/443 – Multiple authentication (identity) options • Windows/Kerberos, LDAP • Local database (SqlMembershipProvider) • Claims Based Auth (SAML, OpenID, OAuth, Federation) • Control the access to data – How will user auth to SQL? (Kerb, stored creds, etc) – What data / objects is exposed (Table, View, Sproc) – Row/Record based security? Sure!
  12. 12. SharePoint : A brief overview
  13. 13. SharePoint : A Brief Overview • Front-End : Web Applications – “URLs” • Back-End : Service Applications – Business Connectivity Services • Bring data from an external system into SharePoint • Extensible for various backend systems • Built-in support for SQL – Secure Store • Password vault – Search – Workflow
  14. 14. SharePoint : A Brief Overview http://SharePoint Service Applications • Business Connectivity Services • Secure Store • Search • Workflow REST
  15. 15. Authentication Options • Kerberos – May require special configuration • Impersonation / Stored Credentials – SQL User – Windows User – Per person or group (first match) • SharePoint BCS Service Account
  16. 16. Data Queries • SELECT *  List Views • SELECT PK  ID Enumerator • SELECT 1  Display Form • INSERT • UPDATE • DELETE • Foreign Key  Association • BLOB / Stream Accessor  Attachment • Security Trimmer  Row based permission • Event Subscriber  Workflow / Alert notification Event Unsubscriber
  17. 17. Search Indexing • Columns  Crawled Properties – On their own: Meaningless • Crawled Properties  Managed Properties – Searchable: data included in search index – Queryable: field can be filtered specifically • Like adding “site:Microsoft.com” to Google search – Retrievable: can be displayed in search results – Refinable: can be included in Refinement Panel
  18. 18. Exposing via Excel • Downloads owssvr.iqy – Just a data connection
  19. 19. Exposing via PowerPivot
  20. 20. Exposing via PowerPivot • http://sharepoint/_api/web/lists/ getByTitle(‘listName')/items?param1&param2 – select=columnA which fields are returned – filter=Presenter eq ‘SBrickey’ – top=100 Returns only the first n items – skip=10 Skips the first n items – orderby Sort the data
  21. 21. Exposing via Search + REST • http://sharepoint/_api/search/query – querytext=‘abc’ – selectproperties=‘columnA,column’ • add headers “Accept” = “application/json; odata=verbose”
  22. 22. What does it look like? Building the connection / model
  23. 23. Unsupported Data Types • Spatial (Geography) • HierarchyId
  24. 24. References • BDC Model file http://sbrickey.codeplex.com/SourceControl/latest#Samples/SharePoint/Business Connectivity Services/AdventureWorks.Production.Product.bdcm • PowerShell script http://sbrickey.codeplex.com/SourceControl/latest#Samples/SharePoint/API - Web Services/Lists ASMX to query AdventureWorks Products.ps1
  25. 25. Questions?
  26. 26. MORE INFORMATION • Strategic Data Systems http://sds-consulting.com Lunch and Learn sessions • SharePoint Library http://sdsSharePointLibrary.codeplex.com/ • Scott Brickey http://www.sbrickey.com

×