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. Parametrise stored procedure

Parametrise stored procedure

Scheduled Pinned Locked Moved Visual Basic
databasehelp
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.
  • S Offline
    S Offline
    Sasmi
    wrote on last edited by
    #1

    :confused:Hi guys can you please help me My problem is i made an parameterise stored procedure (Select Query) i want to use it in vb to show the data of that stored procedure(Select Query)on ListView control using Adodb.RecordSet can any one help me regarding this My Stored Procedure is as follow on Table1 Procedure Name "Test" Syntex "Select @PN as PN ,@VA As VA, Table1.* FROM dbo.Table1" Parameters are @PA and @VA i am trying it by using recordset if you have any other idea please give me. Thanks Sasmi

    D 1 Reply Last reply
    0
    • S Sasmi

      :confused:Hi guys can you please help me My problem is i made an parameterise stored procedure (Select Query) i want to use it in vb to show the data of that stored procedure(Select Query)on ListView control using Adodb.RecordSet can any one help me regarding this My Stored Procedure is as follow on Table1 Procedure Name "Test" Syntex "Select @PN as PN ,@VA As VA, Table1.* FROM dbo.Table1" Parameters are @PA and @VA i am trying it by using recordset if you have any other idea please give me. Thanks Sasmi

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

      The SELECT statement won't work, if I uderstand what your trying to do. There's isn't enough detail in your question to determine this! If you're looking to return a record or filtered set of records, it might look something like this

      SELECT PN, VA FROM Table1 WHERE PN=@PN AND VA=@VA

      If you're looking to return all the data in those two columns in Table1, then no parameters are necessary:

      SELECT PN, VA FROM Table1

      Dave Kreskowiak Microsoft MVP - Visual Basic

      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