patternsqlMinor
Execute a stored procedure via a Linked Server from SQL Server 2008 R2 to SQL Server 2014
Viewed 0 times
stored2008sqlprocedureviaserverfromlinked2014execute
Problem
We are in the planning stages for an upgrade from SQL Server 2008 R2 to SQL Server 2014.
Our system executes stored procedures against different databases on different servers.
If we upgrade one server to SQL Server 2014, but leave the remaining servers on SQL Server 2008 R2, would we lose that ability?
Our system executes stored procedures against different databases on different servers.
If we upgrade one server to SQL Server 2014, but leave the remaining servers on SQL Server 2008 R2, would we lose that ability?
Solution
As a test, I just ran the following from my SQL Server 2008 R2 instance through a linked server to my SQL Server 2012 instance:
This will show two result-sets, one for the local server, with server name, and version, and one for the remote server with the same details.
Executing this will prove that you can run stored procedures from down-level servers to up-level servers.
SELECT LocalServerName = @@SERVERNAME
, LocalServerVersion = SERVERPROPERTY('ProductVersion');
EXEC [REMOTESERVER].master.sys.sp_executesql
N'SELECT RemoteServerName = @@SERVERNAME
, RemoteServerVersion = SERVERPROPERTY(''ProductVersion'');';This will show two result-sets, one for the local server, with server name, and version, and one for the remote server with the same details.
Executing this will prove that you can run stored procedures from down-level servers to up-level servers.
Code Snippets
SELECT LocalServerName = @@SERVERNAME
, LocalServerVersion = SERVERPROPERTY('ProductVersion');
EXEC [REMOTESERVER].master.sys.sp_executesql
N'SELECT RemoteServerName = @@SERVERNAME
, RemoteServerVersion = SERVERPROPERTY(''ProductVersion'');';Context
StackExchange Database Administrators Q#116521, answer score: 5
Revisions (0)
No revisions yet.