forked from chrisdamba/SQL-Server-Management-Studio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Linked Server DnC RGSERVER.sql
53 lines (36 loc) · 1.92 KB
/
Linked Server DnC RGSERVER.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
USE [master]
GO
/****** Object: LinkedServer [RGSERVER] Script Date: 12/23/2014 10:29:37 AM ******/
EXEC master.dbo.sp_dropserver @server=N'RGSERVER', @droplogins='droplogins'
GO
/****** Object: LinkedServer [RGSERVER] Script Date: 12/23/2014 10:29:37 AM ******/
EXEC master.dbo.sp_addlinkedserver @server = N'RGSERVER', @srvproduct=N'sql', @provider=N'SQLNCLI', @datasrc=N'SEAPSQLRYL0B,1433'
/* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'RGSERVER',@useself=N'False',@locallogin=NULL,@rmtuser=N'rguser',@rmtpassword='C@rr3nT'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'collation compatible', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'data access', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'dist', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'pub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'rpc', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'rpc out', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'sub', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'connect timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'collation name', @optvalue=null
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'lazy schema validation', @optvalue=N'false'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'query timeout', @optvalue=N'0'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'use remote collation', @optvalue=N'true'
GO
EXEC master.dbo.sp_serveroption @server=N'RGSERVER', @optname=N'remote proc transaction promotion', @optvalue=N'true'
GO