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 to [Release 11.2]
Information in this document applies to any platform.


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

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


In SQL*Server 2008 create a function -

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

then call this function using DG4MSQL or -

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


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