开发者

C# export to excel from sql server

开发者 https://www.devze.com 2022-12-22 01:45 出处:网络
In my C# windows application, I am exporting sql ser开发者_高级运维ver data to excel on remote drive. But it is too slow.

In my C# windows application, I am exporting sql ser开发者_高级运维ver data to excel on remote drive. But it is too slow. However, if I export data to excel in the local drive, it is fast.

How can I increase the time if I want to export data to remote drive?

Thanks in advance...


Export to a temp folder on the local machine, copy it to the network and then delete the file from the temp folder. You could even do the copy and delete on a separate thread so the UI's not blocked.


If it is an option for you, export to the local drive and then copy/move the exported file to the remote drive.

0

精彩评论

暂无评论...
验证码 换一张
取 消