Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

NewId stored procedure

$
0
0
NewId stored procedure
West Wind Client Tools
NewId stored procedure
Mar. 22, 2013
08:32 pm
3QS181J1IShow this entire thread in new window
Gratar Image based on email address
From:Matt Slay
To:Rick Strahl
Rick - I've noticed that the CreateNewId() method, when working with FoxPro DBF tables, will add the tablename to the ww_id table if it is not already present, but in Sql Server mode, it uses a stored proceure which does not add the table name to wws_id if it is not already present (like it does on the FoxPro datamode). It also does not attempt to verify that the next PK value is not already used in the target table, as it does for the FoxPro DBF version.

I'm moving my app from DBFs to Sql Server, and it looks like you've just got to manually prep the wws_id table with each table name and the correct next ID value to use.


Viewing all articles
Browse latest Browse all 10393

Trending Articles