I have a problem in importing a database script in SQL Server 2012 Management Studio however, I successfully exported the schema and data. In exporting the database, I have done the steps:
- Right click on the database under Tasks;
- Click generate scripts and follow the wizard;
- Advance option: Types of data to script = Schema and data
- Finished
However, when I open the file and transfer it in an empty database (execute the script.sql) using SQL Server Management Studio, I can't import it. On SQL Server 2008 I can easily do that thing but on SQL Server 2012, I think there is something wrong on it.
Here is the screenshot.
And when I try to execute the script.sql file on the new Copy of database (db_Copy), There is an error message below. ''

Please help me on this issue, Have I done something wrong in exporting my data (Generate script)? Or It can be on SQL Server I'm using? I am using SQL Server 2012 Express.
Please help me, All i want to do is to my database to another database using the generated scripts.
Thanks in advance.
EDIT: What is the proper way to import the generated scripts on the empty database?
db_Dasurecoyou're trying to create in the SQL script already exists on this SQL Server instance. Either don't try to create it again, or use a different database name ......