CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2004
    Posts
    7

    Arrow SqlHelper/Typed Params/@@Identity

    Hi everybody,

    I'm working with SqlHelper and strong-typed datasets, updating my data by means of passing in a typed datarow into the ExecuteNonQueryTypedParams function. I now need to be able to retrieve the @@Identity from the stored procedure- How could I go about this? It seems that by passing in a datarow I don't have room to play with output parameters or the like. Stumped. Thanks...

    -Yarin

  2. #2
    Join Date
    Sep 2001
    Location
    Montreal Canada
    Posts
    1,080

    Re: SqlHelper/Typed Params/@@Identity

    Are you using a stored proc ? if so, then just return the @@Identity in your stored proc and use

    ExecuteScalar

    instead.
    Nicolas Bohemier

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured