简体   繁体   English

如何从大型sql文件还原数据库?

[英]How to restore a database from large sql file?

I have a 2 GB SQL file, generated from SQL Server database 2008, which includes data and schema. 我有一个2 GB的SQL文件,它是从SQL Server数据库2008生成的,其中包括数据和架构。 SQL Server 2008 Express does not even open the file saying an error: SQL Server 2008 Express甚至不会打开文件并显示错误:

Error: HRESULT E_FAIL has been returned from a call to a COM component 错误:对COM组件的调用已返回HRESULT E_FAIL

but, the file opens in word pad while it just hangs after loading the file. 但是,文件在写字板中打开,而在加载文件后才挂起。

Any idea or suggestions what is the problem and how to overcome? 任何想法或建议是什么问题以及如何克服?

I experienced similar issue before, this is how I fixed it: 我之前遇到过类似的问题,这是我如何解决的问题:

  1. Go to Control Panel -> Clock, Language, and Region -> Change location 转到控制面板->时钟,语言和区域->更改位置
  2. Change your location in the format tab to English (United States) and in the location tab change to United States. 在格式选项卡中将您的位置更改为英语(美国),在位置选项卡中将您的位置更改为美国。

Also please make sure that the Language for non-Unicode program section that you can find inside the Administrative Tab in the Change Location section should be set to English (United States). 另外,请确保将您在“ Change Location部分的“ Administrative Tab中可以找到的“ Language for non-Unicode programLanguage for non-Unicode program部分设置为英语(美国)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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