Hi,
I'm calling functions in a Postgres DB that make use of RAISE EXCEPTION. When I call the function from a SQL stored proc using linked server I don't seem to be able to capture the exception.
I'm tried calling my function as follows:
SELECT myfunc FROM OpenQuery(LINKEDSERVER,'select myfunc(25081) as myfunc ')
exec ('SELECT myfunc FROM OpenQuery(LINKEDSERVER,''select myfunc(25081) as myfunc'')')
Is it possible to capture the Postgres Exceptions when using linked servers and OpenQuery?
Regards,
Martin
