use myRemoteView append blank replace cName with "something" tableupdate(.t.) SQLEXEC( nHandle,"select IDENT_CURRENT('myTable') AS nValue","cur_identity") SELECT cur_identity nValueOfCode = cur_identity.nValueThis far everything works well, but the problem is that several users make INSERT in the SQL's Server table "myTable" and between time difference to do a TABLEUPDATE ( ) and to call IDENT _CURRENT ( ) another user already made an INSERT and return different value of "nCode" That I already had generated