SQL Server Error - HRESULT E_FAIL has been returned from a call to a COM component

耗尽温柔 提交于 2019-11-28 02:15:59

问题


I have a huge 200MB .SQL file. When I try to open this in SQL server management studio 2008, I get the error -Error HRESULT E_FAIL has been returned from a call to a COM component.

What could the reason be and how to fix it ? Is this caused due to big files ? It does not happen when I open a 2-3 KB file.


回答1:


please use

sqlcmd -S .\MYSQLSERVER2008 -U MyUsername -P MyPassword -i C:\Database\script.sql

http://technet.microsoft.com/en-us/library/ms180944.aspx



来源:https://stackoverflow.com/questions/19647922/sql-server-error-hresult-e-fail-has-been-returned-from-a-call-to-a-com-compone

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