Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1086

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

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

      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 Unassigned
            Reporter:
            jdeep84 Deepak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: