I have an Oracle server that I am trying to link to and access from SQL Server 7.
I can access the Oracle server using the Oracle sqlplus command "sqlplus user/passwd@server" and "select field from schema.table"
In SQL Server osql I issued the following:
sp_addlinkedserver @server = 'myOServer', @srvproduct = 'Oracle',
@provider='MSDAORA', @datasrc='server'
sp_addlinkedsrvlogin 'myOServer', 'false', 'sa', 'user', 'passwd'
I cannot seem to find the right format for referencing the tables in the Oracle server. If in the osql I try:
select field from myOserver.schema..table
or
select field from myOserver.schema.sa.table
or
select field from myOserver.schema.user.table
I get the message "[OLE/DB provider returned message: Oracle error occurred, but error message could not be retrieved from Oracle.]"
Anybody have any help?
Peter Richardson
I can access the Oracle server using the Oracle sqlplus command "sqlplus user/passwd@server" and "select field from schema.table"
In SQL Server osql I issued the following:
sp_addlinkedserver @server = 'myOServer', @srvproduct = 'Oracle',
@provider='MSDAORA', @datasrc='server'
sp_addlinkedsrvlogin 'myOServer', 'false', 'sa', 'user', 'passwd'
I cannot seem to find the right format for referencing the tables in the Oracle server. If in the osql I try:
select field from myOserver.schema..table
or
select field from myOserver.schema.sa.table
or
select field from myOserver.schema.user.table
I get the message "[OLE/DB provider returned message: Oracle error occurred, but error message could not be retrieved from Oracle.]"
Anybody have any help?
Peter Richardson