Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RowsCopy

Status
Not open for further replies.

extempore

Programmer
Jun 1, 2001
71
0
0
US
Hi all,

I have 2 dws (dw_1 and dw_2) for which I am trying to do a rowscopy from dw_1 to dw_2. I am getting a return code -1 all the time. What could be the reason? This is my code:

Long llRow
Integer i, j, liReturn, liRowsCopy, liRowsMove

IF dw_1.RowCount() > 0 THEN
FOR i = j TO dw_1.RowCount()
llRow = dw_1.GetSelectedRow(i)
IF llRow > 0 THEN
liRowsCopy = dw_1.RowsCopy(llRow, llRow, Primary!, dw_2, 1, Primary!)
j = j + 1
ELSE
EXIT
END IF
NEXT
END IF

Thanks in advance.
 
the dataobjects must be the same ( its structure )

liRowsCopy = dw_1.RowsCopy(llRow, llRow, Primary!, dw_2, dw_2.rowcount() + 1, Primary!)
 
Thanks a bunch. Second DW had one additional column. Thanks again.
 
Hi Everybody,
I need store some data from a database into an other.
I try pipeline, rowscopy, and step row by row, but it's so slow i think.
Does anyone know something what is faster like these?
(Pipeline was the best slower:-(
erie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top