I need connection on vb script with Db2 v10.5 to extract data from db2. DB2 database is on another machine. Though I am using one connection string in VBA excel which is working fine for me however same is not working in VB script.
Connection string in VBA (Excel)
=============================================================
Set objmyconn = New ADODB.Connection Set objmycmd = New ADODB.Command Set objMyRecordset = New ADODB.Recordset
objmyconn.ConnectionString = "Data Source=XXXXXXX;User ID=XXXXX;password=XXXX;Provider=IBMDADB2.DB2COPY1;Persist Security Info=True;Location=;Extended Properties=;" objmyconn.Open
=========================================================================Earlier I am using Microsoft OLEDB provider for db2 in VB script but now I am using IBM db2 Oledb provider. A DB2 client already installed in my machine