简体   繁体   中英

Timed out when access SQL Server 2008 r2

I'm developing a web project and for a start I need to create tables, procedures, views, etc.

At the first (and in debug mode) the code is running fine and the first tables are created but suddenly the transaction throws me an error Timed out

If I start again to run the code (in debug mode) it doesn't make any change

In order to run and continue to create the rest's I have to build the code again (without have made any change on it). I Published again and then continues to create more until will stops again and make the same actions as before.

I haven't test it yet in my web to see what will happen, and the reason is simple... my ISP didn't giving me the choice to create one more data base (because that is my contract I use).

Any way I need to know why that happens?

I have to say that I use some delays in my code especially when it reads from an xml file this file contains structure's of tables, procedures etc. And from where I read and execute thru my code behind in vb.net.

经过多次尝试找到解决方案后,我注意到问题是从读取XML文件开始的,我在该文件中设置了sleeps 300毫秒的sleeps ,现在代码可以正常运行,但运行缓慢...感谢所有提供的帮助

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM