Click here to Skip to main content
15,897,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I am making a windows application
I am inserting Client information through store procedure and passing data table
and taking that id through out parameter and inserting other details of that client.
It is inserting all details but If I want to modify that Client details how should i do.
Posted

1 solution

Hi,

You can write another procedure or you can can modify your existing one.

If you send ID null or some default value then that should insert and out the ID value

if you send ID( Not null or not some default value ) then you should update the row

by
SQL
update 
SQL and put Id in where clause.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900