I'm trying to generate physical database from my logical model using ERWIN 7.
All is well in the script that is generated automatically, there is only the problem that the model is created in the database "master" which is the default SQL Server, rather than being created in the database that I inserted along with the model.
I cant find a way to associate my MODEL with the database I'm creating along with the model.
Here is the script that ERWIN auto-generates:
CREATE DATABASE Movies go
ALTER DATABASE Movies SET RECOVERY FULL go
CREATE SCHEMA fbd AUTHORIZATION dbo go
CREATE DEFAULT Default_Value_movies_gen AS 1 go
CREATE DEFAULT Default_Value_titulo_movies AS 'No title' go
But it should generate automatically:
CREATE DATABASE Movies go
--Here should be "USE Movies",to use database that ERWIN have just created
ALTER DATABASE Movies SET RECOVERY FULL go
CREATE SCHEMA fbd AUTHORIZATION dbo go
CREATE DEFAULT Default_Value_movies_gen AS 1 go
CREATE DEFAULT Default_Value_titulo_movies AS 'No title' go
Any ideas?
Asked by ozsenegal
(161 rep)
Nov 23, 2012, 06:53 PM
Last activity: Feb 17, 2016, 10:27 AM
Last activity: Feb 17, 2016, 10:27 AM