Hi!
Hab ein Problem mit Bind Variablen in nem EXECUTE IMMEDIATE-Statement über einen DB-Link zu MS SQL Server.
Die Zieltabelle besteht aus einem Text-feld und einem Primary Key-Feld (:1=text, 5=PK)
Wenn ich das Statement ausführe bekomme ich allerdings:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][A00A] Execute query failed, datasource is 'ora', SQL text is 'INSERT INTO "table" ("varc","pk") VALUES (?,5)'
Wieso wird die Bind Variable nicht erkannt?
Was mache ich falsch?
(Der Datenbank-Link und ein "normaler" Insert funktionieren)
Danke und Gruß
bang
Hab ein Problem mit Bind Variablen in nem EXECUTE IMMEDIATE-Statement über einen DB-Link zu MS SQL Server.
Code:
EXECUTE IMMEDIATE 'insert into table@"DB-LINK" values (:1,5)' USING variable; COMMIT;
Wenn ich das Statement ausführe bekomme ich allerdings:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC][A00A] Execute query failed, datasource is 'ora', SQL text is 'INSERT INTO "table" ("varc","pk") VALUES (?,5)'
Wieso wird die Bind Variable nicht erkannt?
Was mache ich falsch?
(Der Datenbank-Link und ein "normaler" Insert funktionieren)
Danke und Gruß
bang
Comment