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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Output From Stored Procedures

Output From Stored Procedures

Scheduled Pinned Locked Moved Visual Basic
databasequestioncss
5 Posts 4 Posters 1 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.
  • D Offline
    D Offline
    Dreamer2007
    wrote on last edited by
    #1

    How can I use a stored procedure to return query results and populate a data grid control? I am using VB 6.0 and SQL 2005.

    T 1 Reply Last reply
    0
    • D Dreamer2007

      How can I use a stored procedure to return query results and populate a data grid control? I am using VB 6.0 and SQL 2005.

      T Offline
      T Offline
      Tom Wright
      wrote on last edited by
      #2

      Same way as if you were not using a stored procedure.

      Tom Wright tawright915@gmail.com

      D 1 Reply Last reply
      0
      • T Tom Wright

        Same way as if you were not using a stored procedure.

        Tom Wright tawright915@gmail.com

        D Offline
        D Offline
        Dreamer2007
        wrote on last edited by
        #3

        Thanks for replying. If you can kindly provide me with some vb 6.0 code to achieve this goal. A parameter is passed to the stored procedure at runtime and records are retrieved by the stored procedure which then populates the grid.

        N X 2 Replies Last reply
        0
        • D Dreamer2007

          Thanks for replying. If you can kindly provide me with some vb 6.0 code to achieve this goal. A parameter is passed to the stored procedure at runtime and records are retrieved by the stored procedure which then populates the grid.

          N Offline
          N Offline
          NetRams
          wrote on last edited by
          #4

          If you created the stored procedure, then replace that stored procedure name instead of where you have put query in your code earlier.

          Be simple and Be sample.

          1 Reply Last reply
          0
          • D Dreamer2007

            Thanks for replying. If you can kindly provide me with some vb 6.0 code to achieve this goal. A parameter is passed to the stored procedure at runtime and records are retrieved by the stored procedure which then populates the grid.

            X Offline
            X Offline
            Xandip
            wrote on last edited by
            #5

            consider a StoredProc "TEST" with parameters a and b, both of string datatype. call it like this.. Query = "TEST '"& value for a &"', '"& value for b &"'" now execute the Query as you do with simple queries...:)

            The name is Sandeep

            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