OLE DB: ensure the next connection will contain most recent change

D

DapperDanH

Hello,
I have a C# MS Project 2002+ addin. The addin contains a button on the
toolbar.

When the user hits the button:

1) make a connection to the activeproject.mpp using OleDb.
2) Based upon information gathered from OleDb queries, changes are made to
the activeproject through the object model.
3) Save the activeproject using the object model.
4) Open and close an oleDB connection to an empty msproject file.

If the user pushes the addin button directly afterward, OleDb is returning
the old information. The UI shows the updated information, but the queries
return old information.

What am I doing wrong? How can I ensure the next OleDB connection will
contain the most recent changes made?

Thanks,
Dan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top