-
Popular posts
-
Tags
Add-In Administration BDC CAML Certificate Certifications Configuration Content Types CSOM Database Deployment ECB External Content Types FBA Fields Impersonation InfoPath installation JavaScript jQuery Logging Metadata Properties MVP Packaging Performance PowerShell Provider-Hosted REST Ribbon Search security Self-Signed Certificate SharePoint SharePoint Designer SharePoint Short SP2019 SQL Taxonomy Timers User Control Visual Studio WCF WebPart Workflow Workflow Activity
-
Categories
- .Net (2)
- Deployment (1)
- Development (1)
- General (11)
- InfoPath (7)
- JavaScript (3)
- Office (1)
- SharePoint (110)
- Configuration (15)
- CSOM (2)
- Designer (3)
- Installation (5)
- Security (2)
- Taxonomy (4)
- Workflow (9)
- SharePoint Shorts (22)
- SQL (3)
- Unit Tests (1)
- Visual Studio (4)
Monthly Archives: December 2012
Merry Christmas
Happy Christmas and a prosperous New Year, I hope 2013 is everything you expect and more!
Posted in General
Leave a comment
Get Default Database Infomation
SharePoint Short #15 Looking for a quick an easy way of retrieving the default content database information, like the SQL instance (i.e. servername\instance)? string sqlServerInstance = SPWebService.ContentService.DefaultDatabaseInstance.NormalizedDataSource;string sqlServerInstance = SPWebService.ContentService.DefaultDatabaseInstance.NormalizedDataSource; or individually string sqlInstance = SPWebService.ContentService.DefaultDatabaseInstance.Instance; string sqlServer = SPWebService.ContentService.DefaultDatabaseInstance.Server;string … Continue reading
Impersonating Current App Pool User
Using SharePoint it’s easy to run a block of code with elevated permissions: SPSecurity.RunWithElevatedPrivileges(()=> { using (SPSite elevatedSite = new SPSite(siteId)) { using (SPWeb elevatedWeb = elevatedSite.OpenWeb(wedId)) { // operations using elevated SPWeb object… } } });SPSecurity.RunWithElevatedPrivileges(()=> { using (SPSite … Continue reading
Enhanced Lookup Field – Part 4
This is the fourth and final part of the post describing how to create a custom lookup field for SharePoint. Other pages in this post are: Part 1 – Creating a custom lookup field type Part 2 – Add field … Continue reading