Getting error while running 50 MB script on SQL Server 2008 R2

后端 未结 6 1991
醉梦人生
醉梦人生 2020-12-23 08:50

I am using SQL Server 2008 R2, I have a script to update the DB, that script is approx 50 MB in size and contains some about 800,000 lines.

Error:

6条回答
  •  盖世英雄少女心
    2020-12-23 09:38

    You can also try increasing the Maximum Server Memory value in server properties.
    To edit this setting, right click on server name and select Properties > Memory tab.

    I encountered this error trying to execute a 30MB SQL script in SSMS 2012.
    After increasing the value from 1024MB to 2048MB I was able to run the script.

提交回复
热议问题