Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a row to a table and delay setting PK
Message
From
09/03/2018 09:51:27
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Database design
Title:
Adding a row to a table and delay setting PK
Miscellaneous
Thread ID:
01658640
Message ID:
01658640
Views:
63
Hi,

A table in SQL Server has a PK column, Identity. I would like to be able to add a row/record to the table without actually setting the value in the PK column, until the VFP 9 application saves the row/record. I think the only way to do it is to be able to "get" the next PK value (Identity) without actually adding a row. Then, then user Saves the record, add new row. But then (as I type it, I realize) the PK column will get a new Identity value.

Is something like I am describing above possible?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform