返回首页
当前位置: 主页 > 网络编程 > Jsp实例教程 >

mapx连接ORACLE如何连接代码

时间:2011-04-08 10:08来源:知行网www.zhixing123.cn 编辑:麦田守望者

Public Sub LoadServerTableMap(ByVal TableName As String, LoadTableMap As Map)
Dim Lyr As MapXLib.Layer
Dim LayerInfo As New MapXLib.LayerInfo

LayerInfo.Type = miLayerInfoTypeServer
LayerInfo.AddParameter "NAME", TableName
LayerInfo.AddParameter "connectstring", "uid=system;pwd=manager;srvr=TRANDB"
LayerInfo.AddParameter "query", "select * from " + TableName
LayerInfo.AddParameter "cache", "off"
LayerInfo.AddParameter "MBRSearch", "on"
LayerInfo.AddParameter "toolkit", "ORAINET"

LayerInfo.AddParameter "AutoCreateDataset", 1
LayerInfo.AddParameter "datasetname", TableName
Set Lyr = MainFrm.MainMap.Layers.Add(LayerInfo, 1)

Set Lyr = Nothing
Set LayerInfo = Nothing
End Sub<-- viewthread_post_sig -->

 

------分隔线----------------------------
标签(Tag):数据库 oralce
------分隔线----------------------------
推荐内容
猜你感兴趣
博聚网