Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

MERGE code works but not when called via stored procedure

$
0
0
Hello, I have a stored procedure that is only doing 1 thing - a MERGE command. When I run the code in the stored procedure, it is successful, as soon as I put the "CREATE PROCEDURE" around it and try to call it, nothing happens. Has anyone else ever come across this before? The Target is a table within the same database as the procedure, but the Source is coming from a query that crosses a linked server. Target is SQL 2014, Source is 2008 R2 SP3.

Viewing all articles
Browse latest Browse all 3145

Trending Articles