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. Calling SqlDataAdapter.Fill with parameters?

Calling SqlDataAdapter.Fill with parameters?

Scheduled Pinned Locked Moved Database
helptutorialquestion
3 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.
  • M Offline
    M Offline
    monrobot13
    wrote on last edited by
    #1

    I've got a project going here where I created my own SqlDataAdapter. The problem I'm running into is this...the SelectCommand for the adapter requires a parameter (ie. WHERE id = @id), but I have no idea how to supply this parameter to the Fill method of the adapter. Any help on this is much apprecitated, and if you need any more info just let me know. Thanks!

    - Aaron

    N 1 Reply Last reply
    0
    • M monrobot13

      I've got a project going here where I created my own SqlDataAdapter. The problem I'm running into is this...the SelectCommand for the adapter requires a parameter (ie. WHERE id = @id), but I have no idea how to supply this parameter to the Fill method of the adapter. Any help on this is much apprecitated, and if you need any more info just let me know. Thanks!

      - Aaron

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      da.SelectCommand.Parameters["@id"].Value = ??? da.Fill

      only two letters away from being an asset

      M 1 Reply Last reply
      0
      • N Not Active

        da.SelectCommand.Parameters["@id"].Value = ??? da.Fill

        only two letters away from being an asset

        M Offline
        M Offline
        monrobot13
        wrote on last edited by
        #3

        That seems to have worked perfectly. Thanks very much for the help.

        - Aaron

        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