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. the sql error -1

the sql error -1

Scheduled Pinned Locked Moved Database
helpdatabasequestion
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.
  • W Offline
    W Offline
    williamchou
    wrote on last edited by
    #1

    when using embeded sql,i declare and open a cursor in a function which worked well,and fetch record from the cursor in other function,the problem was that the record had been fetched,but the return sql code was -1,why? and the other problem:the similar problem occured when declare and open a cursor,the return sql code was -1,it's bad result. thans!

    G 1 Reply Last reply
    0
    • W williamchou

      when using embeded sql,i declare and open a cursor in a function which worked well,and fetch record from the cursor in other function,the problem was that the record had been fetched,but the return sql code was -1,why? and the other problem:the similar problem occured when declare and open a cursor,the return sql code was -1,it's bad result. thans!

      G Offline
      G Offline
      Grimolfr
      wrote on last edited by
      #2

      Without some sort of sample code, my guess would be that your cursor isn't declared as a global cursor, and you're having scope issues trying to access it from different routines.


      Grim

      (aka Toby)

      MCDBA, MCSD, MCP+SB

      Need a Second Life?

      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