Calling SqlDataAdapter.Fill with parameters?
-
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
-
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
da.SelectCommand.Parameters["@id"].Value = ??? da.Fill
only two letters away from being an asset
-
da.SelectCommand.Parameters["@id"].Value = ??? da.Fill
only two letters away from being an asset
That seems to have worked perfectly. Thanks very much for the help.
- Aaron