Library tutorials & articles
SharePoint, Document Library and SQL Server
- Introduction
- Setting Up
- Code Discussion
- Conclusion
Introduction
Document Libraries are collections of files that you can share with team members on a web based on Windows SharePoint services. Want to know more about Document Libraries?? Read more about Document Libraries on this site:
http://office.microsoft.com/en-au/assistance/ha011412871033.aspx
This link will show you how to create and use a document library. You can extend the functionality of these document libraries by using the “Event Handler Toolkit” that can be downloaded from the Microsoft site:
Suppose, whenever a document is added in the document library, you want to store the name of the document and the time it was added, in the database. How can you do that? Why would you do that? You can capture events fired in the document library. When ever a document is added, updated, deleted, etc, you can capture the event and add your own business logic or simply capture document information and store it in the database. Why would you store document information in the database? Well, there can be many reasons. You may want to create reports for the senior management who may want to look at the documents added to the library from time to time. You may want to track the document history or you may want to add a workflow to your document library. All this can be done by using the “Event Handler Toolkit”.
Before, we proceed, let me tell you the purpose of writing this. There are many excellent articles on the internet that show you how to capture document library events and do processing but still many people come to me and ask me the same question again and again and the question is related to the capturing of document information and storing it in SQL Server. Seeing the demand, I decided to write a small article that will show you how you can capture the document information in the library and store it in SQL Server. You can do so many things, for example:
- When a document is added, you can copy or move it to another document library.
- You can delete a document.
- You can capture document information and store it in SQL Server.
- You can update document information by updating the properties associated with the document.
- You can add workflow mechanism to your document library. For example, when a document is added to the document library, you send an email to the approver and ask him to approve the document. Document, after getting approval from approver 1, goes to approver 2 and so on.
These are only some of the important things that you can do with Document Library EventHandler. I wish I could show you all of the above in my article but unfortunately that is not possible due to shortage of time but I promise I will try my best to update this tutorial from time to time and add more content to it. In this article, we will see how you can capture document information when a document is inserted in the library and store this information in a DB.
Related articles
Related discussion
-
High-Performance .NET Application Development & Architecture
by Manjot Bawa (0 replies)
-
Need to access Sharepoint MSDE database
by thief_ (0 replies)
-
VS.NET/sql server installation problem
by daspeac (4 replies)
-
sharepoint calendar web part with events from sql table
by converter2009 (2 replies)
-
Research topic in software
by reachsangeethamathew (0 replies)
Related podcasts
-
Stack Overflow: Podcast #28
This is the twenty-eighth episode of the StackOverflow podcast, where Joel and Jeff discuss Windows Azure, SQL Server 2008 full text search, Bayesian filtering, porn detection, and project management — among other things. Jeff met the inestimable Joey DeVilla aka Accordion Guy...
Events coming up
-
Dec
12
SharePoint Saturday Kansas City
Overland Park, United States
Join SharePoint architects, developers, and other professionals that work with Microsoft Office SharePoint Server 2007 for ‘SharePoint Saturday’, on Saturday, December 12th, 2009.
Hi,
I have one questsion, if you can reply. which format sql server store sharepoint files?
second how sqlserver manage versions history?
help will be appreciated.
Thanks,
Ars
Hello,
I am new to SharePoint, I am reseraching for my company the option of useing SharePoint Shared Document library for our docmentation system. We are a small company and need to create a standard shared docuemnt repository for our IT department.
Can anyone answere the following questions?
Thanks
Is there icensing fee's for a share point shared document library?
Can you create retention rules / periods on dcouments stored in the shared document library?
Is the shared document library?
What type of files can be stored in the shared document library? word, PDF, excell, powerpoint, onenote, miscrosoft project, visio?
Hi,
This article is very useful for me as a beginner to Sharepoint. I need a favour, there is a requirement to have a form that collects some input like description, remarks, expiry date etc and add a document to the library. It requires edit feature and delete feature too. Can you please guide me how to achieve in sharepoint, THANKS IN ADVANCE.
Please mail at reachbaala@yahoo.com
Thanks, Bala
This thread is for discussions of SharePoint, Document Library and SQL Server.