Reputation: 141
I'm using SQL Server on Windows 8, 32bit, 2GB memory. I want to execute a .sql
file of 3.5 GB size.
Tried doing:
.sql
, to reduce redo log size - NO LUCKWould .bak
file help ?
Is there (I hope there is) a way to do what I'm trying to do, in a good way ?
Thank you.
Upvotes: 5
Views: 2557
Reputation: 347
According to msdn https://msdn.microsoft.com/en-us/library/ms170572.aspx
1) Open a command prompt window.
2) In the Command Prompt window, type: sqlcmd -S myServer\instanceName(local) -i C:\myScript.sql(path where sql script exists)
3) Press ENTER.
Upvotes: 3
Reputation: 4539
I was able to run a 17.9 GB
file using osql with something similar to the following command line by running it locally from command prompt. It may take quite a long time though.
osql -S . -d Test -E -i script.sql
Upvotes: 2