【解決方法】クエリを使用して SQL サーバー管理を介して DBF ファイルのデータ行を編集するにはどうすればよいですか?


I have an old DBF file that I want to manipulate its data directly through SQL Server Management itself, for example, perform update, insert, delete operations.

I tried using the following code from the internet results, but there is an error:

Error :

Msg 7403, Level 16, State 1, Line 10

The OLE DB provider "Microsoft.ACE.OLEDB.12" has not been registered.

Note: I just want to change this DBF file through SQL Server querie

私が試したこと:

EXEC sp_configure 'show advanced options', 1
RECONFIGURE;
EXEC sp_configure 'Ad Hoc Distributed Queries', 1
RECONFIGURE;
GO

SELECT *
INTO SomeTable
FROM
    OPENROWSET('Microsoft.ACE.OLEDB.12', 'Driver=Microsoft Visual FoxPro Driver;
SourceDB=\\C:\Users\Administrator\Desktop\BIMEH\POR\DSKKAR00.dbf\;
SourceType=DBF', 'SELECT * FROM DSKKAR00');

解決策 1

SSMS を DBF ファイルで動作させるには、エンジンをインストールする必要があります。エンジンが存在するかどうかはわかりません。dBase は非常に古い形式です。

DBF ファイルを SQL サーバーにインポートできますが、それは同じではありません。変更はインポートされたバージョンにのみ影響し、DBF ファイル自体には反映されません。

更新して古いアプリで引き続きファイルを使用する必要がある場合は、おそらく別のマネージャーを使用することをお勧めします。 dbf ファイル管理システム – Google 検索[^]

コメント

タイトルとURLをコピーしました