Running data script fails
keymoo
Posts: 38
Hi,
I have scripted out a database using SQL Packager version 5.4.0.89 against SQL Server 2005 SP2.
I saved the schema and data has two separate SQL Scripts. The schema script runs fine, however the data script gives me this error when I run it:
My data file is 350MB so I suspect it has something to do with the size of the file. Is there any way to put GO statements in every n number of rows? Do you think inserting GO statements will solve the problem?
Thanks,
keymoo
I have scripted out a database using SQL Packager version 5.4.0.89 against SQL Server 2005 SP2.
I saved the schema and data has two separate SQL Scripts. The schema script runs fine, however the data script gives me this error when I run it:
Msg 102, Level 15, State 1, Server SQLSERVER1, Line 45514 Incorrect syntax near '2'.
My data file is 350MB so I suspect it has something to do with the size of the file. Is there any way to put GO statements in every n number of rows? Do you think inserting GO statements will solve the problem?
Thanks,
keymoo
Comments
If I run this file into my SQL 2005 SP2 server using sqlcmd.exe I get this error: Any ideas how to fix that one?
Thanks
This looks to be a complex problem with a multitude of causes. Microsoft cover this on their Technet site, but there doesn't seem to be a clear solution except to increase the server memory or clear out some of SQL Server 2005's caches ie DBCC FREEPROCCACHE.