Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retrieve the new primary key?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00809477
Message ID:
00811176
Views:
24
>The problem is with the CommandBuilder and not MMF. YOu will need to set the default values for each column that is not configured to accept nulls.

I ran some tests with SQL Profiler and found that the generated SQL command contains "iRecVersion = NULL" when RetrieveAutoIncrementPK = true. When RetrieveAutoIncrementPK = false, iRecVersion is not in the SQL command at all.
Stephen Lee

--------------------------------
Too much to code
Too little time
--------------------------------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform