data access help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
i have a stored procedure that will always return one row.

can someone please show me the c# syntax (or direct me to a good reference
article) to take the 1 row resultset from my stored procedure and drop it
into an untyped DataRow?

thanks,
rodchar
 
rodchar,

As sloan said, the better way is to use output parameters.

If you need it in a data row though, then you can just attach the
command to a data adapter and then fill a data table, and then get the first
row.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top