Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10671

Re: Question about using the UNLOAD statement

$
0
0

Hi Edgard,

 

I think your method is perfect way, maybe you can alter it a little bit like this

UNLOAD SELECT * FROM iTransRow

WHERE

EXISTS (SELECT 1 FROM iTrans AS A WHERE A.Fecha >= '2014-01-01' AND iTransRow.IdLoc=A.IdLoc AND iTransRow.IdSeq=A.IdSeq)

TO '\\transfer\itransrow.dat'


If the corrupt table contains other index, you should try using other index to salvage data

select * from iTransRow with(index ("other_index"))


Best regards


Viewing all articles
Browse latest Browse all 10671

Latest Images

Trending Articles



Latest Images