Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,
I need help in using SSIS to import multiple Microsoft Project 2010 .MPP files posted on a Sharepoint site into a SQL Server 2008 R2 database I'm developing. Unfortunately, there is no backend database applied by Microsoft Project. Otherwise, I would connect to that directly.
Can somebody provide me with the steps and perhaps sample code for achieving this goal? I have run many searches and have found nothing up to date with the details required and SSIS does not contain a control flow task specific to Microsoft Project.

After extracting and importing into the database the following fields from each Microsoft Project file, my objective is to query this data against that extracted from other sources (other databases, Excel spreadsheets, and flat files) to generate automated reports with SSRS. This part I can handle, but I first need to figure out how to automate the importing of Microsoft Project files.

Name
Active
Division
Region
Scheduled_by_Element
Project_ID
Project_Iteration
Watch_Status
Actual_Start
Actual_Finish
Start_Date
Finish_Date
Baseline_Start
Baseline_Finish
Percent_Complete
Duration
Outline_Level
WBS
Milestone
Rollup
Notes
Augment_Phase


If coding is required, I have experience with both C# and VB. If Microsoft Project needs to be installed on the database server in order for the code to work, then this is not a problem.

The best working examples I've found so far are detailed in the following links, but the coding is no longer compatible with the before mentioned tools I'm using.

http://www.msproject.com/OLEDB.htm[^]

http://www.experts-exchange.com/Programming/Languages/.NET/Visual_CSharp/Q_24846116.html[^]

Thanks
Posted
Updated 19-Jul-12 20:25pm
v7

If you would be able to save the project files as XML format (I see that .mpp is binary), that would be a whole lot easier.. You could call the SaveAs function from VBA. Here's an example I think.

http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/f1895801-5b2b-4aba-be41-d529f796ae87[^]
 
Share this answer
 
v2
 
Share this answer
 
woutercx,
Thank you very much for the suggestions. The solution I ended up applying is similar to that in your first post. I reverse-engineered the Windows application discussed in the following Code Project link and modified it into a console application that converted the export to a CSV format.

Excel Report from Microsoft Project[^]

As soon as the console application is more fully tested, I'll post that on Code Project and share credit with the zam664, who authored the originating code.

Thanks,
Kosh2010
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900