Question on how CopyRows Data Management works

Discussion created by jlindahl on Jan 5, 2012
Latest reply on Jan 5, 2012 by lpinner
I am trying to execute the copyrows_management(from, to) for tables.  My problem is when a table does not already exist in the "to" SDE database.  I receive the error "table or view does not exist."
Is this because the command will not work unless there is an existing table or feature class in the SDE database?

I'm trying to simply copy feature classes and tables from a PGDB into SDE.  My logic is if the target already exists, then overwrite, else if the target does not exist, then create it.

Thanks in advance.