ArcObjects , upgradeGeodatabsae

1094
1
07-21-2012 11:54 PM
muhannadS_
New Contributor II
Hi, I want to upgrade an Oracle database from 9.3.1 to 10 through a direct connection using arcobjects.

and can I use a reference to an .SDE file to initialize the connection?

if you can post some code/links will be appreciated.
0 Kudos
1 Reply
muhannadS_
New Contributor II
To those who are facing a similar issue, below is the solution:

Dim sdeWs As IWorkspaceFactory = New SdeWorkspaceFactory()
Dim workspace As IWorkspace = sdeWs.OpenFromFile(sde_path, 0)
Dim x As DataManagementTools.UpgradeGDB = New DataManagementTools.UpgradeGDB(workspace, "NO_PREREQUISITE_CHECK", "UPGRADE")
0 Kudos