This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13273|Reply: 0

[Source] How SQL Server imports oversized .sql files

[Copy link]
Posted on 7/12/2017 4:51:32 PM | | |

Recently, when processing data, I encountered the need to migrate database tables to another server. Due to the large amount of data, consider migrating offline files.
The first guide is to migrate through backup and restore, but sometimes only one table needs to be migrated, so the script is generated.

Due to the large amount of data, the generated .sql files cannot be opened using SQL Server Management Tool SSMS. Through research, the solutions sorted out are as follows:
Option 1: Import through the command line.
The tools you can use are:
sqlcmd
osql
I use here


-E is used to log in using Windows authentication, and -U -P can be used instead.







Previous:【Summer】Tomato Garden Ghost Win7 Summer Special Edition v201707 [32-bit & 64-bit] Full driver board
Next:CORS setting WebApi cross-domain issue
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com