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

后端 未结 6 1984
醉梦人生
醉梦人生 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:37

    use the command-line tool SQLCMD which is much leaner on memory. It is as simple as:

    SQLCMD -d  -i filename.sql
    

    You need valid credentials to access your SQL Server instance or even to access a database

提交回复
热议问题