Yevi,
You won't be able to run your script in Visual Studio. You will need to attach your new database to SQL Server using SSMS, select the database and open a new query window. Then paste the script into the query window and run it; alternately, after you attach your new database you could drag and drop your sql script (provided it has a .sql extension) onto the SSMS query window area and it will create/open a new query window with the script in it, then you just need to ensure that your database is selected in the drop down before running the script.
Visual studio is set up to only deal with one table or stored procdure at a time, and then not via scripts.
Steve
|