How to Retrieve Baseline Dates from Project Server 2016 via CSOM
Question details
The user is trying to retrieve baseline dates from Project Server 2016 but cannot find the baseline columns using CSOM or locate them safely in the direct database.

- Product
- Microsoft Project Server 2016
- Device & OS
- not provided
- Scenario
- Attempting to programmatically extract baseline project dates using CSOM scripts or direct database SQL queries.
- Observed behavior
- Baseline columns appear to be missing or unavailable through CSOM, and directly querying the Project Server databases is discouraged due to varying schemas and unsupported access methods.
Before attempting to query the Project Server database, ensure you have the appropriate administrative permissions and review Microsoft's official API documentation, as unsupported direct SQL queries can cause server instability and data corruption.
Consult the Microsoft Tech Community for Supported API Methods
Because direct database querying is officially unsupported, engaging with the official developer community is the safest way to find specific CSOM workarounds or correct REST API calls.
Directly querying Project Server databases using SQL Server Management Studio is highly discouraged by Microsoft. The database schemas change frequently with updates, and unsupported access methods can lead to critical server issues.
Open your web browser and navigate to the official Microsoft Tech Community portal.
Click on the search bar and filter by the 'Project' hub. Search for 'Project Server 2016 CSOM baseline dates' to find existing developer threads.
If no existing solution works, click 'Start a New Discussion' to post a new thread. Include your current CSOM code snippet and specify the exact baseline fields (such as Baseline0Finish) you are trying to retrieve.
Utilize OData Feeds for Project Reporting Data
If CSOM does not easily expose the required custom or baseline fields, OData feeds provide a fully supported and comprehensive method to access project baseline data for reporting.
Analyze Exported Project Data with WPS Office
While Microsoft Project Server handles complex portfolio management, analyzing exported baseline data or generating project status reports is much easier with WPS Office. As a highly compatible, lightweight alternative to Microsoft Office, WPS allows you to seamlessly manage and visualize your exported project spreadsheets without the high subscription costs.
- 1. Export Project Data: Export your baseline dates and reporting data from Project Server into a standard Excel (.xlsx) or CSV file.
- 2. Open in WPS Spreadsheet: Launch WPS Office and click 'Open' to load your exported project file for viewing.
- 3. Analyze and Share: Use built-in charts and PivotTables in WPS Spreadsheet to analyze baseline variances and share the results with your team.

Frequently Asked Questions
Why are baseline columns missing when querying Project Server 2016 via CSOM?
Baseline columns are sometimes not exposed directly through default CSOM endpoints, or they may require specific field expansion parameters in your code. Additionally, certain custom fields or baseline data might be restricted by enterprise custom field settings or server permissions.
Is it safe to query the Project Server database directly using SQL?
No, Microsoft strongly advises against directly querying the Project Server draft, published, or reporting databases via SQL Server Management Studio. Doing so is unsupported, bypasses application security logic, and can result in severe data corruption or unexpected application behavior.
What is the best supported method to retrieve reporting data from Project Server 2016?
The OData service (accessed via the _api/ProjectData endpoint) is the recommended and fully supported method for extracting reporting data. It is specifically optimized to provide read-only access to entities like baseline dates, project tasks, and resource assignments.




