SQL Server 2012 Insufficient Memory

Needed to be able to convert a SQL Server 2014 database to SQL Server 2012 to give to an external third party who can only run SQL Server 2012.

Scripted out the database and data in SQL Server 2014.

Went to SQL Server 2012 to run the script and encountered the error:


Insufficient Memory to continue the execution of the program.


SQlServerMemory

Script was over 30MB.

To resolve I had to use SQLCMD to execute the script.

sqlcmd -S SQLServer2012\2012 -i D:\export.sql