Re: Using Diffgrams for multiple insert/update/delete by W
W
Wed Oct 26 11:28:43 CDT 2005
Samba - is it a must that you only use One stored procedure? This adds a
little complication to the scenario. If you must though, then which db are
you using, Sql Server (T-Sql) or Oracle (PL/Sql)?
BTW, if you use multiple procs (one for each crud command), you can just use
the Update method of the dataadapter and it would definitely make things a
lot easier. You stated one proc for a reason so I'm not trying to dodge your
question, i just wanted to double check on this b/c the solutions will be a
little different.
Essentially, you can pass in a parameter to the proc indicating the action
to take. then, you'll have to branch out the command for each. The params
should be the same although you may or may not be using them all at any one
time.
Finally, how do you want to use the Diffgram specifically? Are you planning
on just creating a dataset with it or is there anything special that you
need to do with it (the update scenario as a whole) other than just using
the diffgram for rowstate?
"Samba" <Samba@discussions.microsoft.com> wrote in message
news:E9F5B6DE-BC30-4E36-AC97-AE365539E3C0@microsoft.com...
> Hi,
>
> I want to do multiple insert/update/delete of multiple rows using a single
> stored procedure using diffgram. Can I please get a small sample/link for
> achieving this. I just need the the stucture of the stored proc as I have
> the
> diffgram generated successfully.
>
> Advanced thanks.
>
> --
> Samba!