How to run the scripted database in a new server database (1 Viewer)

nector

Member
Local time
Today, 22:19
Joined
Jan 21, 2020
Messages
368
I have scripted the entire database with a believe that the script copied all the objects. Now how do I run the script in the new server sql database, below the attached scrprit.
 

Attachments

  • Kbs2023.txt
    926.2 KB · Views: 71

WayneRyan

AWF VIP
Local time
Today, 20:19
Joined
Nov 19, 2002
Messages
7,122
I have scripted the entire database with a believe that the script copied all the objects. Now how do I run the script in the new server sql database, below the attached scrprit.
Nector,
What generated the script?
For most of it. You could run it in SSMS from the master database.
The embedded \r \n stuff makes it seem the file originated from a Unix system/utility.
Otherwise, the database can't exist on the server where you run the script.
The datatype nvarchar really makes as though the original database was made through a utility and still needs some work.
Tough typing on a phone.
Wayne
 

Users who are viewing this thread

Top Bottom