Insert Into SQL Server mit Access 2010
PeterDoering
Gesendet: 12.10.12 23:42
Betreff: RE: Insert Into SQL Server mit Access 2010



Extreme Veteran

Beiträge: 563
5002525
Hallo,

AndreasSummer - 10.10.12 11:51
INSERT INTO ([ODBC;DRIVER=SQL Server;Trusted_Connection=Yes;SERVER=PC-ASU8\SQLEXPRESS,1433;UID=sansoft;PWD=;APP=Microsoft® Access;WSID=SanSoft;DATABASE=SanSoft_Archiv_FW]) p_aktivitaet ( Nr )
SELECT TOP 1 P_AKTIVITAET.Nr
FROM P_AKTIVITAET;

Es kommt dabei ein Fehler

Installierbares ISAM nicht gefunden.

bei Access 2003 und Access 2013 funktioniert der Befehl.

Dein Connect-String sieht komisch aus. Trusted_Connection und die UID/PWD-Kombination schliessen sich gegenseitig aus. Desweiteren sind ein paar IMO unwichtige Parameter enthalten, lass die mal weg. Die Syntax scheint mir auch problemtatisch. Heisst die Zieltabelle am Server p_activitaet? Falls ja, probier mal so:

INSERT INTO [ODBC;DRIVER={SQL Server};SERVER=PC-ASU8\SQLEXPRESS;DATABASE=SanSoft_Archiv_FW;Trusted_Connection=Yes;].dbo.p_aktivitaet ( Nr )
SELECT TOP 1 P_AKTIVITAET.Nr
FROM P_AKTIVITAET;

-----
Gruss - Peter
Top of the page Bottom of the page