gangadhara.ms
Aged Yak Warrior
549 Posts |
Posted - 2011-08-12 : 02:30:23
|
Hi All,I want to create a Linked server on my local machine to test server database.When i tried to create the linked server i am getting the below error.Msg 15007, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 76'joggs' is not a valid login or you do not have permission.Msg 15007, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 76'webuser' is not a valid login or you do not have permission.What are the prerequisites to get create this.I am using the below query to create linked serverEXEC master.dbo.sp_addlinkedserver @server = N'MSG', @srvproduct=N'Active Directory Services 2.5', @provider=N'ADsDSOObject', @datasrc=N'adsdatasource'EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MSG',@useself=N'False',@locallogin=NULL,@rmtuser=NULL,@rmtpassword=NULLEXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MSG',@useself=N'False',@locallogin=N'joggs',@rmtuser=N'sys_my',@rmtpassword='***************'EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MSG',@useself=N'True',@locallogin=N'webuser',@rmtuser=NULL,@rmtpassword=NULLGOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'collation compatible', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'data access', @optvalue=N'true'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'dist', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'pub', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'rpc', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'rpc out', @optvalue=N'true'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'sub', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'connect timeout', @optvalue=N'0'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'collation name', @optvalue=nullGOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'lazy schema validation', @optvalue=N'false'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'query timeout', @optvalue=N'0'GOEXEC master.dbo.sp_serveroption @server=N'MSG', @optname=N'use remote collation', @optvalue=N'true'Thanks,Gangadhara MSSQL Developer and DBA |
|