-1

I try to import / execute this file to SSMS 2012.

Ι have download and export the zip file and I have a .sql file of around 700MB.

I went to File --> Open --> File and selected the file but it is not working.

How can I import it?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user3456789
  • 3
  • 1
  • 6

1 Answers1

1

If the file is too large to open in SSMS then you can execute it using sqlcmd.

https://msdn.microsoft.com/en-us/library/ms170572(v=sql.110).aspx

How do you import a large MS SQL .sql file?

Community
  • 1
  • 1
Ben Kean
  • 182
  • 1
  • 10
  • sqlcmd -S -i C:\kickscrape_5-7-13\kickscrape.sql -o I open the cmd command and type the previous but it is not working because it says it could not find the file path in the system – user3456789 Feb 10 '15 at 19:28
  • If it says it can't find the path, then you are not pointing to the correct folder. Check to make sure C:\kickscrape_5-7-13\ is a valid location in your file system and the account running sqlcmd has access to it. – Ben Kean Feb 10 '15 at 19:39
  • I checked it and it is the right path. Should I make something different to the command like ? – user3456789 Feb 13 '15 at 14:03
  • maybe sqlcmd isn't in your path environment variable, try changing to the sql install directory before running the command. `cd C:\Program Files\Microsoft SQL Server\xxx\Tools\Binn' where xxx is your SQL version. For 2012 it's 110 – Ben Kean Feb 13 '15 at 14:29