sunnyjassal
Programmer
Hello,
I have a procedure (see below) that moves copies data from one DB to another. This procedure is written in DB1 and is excecuted as a Maintenance plan. Both DB1 and DB2 are on the same server. I want to change this and move DB2 on another machine. How can I modify the below procedure to connect to a different machine and do the same process?
Thanks for your help in advance.
ALTER PROCEDURE [dbo].[MoveData]
AS
BEGIN
drop table DB2..Billing
select * into DB2.dbo.Billing from
DB1.dbo.Billing
END
I have a procedure (see below) that moves copies data from one DB to another. This procedure is written in DB1 and is excecuted as a Maintenance plan. Both DB1 and DB2 are on the same server. I want to change this and move DB2 on another machine. How can I modify the below procedure to connect to a different machine and do the same process?
Thanks for your help in advance.
ALTER PROCEDURE [dbo].[MoveData]
AS
BEGIN
drop table DB2..Billing
select * into DB2.dbo.Billing from
DB1.dbo.Billing
END