Dear Peter,
you need enter the statement only if you plan store outlook contacts in the database.
(We need to know how to generate an unique value to insert a new record)
Example SQL Statements:
Note: SQL syntax is database dependent; these examples will not work for every database system!
Primary key
For integer fields:
Database Independent:
select max(YOUR_COLUMN_NAME) + 1 from YOUR_TABLE_NAME
MS Access:
select Iif(max(YOUR_COLUMN_NAME) is null, 0,max(YOUR_COLUMN_NAME) + 1)
from YOUR_TABLE_NAME
Last identity Value
SQL Server and MySQL:
select @@IDENTITY
For SQL Server GUID:
select newid()
Mandatory fields
For char fields:
select ‘always this text’
For integer fields
select 6
For current date
select GETDATE()