Click here to Skip to main content
15,031,361 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

How to create sql script using c# .net for insert or update?

I want to create sql script for insert and update sql tables using c# .net windows application.

I want to, If data is not in the database, so data should be insert otherwise data should be updated according to date, On single click event using c# .net windows application.
I want to create one script at a time of all tables.

So, Please help me. It's urgent.

Thank you in Advance.

Ankit Agarwal
Software Engineer
Updated 19-Nov-13 19:59pm
Er Daljeet Singh 20-Nov-13 1:58am
provide the structure of your table.
means on behalf of which table you want to update the record.
[no name] 20-Nov-13 1:59am
all tables of my database.
[no name] 20-Nov-13 2:00am
to run on another machine for update database.


I think you need this : OpenDBiff[^]

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