>How about new VFP9 function GETAUTOINCVALUE([nDataSessionNumber | 0])
Without using a VFP function, is there a way from VB.NET to achieve the same? I need to be as compliant as possible to SQL Server as when moving to it, I need to have as less code conversion as possible.