0

Is there a way to use the existing Import features from SQL Server Manager, to import a CSV file and if the record (by primary key)exists update record and if it doesnt exist then insert or do i have to write custom scripts to do this?

1
  • 1
    Import means inserting things. Updating existing data isn't importing. If you want to update existing data, import the new data into a staging table and update the production table with them Commented Apr 28, 2017 at 14:02

1 Answer 1

1

You will have to write something custom for this. The import wizard cannot do this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.