I want to insert data into Database from C#. Below are the two ways I am trying.
- Using Stored Procedure - In this I have insert statement. Calling this stored procedure from C# by passing parameters.
- Using LINQ - In this, I am using Data Context, with that I will get table and calling InsertOnSubmit method by passing required parameter.
I am able to insert in both the ways. Right now we have less data so not able to judge which is better. And this Insertion will happen for millions of data. I will be calling this stored procedure or LINQ InsertOnSubmit for those many times.
Can anyone Suggest which of this method will be faster? Do we have any other way which is better than these also will be fine.
Thanks in Advance.