我正在尝试将UFT与Sybase连接。但无法进步。 以下是我在尝试差异连接字符串时收到的错误消息:
[08001] [Native Code:30012] [ASEOLEDB]客户端无法建立连接
连接字符串
1)objConnection.open" Driver = {Adaptive Server Enterprise}; Provider = ASEOLEDB; Data Source = ServerName / xxx.xxx.xxx.xxx:PortNumber,Catalog = db; User Id = UID; Password = PWD;" (请注意,当使用Microsoft visual basic进行Sybase连接时,字符串工作正常。 2)objConnection.open" Driver = {Adaptive Server Enterprise};提供商= ASEOLEDB;服务器= sreverName / IPADD;端口= 5000;分贝=分贝; UID =用户标识; PWD =密码;"
我也使用DSN减少连接。使用的端口是 - 5000,5001,1439,2638,4950
答案 0 :(得分:0)
我遇到了类似的问题 - 不确定对我有用的东西会对你有用,但是从我的努力中尝试任何 - 粗体的那些为我工作
' objConnection.Open "Provider=iAnywhere Solutions 12 - Oracle;Server =qwe.us.net.intra:1523;User Id =abc;Password=t#P2h%mUxUh;Database = SCS"
' objConnection.Open "Provider=OraOLEDB.Oracle;SERVER=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=qwe.us.net.intra)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=REPORTSQ.us.net.intra)));uid=abc;pwd=t#P2h%mUxUh];"
' objConnection.Open "Driver={Microsoft ODBC Driver for Oracle};Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=REPORTINGQ.us.net.intra)(PORT=1523))(CONNECT_DATA=(SERVICE_NAME=REPORTSQ.us.net.intra)));uid=abc;pwd=t#P2h%mUxUh];"
' objConnection.Open "Driver={Microsoft ODBC Driver for Oracle};Data Source=REPORTINGD.us.net.intra:1523;uid=abc;pwd=t#P2h%mUxUh];"
' objConnection.Open "Provider=MSDAORA;Server =REPORTINGD.us.net.intra:1523;User Id =abc;Password=t#P2h%mUxUh];Database = SCS"
' objConnection.Open "Driver={Microsoft ODBC for Oracle};" & "Server=REPORTINGQ.us.net.intra;" & "Uid=abc;" & "Pwd=t#P2h%mUxUh]"
' objConnection.Open "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;" & "User ID=abc;Password=t#P2h%mUxUh];Data Source=DWH_QA"
' objConnection.Open "Driver={Adaptive Server Enterprise};User ID=abc;Password=oc1b2008;Server=jdbc:sybase:Tds:scs.us.net.intra"
' objConnection.Open "Provider=Sybase.ASEOLEDBProvider.2;User ID=abc;Password=oc1b2008;Server Name=jdbc:sybase:Tds:scs.us.net.intra,50000; Initial Catalog=s1w"
' objConnection.Open "Provider=Sybase.ASEOLEDBProvider.2;User ID=abc;Password=oc1b2008;Data Source=jdbc:sybase:Tds:scs.us.net.intra,50000; Catalog=s1w"
' objConnection.Open "Provider=ASEOLEDB;User ID=abc;Password=oc1b2008;Data Source=jdbc:sybase:Tds:scs.us.net.intra,50000; Catalog=s1w"
' objConnection.Open "Provider=ASEOLEDB;User ID=abc;Password=oc1b2008;Server Name=jdbc:sybase:Tds:scs.us.net.intra,50000; Catalog=s1w"
' objConnection.Open "Driver={Sybase ASE ODBC Driver};User ID=abc;Password=oc1b2008;NetworkAddress=jdbc:sybase:Tds:scs.us.net.intra,50000; Db=s1w"
' objConnection.Open "Driver={Sybase ASE ODBC Driver};User ID=abc;Password=oc1b2008;NetworkAddress=jdbc:sybase:Tds:scs.us.net.intra:50000; Db=s1w"
' objConnection.Open "Driver={Sybase ASE ODBC Driver};User ID=abc;Password=oc1b2008;NA=scs,50000; Db=s1w"
' objConnection.Open "Driver={Sybase ASE ODBC Driver};User ID=abc;Password=oc1b2008;Srvr=jdbc:sybase:Tds:scs.us.net.intra:50000"
' objConnection.Open "Driver={Sybase ASE ODBC Driver};User ID=abc;Password=oc1b2008;Srvr=scs.us.net.intra:50000"
objConnection.Open" Driver = {Adaptive Server Enterprise}; User ID = abc; Password = oc1b2008; Server = scs.us.net.intra; port = 50000; Db = s1w" 强>
objConnection.Open" Driver = {Sybase ASE ODBC Driver}; User ID = abc; Password = oc1b2008; NA = scs.us.net.intra,50000; DB = S1W" 强>