Error ORA-00904 Calling a SQL*Server 2008 Function Using DG4MSQL 11.2 (Doc ID 1282976.1)

Last updated on JANUARY 18, 2017

Applies to:

Oracle Database Gateway for SQL Server - Version 11.2.0.1 to 11.2.0.2 [Release 11.2]
Information in this document applies to any platform.

Symptoms


The following error is received when calling a SQL*Server 2008 function using Database Gateway for SQL*Server (DG4MSQL) 11.2.0.1 or 11.2.0.2 -


SQL> select "dbo"."functest"@dg4msql() from dual;
select "dbo"."functest"@dg4msql() from dual
*
ERROR at line 1:
ORA-00904: "dbo"."functest": invalid identifier

Changes

In SQL*Server 2008 create a function -

CREATE FUNCTION dbo.functest()
RETURNS varchar(10) AS
BEGIN
 return ('functest')
END

then call this function using DG4MSQL 11.2.0.1 or 11.2.0.2 -

select "dbo"."functest"@dg4msql() from dual;

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms