Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with reading records from DB2 table
#1
Solved: 10 Years, 9 Months, 1 Week ago
Could someone please help me with this issue. I am trying to read all the data in all the columns of a table and the script leaves out some records, e.g. if I have 100 rows only 95 are read. Is theer a limit as how many records can be read.

Code:
DB2Cn.Open DB2ConnStr
Set getDB2Connect = DB2Cn
If getDB2Connect.Errors.Count = 0 Then
Set rs = DB2Cn.Execute(query,,adExecuteNoRecords)
colCount= rs.fields.count  ' to retrieve the no. of columns in recordset
rows = rs.fields(0).value 'rs.recordcount

Then I am using a for loop to get each row data.

Thanks,
Sqadri
Reply


Messages In This Thread
problem with reading records from DB2 table - by sqadri - 06-22-2012, 10:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading Global Sheet's DataTable Value Bhuvana 0 1,477 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Reading Value from Java Table arjun.singh 8 23,852 10-11-2017, 02:51 PM
Last Post: sivaji
  Reading data from excel sheet serenediva 1 8,900 03-03-2017, 10:07 AM
Last Post: vinod123
  QTP not reading all properties ishan.mahajan@adp.com 2 2,246 05-04-2016, 10:50 PM
Last Post: supputuri
  DB2 Connect connection with IE 11 SRP 1 2,414 12-18-2015, 12:41 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)