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. Database & SysAdmin
  3. Database
  4. Help! - Really wierd error...

Help! - Really wierd error...

Scheduled Pinned Locked Moved Database
databasehelpxmlannouncement
2 Posts 1 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
    soup
    wrote on last edited by
    #1

    Hi, I have been using ADO for a while now in my current project. Everything seemed to be working well (wishful thinking) until I noticed the following sequence of events: 1. use connection.Execute to run a UPDATE/DELETE etc query against the connected database 2. use connection.OpenSchema to get any schema information back 3. result is the '...the application is using argument that are of the wrong type...' error Has anyone here experienced this bug, whereby using the Execute method, the connection object seems to get tainted against the OpenSchema method working properly. I tried to disconnect, then reconnect before doing the OpenSchema call, but the same result. Please help! Simon

    S 1 Reply Last reply
    0
    • S soup

      Hi, I have been using ADO for a while now in my current project. Everything seemed to be working well (wishful thinking) until I noticed the following sequence of events: 1. use connection.Execute to run a UPDATE/DELETE etc query against the connected database 2. use connection.OpenSchema to get any schema information back 3. result is the '...the application is using argument that are of the wrong type...' error Has anyone here experienced this bug, whereby using the Execute method, the connection object seems to get tainted against the OpenSchema method working properly. I tried to disconnect, then reconnect before doing the OpenSchema call, but the same result. Please help! Simon

      S Offline
      S Offline
      soup
      wrote on last edited by
      #2

      Hello, I seem to have fixed this wierd error, though I don't know why it did! When I do an action query, I use the connection.Execute method as mentioned. I passed it &vtMissing for the records affected parameter as I saw this in a MSDN example somewhere. However, and this is the noodler, if I pass NULL for the records affected parameter, the problem goes away! No problem, but I don't see why this would fix it. Simon

      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