sql - How to debug an intemittent error using Progress OpenEdge database -
i have program fails intermittently in complex query.
the error reads:
system.data.sqlclient.sqlexception: cannot fetch row ole db provider "msdasql" linked server "linkedserver".
the query looks this:
select replace([job-no],'m0','') keytaskid, dbo.sfget_uniquetaskid([client-code],replace([job-no], 'm0', ''), 0, [trade-code]) hmsuniquetaskid, [latest-priority] prioritycode, [keyproperty] keyproperty, replace([job-no],'m0','') keyjob, [job-type] tasksubtype, convert(varchar(6),[maint-officer]) officer, left(forename + ' ' + surname, 50) officername, [job-no] + ' ' + left(rtrim(replace([text-line], ';', char(13))), 480) description, dbo.sfget_formatteddate([target-date],0) duedatetime, [current-stage-code] currentstagecode openquery(linkedserver, ' select distinct "rm-job"."job-no", "rm-job"."client-code", "rm-job"."latest-priority", "rm-job"."trade-code", "rm-job"."job-type", "rm-job"."target-date", "rm-job"."maint-officer", "rm-job"."text-line", "rm-job"."current-stage-code", "rm-job"."place-ref", "ih_officer".forename, "ih_officer".surname "pub"."rm-job" left outer join "pub"."ih_officer" on ("ih_officer"."officer-code" = "rm-job"."maint-officer") "rm-job"."job-type" = ''gass'' , "rm-job"."job-status" = 06 , "rm-job"."contractor" = ''nwh001'' ') ibstasks inner join [svsextract].[dbo].property prop on ibstasks.[place-ref] = prop.usercode
i have been testing manually using sql server management studio. occassionally fails works ok.
i @ loss how can debug error cannot reproduce @ will.
any suggestions?
i'm not proficient in sqlclients , progress myself but: progress knowledgebase might give solution!
this entry instance describes similar error, if version mentioned might older 1 use? (always post version when asking openedge - there's lots of older installations out there , progress has evolved quite bit during last couple of years).
the knowledgebase best searched using google:
search instance: site:knowledgebase.progress.com msdasql
, you'll 48 results.
Comments
Post a Comment