{
try
{
IWorkspaceFactory pWFactory = new SdeWorkspaceFactoryClass()
IPropertySet pSet = new PropertySetClass()
pSet.SetProperty("SERVER", "***")
pSet.SetProperty("INSTANCE", "***")
pSet.SetProperty("USER", "**")
pSet.SetProperty("PASSWORD", "****")
pSet.SetProperty("VERSION", "***")
IWorkspace pWorkspace = pWFactory.Open(pSet, 0)
m_FWorkspace = pWorkspace as IFeatureWorkspace
}
catch (Exception ex)
{
MessageBox.Show("SDE连接错误!")
}
}
启动SQL Server Management Studio,以SQL Server身份验证方式登录并接SQLServer数据库 接着运行sde安装程序ESRI.exe出现以下界面,选择rcSDE for Microsoft SQL Server 32位安装。点击下一步,选择完整安装,下一步: 空间数据库构架选择SDE方案...欢迎分享,转载请注明来源:内存溢出
评论列表(0条)