|
|
|
Проблема с транзакциями
|
|||
|---|---|---|---|
|
#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&msg=33790388&tid=1353285]: |
0ms |
get settings: |
5ms |
get forum list: |
15ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
49ms |
get topic data: |
10ms |
get forum data: |
2ms |
get page messages: |
34ms |
get tp. blocked users: |
1ms |
| others: | 230ms |
| total: | 350ms |

| 0 / 0 |
