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

CREATE STORE PROCEDURE OPENQUERY

$
0
0
Dear Friends,I have Syntax like this : INSERT INTO DATABASE_A.DBO.TABLE_A ----THIS IS THE LOCAL SERVER SELECT S_C, S_N FROM OPENQUERY ([LINK_SERVER],'select S_C, S_N, from DATABASE_B.dbo.TABLE_B')this Syntax works fine,,Now I want to make the Store Procedure from this syntax with truncate first the TABLE_A and then insert the syntax and then Check the integrity data..Can someone please help me? what should I consider for declare ?thank you very much

Viewing all articles
Browse latest Browse all 3145

Trending Articles