An Array value cannot be written to the root level of a BSON document

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Critical - P2
    • None
    • Affects Version/s: 2.0
    • Component/s: BSON
    • Environment:
      Windows Server 2008 R2
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I am writing a small application.

      I am querying data from SQL server using SqlDataReader object. I am using "ToBsonDocument" extension method on this object to create BsonDocument. While using this extension method i am getting above mentioned exception.

      Could you please help me to solve this issue. Or let me know if i am doing anything wrong. Let me know what would be the best way to export data from SQL server to mongoDB so that i can be able to execute some queries in mongoDB similar to SqlServer.

      Thanks in advance.

              Assignee:
              Unassigned
              Reporter:
              Deepak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: