I have the following code in the migration configuration seeding method:
string sqlQuery = // 22 mb file contents
context.Database.ExecuteSqlCommand( sqlQuery );
The ExecuteSqlCommand function is making Azure throw this error:
The service has encountered an error processing your request. Please try again. Error code 701. A severe error occurred on the current command. The results, if any, should be discarded.
Why might this be? I really can't find much information on it
SQL error 701 according to my googling is the following:
SQL Server has failed to allocate sufficient memory to run the query. This can be caused by a variety of reasons including operating system settings, physical memory availability, or memory limits on the current workload. In most cases, the transaction that failed is not the cause of this error.
May be time for an upgrade, or change what your query is pulling back or splitting it out into separate queries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With