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. How do i delete a record set???

How do i delete a record set???

Scheduled Pinned Locked Moved C / C++ / MFC
questiondatabasecomhelp
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.
  • T Offline
    T Offline
    TommyKnocker
    wrote on last edited by
    #1

    i am using the odbcrecordset class from the threat: www.codeproject.com/database/odbcrecordset.asp but i don't know how i can delete a recordset in my database? someone has an idea??? thanx for help!!! tom.

    C 1 Reply Last reply
    0
    • T TommyKnocker

      i am using the odbcrecordset class from the threat: www.codeproject.com/database/odbcrecordset.asp but i don't know how i can delete a recordset in my database? someone has an idea??? thanx for help!!! tom.

      C Offline
      C Offline
      Chad Koehler
      wrote on last edited by
      #2

      :confused: What do you mean by recordset? Do you mean you want to delete all of the data that is contained in your recordset? Or do you want to delete an entire table or view? CRecordset (which ODBCRecordset is based on) has a Delete() function, which will delete the currently selected record. You could just loop through each record and delete it from the database. If you want to drop an entire table or view, you should use the CDatabase class. Look at the ExecuteSQL() function.

      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