General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>AFAIK, there's no equivalent of FLOCK in SQL Server. Why no autoinc or GUID fields?
>
>>I use the follow code to get Unique Keys with VFP tables
>>
>>Local lgetUniqueKey
>>Use myCounter
>>IF Flock()
>> Replace myCounter.counter With myCounter.counter+1
>> lgetUniqueKey= myCounter.counter
>> Flush In myCounter Force
>> Unlock
>>Endif
>>
>>Could you suggest some equivalent code if the MyCounter table is an MSSQL table?
>>Please no autoinc field or global unique identifiers
This procedure is not only for Unique record key but for invoice numbers etc. as well.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only