Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CRecordset and SQL Server 2000

CRecordset and SQL Server 2000

Scheduled Pinned Locked Moved C / C++ / MFC
databasesql-serversysadmin
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SuperGeek
    wrote on last edited by
    #1

    Hey everyone!!! I've been getting VERY STUPID DB exception raised by ODBC driver while trying to call CRecordset::Open(....) function. The message says "Restricted data type attribute violation". Note that my data layer is SQL Server 2000. If there is a POOR one who has suffered thru the same, please share your grief with me. Big thanks ahead. Kirill.

    L 1 Reply Last reply
    0
    • S SuperGeek

      Hey everyone!!! I've been getting VERY STUPID DB exception raised by ODBC driver while trying to call CRecordset::Open(....) function. The message says "Restricted data type attribute violation". Note that my data layer is SQL Server 2000. If there is a POOR one who has suffered thru the same, please share your grief with me. Big thanks ahead. Kirill.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I've had the same error using SQL Server V7.0. It turned out that the order of the DoFieldExchange() member function of the recordset derived from CRecordset have to be in the same order as the table definition.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups