|
|
|
Проблема с транзакциями
|
|||
|---|---|---|---|
|
#18+
Как в пределах одной транзакции в ADO.NET записать в таблицы данные: Таблица User(ID - PK Identity, FirstName) FirstName='Evgeniy', получаем ID=1 Таблица UserGroup(ID - PK Identity, Name) Name='Administrator', получаем ID=2 Таблица UserGroupList(UserID, UserGroupID - PK) UserID=1, UserGroupID=2. После апдейта последней таблицы вылетает эксепшн: INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_UserGroupList_User'. The conflict occurred in database 'TestDB', table 'User', column 'ID'. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 14.06.2006, 13:57 |
|
||
|
|

start [/forum/topic.php?fid=17&tid=1353285]: |
0ms |
get settings: |
9ms |
get forum list: |
18ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
38ms |
get topic data: |
11ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
| others: | 227ms |
| total: | 351ms |

| 0 / 0 |
