0

I have a sql script (a complete database). I want import it to a Microsoft SQL Server database (.mdf file)

How to can do that ?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user46167
  • 1
  • 1
  • 2
    You need to **(1)** create the SQL Server database file, **(2)** execute the `.sql` script on that newly created database file to have it create all the database objects (and possibly fill in some static data) – marc_s Nov 10 '15 at 17:20
  • See http://stackoverflow.com/questions/7828060/how-do-i-import-a-sql-data-file-into-sql-server – PaulF Nov 10 '15 at 17:23

0 Answers0