Tag Info

New answers tagged

1

You can create a custom list in SharePoint with following fields Employee Name - Person field which pulls Employee name from User Profile (which can be tied to Active Directory) Type of Certification - Choice Field (You can fill in all available certifications) Certification # - Single line of text Expiry Date - Date field If your employee data is not ...


1

Since SharePoint stores ConfigDb connection string in Windows Registry you could utilize the following approach for retrieving Config Db server name: public static string GetConfigDbConnectionString() { var farm = SPFarm.Local; var version = farm.BuildVersion.Major.ToString() + "." + farm.BuildVersion.Minor.ToString(); var configDbKey = ...


1

You can use namespace Microsoft.SharePoint.Administration.SPFarm and look for Server in the farm. public String GetSharePointSQLServerName() { String sServerName = "notFound"; foreach (var item in SPFarm.Local.Servers) { foreach (var svc in item.ServiceInstances) { if (svc is SPDatabaseServiceInstance) { ...



Top 50 recent answers are included