Самому проверить пока нет возможности....
Скрипт простейший, ловит ошибку 1785 в MS SQL Server 2005м:
create table A
(
id int primary key
)
go
create table B
(
id int primary key,
aid1 int references A(id) on delete cascade,
aid2 int references A(id) on delete cascade
)
go
И вот необходимо этой ошибки избежать
Помогите пожалуйста =)
Здравствуйте, Аноним, Вы писали:
А>Самому проверить пока нет возможности....
А>Скрипт простейший, ловит ошибку 1785 в MS SQL Server 2005м:
А>create table A
А>(
А>id int primary key
А>)
А>go
А>create table B
А>(
А>id int primary key,
А>aid1 int references A(id) on delete cascade,
А>aid2 int references A(id) on delete cascade
А>)
А>go
А>И вот необходимо этой ошибки избежать
А>Помогите пожалуйста =)
http://www.microsoft.com/heroeshappenhere/testdrive/sql-server-2008/default.mspx
По-моему любую кнопку можно нажимать. Например, нажми 2ую кнопку Test Drive
Здравствуйте, <Аноним>, Вы писали:
А>Самому проверить пока нет возможности....
А>Скрипт простейший, ловит ошибку 1785 в MS SQL Server 2005м:
да:
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK__B__aid2__060DEAE8' on table 'B' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
... << RSDN@Home 1.2.0 alpha 4 rev. 1088>>
MS SQL 2008 Developer
Msg 1785, Level 16, State 0, Line 1
Introducing FOREIGN KEY constraint 'FK__B__aid2__1782BD48' on table 'B' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
Msg 1750, Level 16, State 0, Line 1
Could not create constraint. See previous errors.
... << RSDN@Home 1.2.0 alpha 4 rev. 1108>>