Comments on: SQL Server Linked Server Connection Test https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/ Thomas LaRock is an author, speaker, data expert, and SQLRockstar. He helps people connect, learn, and share. Along the way he solves data problems, too. Tue, 04 Sep 2018 19:13:14 +0000 hourly 1 https://wordpress.org/?v=6.7.2 By: Thomas LaRock https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-41700 Tue, 04 Sep 2018 19:13:14 +0000 http://thomaslarock.com/?p=17306#comment-41700 Yeah, probably.

]]>
By: sqlkohai https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-41689 Tue, 04 Sep 2018 18:44:11 +0000 http://thomaslarock.com/?p=17306#comment-41689 This is just what I was looking for and then saw your dbatools.io trackback. Would you just replace the whole attempt section section (line 63 down) with a test-dbaLinkedServerConnection call and out-file it?

]]>
By: Thomas LaRock https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-16294 Fri, 09 Mar 2018 21:02:46 +0000 http://thomaslarock.com/?p=17306#comment-16294 I’ve no idea, you should try to modify the script and add breakpoints to debug. Perhaps the script thinks you have some additional instances installed.

]]>
By: Harsheel Kothari https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-16285 Tue, 27 Feb 2018 19:55:49 +0000 http://thomaslarock.com/?p=17306#comment-16285 Hey,

When I run this, I am getting a weird result:

I am running it locally on ISE without declaring a server name and my server name is “DMSQLD1”

I have two SQL instances on it “DMSQLD1\DMHB” and “DMSQLD1\DMHB_QA”

I have multiple linked servers on both instance and when I run the script, it finds all of the linked servers on the two above instances and is able to verify connectivity however; it also gives me the results below

02/27/2018 14:39:46 DMSQLD1\DMHB\DMHB connection success.
02/27/2018 14:39:46 DMSQLD1\DMHB\DMHB no linked servers found.
02/27/2018 14:40:01 DMSQLD1\DMHB\DMHB\DMHB connection attempt.
02/27/2018 14:40:15 DMSQLD1\DMHB\DMHB\DMHB connection success.
02/27/2018 14:40:15 DMSQLD1\DMHB\DMHB\DMHB no linked servers found.
02/27/2018 14:40:30 DMSQLD1\DMHB\DMHB\DMHB\DMHB connection attempt.
02/27/2018 14:40:45 DMSQLD1\DMHB\DMHB\DMHB\DMHB connection success.
02/27/2018 14:40:45 DMSQLD1\DMHB\DMHB\DMHB\DMHB no linked servers found.
02/27/2018 14:40:59 DMSQLD1\DMHB\DMHB\DMHB\DMHB\DMHB connection attempt.
02/27/2018 14:41:14 DMSQLD1\DMHB\DMHB\DMHB\DMHB\DMHB connection success.
02/27/2018 14:41:14 DMSQLD1\DMHB\DMHB\DMHB\DMHB\DMHB no linked servers found.
02/27/2018 14:41:29 DMSQLD1\DMHB\DMHB\DMHB\DMHB\DMHB\DMHB connection attempt.
02/27/2018 14:41:43 DMSQLD1\DMHB\DMHB\DMHB\DMHB\DMHB\DMHB connection success.
02/27/2018 14:41:43 DMSQLD1\DMHB\DMHB\DMHB\DMHB\DMHB\DMHB no linked servers found.
02/27/2018 14:41:58 DMSQLD1\DMHB_QA\DMHB_QA connection attempt.
02/27/2018 14:42:13 DMSQLD1\DMHB_QA\DMHB_QA connection success.
02/27/2018 14:42:13 DMSQLD1\DMHB_QA\DMHB_QA no linked servers found.
02/27/2018 14:42:28 DMSQLD1\DMHB_QA\DMHB_QA\DMHB_QA connection attempt.
02/27/2018 14:42:42 DMSQLD1\DMHB_QA\DMHB_QA\DMHB_QA connection success.
02/27/2018 14:42:42 DMSQLD1\DMHB_QA\DMHB_QA\DMHB_QA no linked servers found.

I would really appreciate some help on this, thanks in advance.

]]>
By: Install-Module dbatools - Thomas LaRock https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-15926 Tue, 18 Apr 2017 15:40:16 +0000 http://thomaslarock.com/?p=17306#comment-15926 […] a way to automate the checking of the linked server connections. I wrote about it here, and I even updated the script recently. And I would have put that script into GitHub by now if not for last February, while at SQL […]

]]>
By: ThomasLaRock https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-15894 Tue, 14 Mar 2017 13:50:00 +0000 http://thomaslarock.com/?p=17306#comment-15894 In reply to Geoff Dawdy.

I’d try the script above and see if it works. From what I can tell, it should, I just didn’t test it on SQL2008 R2. Let me know if it throws an error.

]]>
By: Geoff Dawdy https://thomaslarock.com/2016/03/sql-server-linked-server-connection-test/#comment-15891 Fri, 10 Mar 2017 16:49:00 +0000 http://thomaslarock.com/?p=17306#comment-15891 Any recommendations for testing a linked server on SQL Server 2008 R2?

]]>