I am looking for advice on how should I do following:
Now I want to update them into database with most efficient manner. Options I know are
I am not sure which method is faster one or better one. Any idea?
EDIT : Why I am afraid of using Stored Procedure
Thanks.
如果您有一个字段包含来自数据库中其他字段的计算,最好将其设为计算字段或通过触发器维护它,以便在任何来源更改数据时,都会保留计算。
You can create a .net function which can be called directly from sql here is the link how to create one http://msdn.microsoft.com/en-us/library/w2kae45k%28v=vs.90%29.aspx . After you created the function run the simple update statement
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.