1个回答
展开全部
Global oOraSess As Object
Global oOraDb As OraDatabase
Global Const ORADB_ORAMODE = &H1&
Set oOraSess = CreateObject("OracleInProcServer.XOraSession")
Set oOraDb = oOraSess.OpenDatabase(DSN, UID & "/" & PWD, ORADB_ORAMODE)
这样也可以
db = "Provider=MSDAORA.1;Password=chun;User ID=chun;Data Source=chun;Persist Security Info=True"
conn.CursorLocation = adUseClient
conn.Open db
'chun 是数据库名 密码 连接数据源
Global oOraDb As OraDatabase
Global Const ORADB_ORAMODE = &H1&
Set oOraSess = CreateObject("OracleInProcServer.XOraSession")
Set oOraDb = oOraSess.OpenDatabase(DSN, UID & "/" & PWD, ORADB_ORAMODE)
这样也可以
db = "Provider=MSDAORA.1;Password=chun;User ID=chun;Data Source=chun;Persist Security Info=True"
conn.CursorLocation = adUseClient
conn.Open db
'chun 是数据库名 密码 连接数据源
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询