请问,如果没有做任何检查,直接save 了就insert去sql server 2005,
大约需要多少时间?
==== 另一个问题 =====
最近我做了一个 Excel 导入 datagridview ,然后再从datagrdiview insert进去 SQL server
但是时间并不理想,100条,超过10秒
因为我需要从这100条数据中再每一条做检查,查看有没有在SQL server 里面
for i as integer = 0 to datagridview.rows.count -1
'这里先链接了一次数据库做查询
if Count > 0 then
Insert
else
Continue for
End
next
单单是这这个小问题,就花了我很多时间,我觉得不是很理想,请问哟没有办法能加速呢?
谢谢。