Question

What does this error "Error HRESULT E_FAIL has been returned from a call to a COM component"

in SQL Server 2008r2, I create file sample. SQL from SampleDb with Task->Genaret Scrpits, the file content Data and schema, my file size is 137m, when I want to open this file, This error was generated.

Please help me to solve.... Thanks

Was it helpful?

Solution

This error is likely due to the size of your SQL Query file.

It may be simplest to find an alternative way to transfer your data, such as using the "Import Data" Wizard. (Right-click on your destination database and select Tasks -> "Import Data.")

Or, if you need to run this Query File, you could try using "sqlcmd" as discussed in this post and this related answer.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top