TO WIND_CLOUDY
也下是用VB写的ORACLE数据库的连接,能连接上去。
Public gConnora As New ADODB.Connection
Public grstpublic As ADODB.Recordset
Public gstrOra As String '数据库连接串。
Public gstrSql As String '用于公众的SQL查询。
....
mstrPasswd = "lpsgdj" '数据库连接密码。
gstrOra = "Provider=MSDAORA.1;Password=||;User ID=lyd;Data Source=LPMIS;Persist Security Info=True"
gstrOra = Mid(gstrOra, 1, InStr(gstrOra, "||") - 1) & mstrPasswd & Mid(gstrOra, InStr(gstrOra, "||") + 2, Len(gstrOra))
gConnora.ConnectionTimeout = 30
gConnora.Open gstrOra
不知道连接SYBASE的连接字串怎么写? 这一句: Provider=MSDAORA.1