简体   繁体   中英

SQL Server Data Import using a .sql extension dump

I am trying to import a 15 gb .sql extension dump in SQL Server 2012. I tried the import using sqlcmd command line utility but the dump import failed after importing around 2gbs of data. I didnt find any syntax error in the dump file. I tried this command to import sqlcmd -S (Server) -d (database) -i (filename) So i have a couple of questions:

  1. Is there another utility from which i can import .sql extension db dump
  2. Is there a limitation on sqlcmd in importing large dumps.

Thanks in advance.

There's osql command line utility. It also comes with SQL Server and it's located in Tools\\Binn

Command syntax is

osql –H <workstation_name> -S <server_name[\instance_name]> -U <user_login_ID> -P <login_password> –i <full_path_to_script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM