0

I am trying to migrate my database from SQL server to mongoDB, I've exported tables from my database, and wrote the corresponding mongoDB import function for it:

mongoimport -d dashboard -c col --type csv --file "C:/Users/sesa356116/text.csv" --headerline -f bu_id,bu_name,bu_id, 

this is getting executed, but when I am trying to see the data in robomongo, no records are getting displayed. What I want to know is after this import function are there any further steps that should be followed in order to get the corresponding records, any leads for the same will be helpful.

Karishma Dudhbade
  • 601
  • 5
  • 11
  • 12
  • What does the output of `mongoimport` say? If it ran successfully it should say some thing like "Imported 100 records" at the end. Does it say that? If not, what error messages are there? How are you checking that data is imported? Your command looks invalid, since it doesn't make sense to have both the `--headerline` and `-f` options specified. – wdberkeley Feb 16 '15 at 23:13
  • yes it ran successfully, I mean, I got "39 files imported", in the command statement if I am skipping any of them i.e. headerline and f, it's giving me error. – Karishma Dudhbade Feb 17 '15 at 05:19
  • Can you show how you are looking for the imported documents? – wdberkeley Feb 17 '15 at 17:07

0 Answers0