使用PowerDesigner到处SQL脚本,执行出现问题,求救
使用PowerDesigner到处SQL脚本,执行出现一下问题:
服务器: 消息 4902,级别 16,状态 1,行 7
无法更改表 'u_order',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_order',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_order',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_product',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_product',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_product',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_productPartType',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_productPic',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_productVenditionLog',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_productVenditionLog',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_shoppingCar',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_shoppingCar',因为数据库 'test2' 中不存在此表。
服务器: 消息 4902,级别 16,状态 1,行 2
无法更改表 'u_user',因为数据库 'test2' 中不存在此表。
脚本:
alter table u_order
drop constraint FK_U_ORDER_REFERENCE_U_USER
go
alter table u_order
drop constraint FK_U_ORDER_REFERENCE_U_PAYMOD
go
alter table u_order
drop constraint FK_U_ORDER_REFERENCE_U_TRANSP
go
alter table u_product
drop constraint FK_U_PRODUC_REFERENCE_U_FACTOR
go
alter table u_product
drop constraint FK_U_PRODUC_REFERENCE_U_BRAND
go
alter table u_product
drop constraint FK_U_PRODUC_REFERENCE_U_PRODUC
go
alter table u_productPartType
drop constraint FK_U_PRODUCM_REFERENCE_U_PRODUCP
go
alter table u_productPic
drop constraint FK_U_PRODUC_REFERENCE_U_PRODUCP
go
alter table u_productVenditionLog
drop constraint FK_U_PRODUC_REFERENCE_U_ORDER
go
alter table u_productVenditionLog
drop constraint FK_U_PRODUC_REFERENCE_U_PRODUCVL
go
alter table u_shoppingCar
drop constraint FK_U_SHOPPI_REFERENCE_U_PRODUC
go
alter table u_shoppingCar
drop constraint FK_U_SHOPPI_REFERENCE_U_USER
go
alter table u_user
drop constraint FK_U_USER_REFERENCE_U_USERTY
go
if exists (select 1
from sysobjects
where id = object_id('u_brand')
and type = 'U')
drop table u_brand
go
if exists (select 1
from sysobjects
where id = object_id('u_factory')
and type = 'U')
drop table u_factory
go
if exists (select 1
from sysobjects
where id = object_id('u_order')
and type = 'U')
drop table u_order
go
if exists (select 1
from sysobjects
where id = object_id('u_payMode')
and type = 'U')
drop table u_payMode
go
if exists (select 1
from sysobjects
where id = object_id('u_product')
and type = 'U')
drop table u_product
go
if exists (select 1
from sysobjects
where id = object_id('u_productMainType')
and type = 'U')
drop table u_productMainType
go
if exists (select 1
from sysobjects
where id = object_id('u_productPartType')
and type = 'U')
drop table u_productPartType
go
if exists (select 1
from sysobjects
where id = object_id('u_productPic')
and type = 'U')
drop table u_productPic
go
if exists (select 1
from sysobjects
where id = object_id('u_productVenditionLog')
and type = 'U')
drop table u_productVenditionLog
go
if exists (select 1
from sysobjects
where id = object_id('u_shoppingCar')
and type = 'U')
drop table u_shoppingCar
go
if exists (select 1
from sysobjects
where id = object_id('u_transportation')
and type = 'U')
drop table u_transportation
go
if exists (select 1
from sysobjects
where id = object_id('u_user')
and type = 'U')
drop table u_user
go
if exists (select 1
from sysobjects
where id = object_id('u_userType')
and type = 'U')
drop table u_userType
go