To anyone that can help,
I have situation where I am using Access 97 as a front-end to a SQL Server
6.5 database. I am using ODBC to connect the Access interface to the SQL
Server back-end.
I now have a particular need to send to send SQL server-specific commands to
the SQL Server from Access. I would like to be able to send something like
below to the SQL Server using Access and/or VBA:
set IDENTITY_INSERT table1 ON
INSERT INTO table1 (field1, field2)
SELECT field1, field2
FROM dbo_old_table1
set IDENTITY_INSERT table1 OFF
table1's field1 column is an INTEGER IDENTITY column
Now I have found that this is not possible using standard Access query
definitions. Is there any technique where this sort of thing can be
achieved. If it can not be done via ODBC, then what are the alternatives?
Can Access communicate to a SQL Server via any other means than ODBC? Can
it be done in VBA?
Thanks in advance,
Jeremy Anderson