问题
I've successfully created a linked server between SQL Server 2014 (x64) and a SQLite database via ODBC.
I can select from the SQLite database with no problem.
select *
from openquery(mp_test, 'select test1 from test2')
When I try to insert a record into to the database I get the following error :
OLE DB provider "MSDASQL" for linked server "mp_test" returned message "unable to open database file (14)".
Msg 7343, Level 16, State 2, Line 4
The OLE DB provider "MSDASQL" for linked server "mp_test" could not INSERT INTO table "[MSDASQL]".
All user has full control on the SQLite database file.
The code what I used for the insert :
insert openquery(mp_test, 'select test1 from test1 where 1=0') VALUES ('12')
Any idea?
来源:https://stackoverflow.com/questions/36643296/insert-into-sqlite-db-from-sql-server-2014