F
Fred Chateau
I have a Windows Forms program that use to import CSV data to a SQL database
on a remote server. Previously, I simply had to wipe the server database and
import the new data over the old data. Now, I'm going to be adding mixed
records, some of which will update existing data on the server and some of
which are new records that must be inserted into the database. The number of
records is considerable, on the order of 300,000 records.
In the past, I simply called DataAdapter.FillSchema, and started importing
the data. My understanding is now I'm going to need to call
DataAdapter.Fill, which will download the entire server table before
importing the local CSV file. Is this necessary? Is there anyway to avoid
downloading all the server data and then uploading it back to the server?
To make matters more complicated, I have a composite primary key consisting
of two table columns. How should I handle this situation?
on a remote server. Previously, I simply had to wipe the server database and
import the new data over the old data. Now, I'm going to be adding mixed
records, some of which will update existing data on the server and some of
which are new records that must be inserted into the database. The number of
records is considerable, on the order of 300,000 records.
In the past, I simply called DataAdapter.FillSchema, and started importing
the data. My understanding is now I'm going to need to call
DataAdapter.Fill, which will download the entire server table before
importing the local CSV file. Is this necessary? Is there anyway to avoid
downloading all the server data and then uploading it back to the server?
To make matters more complicated, I have a composite primary key consisting
of two table columns. How should I handle this situation?