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. Visual Basic
  4. Storedprocedure execution error.

Storedprocedure execution error.

Scheduled Pinned Locked Moved Visual Basic
helpsharepoint
5 Posts 3 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
    specialdreamsin
    wrote on last edited by
    #1

    Hi all, The following code is giving "Error: The rowset is not bookmarkable." error. please help me out.                         Dim cmd As New ADODB.Command                         cmd.ActiveConnection = Vcn                         cmd.CommandType = adCmdStoredProc                         cmd.CommandText = "sp_help('CNSM')"                         If Vrs.State = 1 Then Vrs.Close                         Vrs.CursorLocation = adUseClient                         Vrs.CursorType = adOpenDynamic                         Set Vrs = cmd.Execute                         Set DG1.DataSource = Vrs Set DG1.DataSource = Vrs line is giving above error.. Ramesh Sambari

    Knowledge is like honey. Collect it, to make life sweet.

    M 1 Reply Last reply
    0
    • S specialdreamsin

      Hi all, The following code is giving "Error: The rowset is not bookmarkable." error. please help me out.                         Dim cmd As New ADODB.Command                         cmd.ActiveConnection = Vcn                         cmd.CommandType = adCmdStoredProc                         cmd.CommandText = "sp_help('CNSM')"                         If Vrs.State = 1 Then Vrs.Close                         Vrs.CursorLocation = adUseClient                         Vrs.CursorType = adOpenDynamic                         Set Vrs = cmd.Execute                         Set DG1.DataSource = Vrs Set DG1.DataSource = Vrs line is giving above error.. Ramesh Sambari

      Knowledge is like honey. Collect it, to make life sweet.

      M Offline
      M Offline
      Moreno Airoldi
      wrote on last edited by
      #2

      I'm definitely rusty on VB6 & ADO, but I think your problem is here: Vrs.CursorType = adOpenDynamic Try to change it to: Vrs.CursorType = adOpenForwardonly

      2+2=5 for very large amounts of 2 (always loved that one hehe!)

      S 1 Reply Last reply
      0
      • M Moreno Airoldi

        I'm definitely rusty on VB6 & ADO, but I think your problem is here: Vrs.CursorType = adOpenDynamic Try to change it to: Vrs.CursorType = adOpenForwardonly

        2+2=5 for very large amounts of 2 (always loved that one hehe!)

        S Offline
        S Offline
        specialdreamsin
        wrote on last edited by
        #3

        Hi, I have tried all four types of Cursor Types. But no use... Please give me some other solution. Ramesh Sambari

        Knowledge is like honey. Collect it, to make life sweet.

        M D 2 Replies Last reply
        0
        • S specialdreamsin

          Hi, I have tried all four types of Cursor Types. But no use... Please give me some other solution. Ramesh Sambari

          Knowledge is like honey. Collect it, to make life sweet.

          M Offline
          M Offline
          Moreno Airoldi
          wrote on last edited by
          #4

          Ok I found out where the problem is: see here[^].

          2+2=5 for very large amounts of 2 (always loved that one hehe!)

          1 Reply Last reply
          0
          • S specialdreamsin

            Hi, I have tried all four types of Cursor Types. But no use... Please give me some other solution. Ramesh Sambari

            Knowledge is like honey. Collect it, to make life sweet.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            An easier link to follow: http://support.microsoft.com/kb/278408[^]

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            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