Für TCP/IP Verbindungen:
1 2 3 4 5 6 7 8 |
oConn.Open = "Provider=DB2OLEDB;" &_ "Network Transport Library=TCPIP;" &_ "Network Address=xxx.xxx.xxx.xxx;" & _ "Initial Catalog=MyCatalog;" &_ "Package Collection=MyPackageCollection;" &_ "Default Schema=MySchema;" & _ "User ID=MyUsername;" & _ "Password=MyPassword" |
For APPC connections:
1 2 3 4 5 6 7 8 |
oConn.Open = "Provider=DB2OLEDB;" &_ "APPC Local LU Alias=MyLocalLUAlias;" &_ "APPC Remote LU Alias=MyRemoteLUAlias;" &_ "Initial Catalog=MyCatalog;" &_ "Package Collection=MyPackageCollection;" &_ "Default Schema=MySchema;" & _ "User ID=MyUsername;" & _ "Password=MyPassword" |