积极答复者
adodb连接Project 2007 和2010字符串问题

问题
-
在2002时可以使用ConnectionString ="Provider=Microsoft.Project.OLEDB.10.0;PROJECT NAME=test.mpp"
03时可以使用ConnectionString ="Provider=Microsoft.Project.OLEDB.11.0;PROJECT NAME=test.mpp"
下面的链接是错误的:
2007:ConnectionString ="Provider=Microsoft.Project.OLEDB.12.0;PROJECT NAME=test.mpp"
2010:ConnectionString ="Provider=Microsoft.Project.OLEDB.14.0;PROJECT NAME=test.mpp"
网上查资料说07已经不支持oledb了,那么有什么替代字符串或者方法吗?2010也一样.
答案
-
那你试试这个帖子建议的方法: http://social.msdn.microsoft.com/forums/en-US/tfsworkitemtracking/thread/c15ca99b-5aae-459c-ad26-0c0800999fc8/
只是你相应的把Microsoft Project 11.0 Object Library换成'Microsoft Project 12.0 Object Library或 14.
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Mike FengModerator 2011年11月28日 15:03
全部回复
-
那你试试 Provider=Microsoft.ACE.OLEDB.12.0
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
Another option is to use the 2003 Microsoft.Project.OLEDB.11.0 provider to connect to the 2007 mpp file. Please note that for this to work service pack 3 for Project 2003 must be installed
http://www.connectionstrings.com/ms-project
http://feiyun0112.cnblogs.com/ -
-
那你试试这个帖子建议的方法: http://social.msdn.microsoft.com/forums/en-US/tfsworkitemtracking/thread/c15ca99b-5aae-459c-ad26-0c0800999fc8/
只是你相应的把Microsoft Project 11.0 Object Library换成'Microsoft Project 12.0 Object Library或 14.
Mike Feng
MSDN Community Support | Feedback to us
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 Mike FengModerator 2011年11月28日 15:03