Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

import records only remaining records.


This topic is 8067 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a way to import records, but only the remaining records ?

I have a FM system that pulls out data from a SQL Server database, but as the data are updated on FM in case the record happens to be updated on SQL Server I wouldn't like to update that data on the next impoort. I've tried to use the update radio button on the import window, but if I have to choose a field to be imported.

The SQL Server database table doesn't have a date field so I would like to know if there is a way to import only the new records from SQL Server.

Posted

You haven't given us your definition of "new".

How do you know whether a particular record coming back from SQL Server is new or not?

Depending upon that, you may want to perform a query on SQL Server to only get the new records. Or you may want to set up the import to ignore the old records. Or you may want to import into a temporary FM File where you can do some calcs that determine new-ness, and then import into your final DB from that temporary one.

HTH.

Posted

Ok. Sorry.

For example, everyday this import script will be activated so today I am using the script for the first time and I import all the SQL Server records . Tomorrow the script will be activated again and the new records for me will be the ones that haven't been imported today.

The import option in FM has a radiobutton that permits to update the remaining records, but I have to choose at least one field to be imported and that's why this option doesn't work for my case otherwise it would be perfect. Is there something I'm not noticing, that should be done with FM to import only the remaining records ?

I wouldn't like to create another file because this system is already very big with 32 files and that wouldn't be the way out in my case.

I appreciate your help.

This topic is 8067 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.