Hi,
I am a MS SQL administrator that is required to connect to a remote DB2 database to pull information via a linked server. I am not sure of the version of DB2 (I think 7?) and have no idea what it is running on.
I run multiple queries and when I search on a date or time field I get back sub-second responses. However if I search on a Timestamp field it is taking me 5 to 13 minutes to recieve a response. I am at a severe disadvantage to the fact that I can find out almost nothing about the system I have to pull from.
The actual statement that I am running against db2 looks like this.
select a.claim_nbr, case_nbr from mcdb.case a, mcdb.contact b
where (b.update_tstamp > TIMESTAMP(current date , (current time - 5000.0 seconds)))
and (a.case_nbr = b.case_nbr) and (a.case_nbr is not null)
I have narrowed the problem down to the timestamp field. Is there a performance consideration, or a better way of performing this that I am unaware of?
Thanks!
Radar