In a VBA module for Excel. Using an ADODB.Connection and this connection string:
"Provider=SQLOLEDB;Data Source=MARS;Initial Catalog=automation;Trusted_connection=yes;"
I want to:
- INSERT INTO test (data) VALUES ('Something')
- Retrieve the auto incremented identity (test.data_id) of the newly inserted row.