Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I am copying records from one table to another using the ImportRow command, this works ok but when I tried to add the records to the database nothing happened, This I believe is due to the fact that ImportRow copies all the state information into the new table so Insert does not think it has anything to do.

 

I can live with that as I have to set a flag on each record to say where it came from.

 

The problem is when I call my insert records routine it thinks that it has to run an UPDATE command and not an INSERT command so I get the error Update requires a valid update command.

 

Does anyone know how to get over this apart from doing it the long way by adding a newrow and setting each column individually?, which works but I have 7 tables to copy from and was hoping to do it in a single routine.

 

Thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...