SQL Server 2008: Error creating window handle

那年仲夏 提交于 2019-12-24 01:47:11

问题


I have N number of tables in my database, which holds around 0.6 million records. I've created a SQL script which copies this data into same tables (basically it's a script to generate more data). I've tested the script it runs fine for small data (10k records). When I tried it to copy all data, it throws an error:

An error occurred while executing batch. Error message is: Error creating window handle.

1.What is the meaning of this error in SQL Server?

2.Does it has to do anything with my SQL in script, or is this cause of other component of SQL Server?


回答1:


Handles are Windows tools to manage OS resources. When some app on your machine have memory leaks - you can run out of handles and this error occurs. Current state of handles can be seen in Task Manager (Handle Count)

As said in comments - it's a client side issue. For example large resultsets/query output to grid may end up to this error.

Solution: Reboot your PC, minimize the output of query. Also you can try to launch script via SQLCMD.

More about you can read here.

Some explanation here.



来源:https://stackoverflow.com/questions/37064620/sql-server-2008-error-creating-window-handle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!