Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Script help: SP_Addlinkedserver - SQL Server 2008r2 to Oracle DB Add a linked server to Oracle DB

$
0
0

Added the Oracle driver to SQL Server (from the oracle web site

The SP Failed: (note - server and login text are changed to protect security)

USE [master]
GO
--Create the Oracle Linked Server:  

EXEC sp_addlinkedserver @server, @srvproduct, @provider, @datasrc
EXEC sp_addlinkedserver 'FinderView2' , 'Oracle', 'OraOLEDB.Oracle', ' mr.world:1521/Dens249'
EXEC sp_addlinkedsrvlogin @rmtsrvname, @useself, @rmtuser, @rmtpassword
EXEC sp_addlinkedsrvlogin 'FinderView2', 'FALSE', 'AUserName', 'APassword'      

<result> Msg 137, Level 15, State 2, Line 2
Must declare the scalar variable "@server".
Msg 137, Level 15, State 2, Line 4
Must declare the scalar variable "@rmtsrvname".

also: the actual view for this password is RMWell_Reg is that missing somewhere?


Rx


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>