huijial 发表于 2016-11-13 09:00:25

VB連接DB2 ADO

  DB2:
  conn.ConnectionString = "Driver={IBM DB2 ODBC DRIVER - DB2COPY1};" _
& "Database=;" _
& "Hostname=;" _
& "Port=50000;" _
& "Protocol=TCPIP;" _
& "Uid=;" _
& "Pwd=; "
  Mysql:
  conn.ConnectionString = "DRIVER={MySQL ODBC 5.1 Driver};" _
  & "SERVER=;" _
  & "PORT=3306;" _
  & "DATABASE=;" _
  & "USER=;" _
  & "PASSWORD=;" _
  & "OPTION=3;"
页: [1]
查看完整版本: VB連接DB2 ADO