Hello, SQL2008R2
We just installed a new phone system. The system has its own server and SQL2008R2 instance. What I need to do is keep a table on SQLPhone up to date with information from SQLProduction also a SQL2008R2 instance. The table is used by the phone system to route calls based on the account.
Note that SQLProduction has a link to SQLPhone but SQLPhone does not have any linked servers for security reasons.
I have a procedure that gathers the information needed from SQLProduction into one table once every night. If I rebuild the table on SQLPhone by deleting the contents then inserting data, it takes quite some time as there are two million records to move.
Example:
Would it be better to store the data to a table that is replicated to the phone server? What about using a MERGE update/insert? The MERGE I know has some caveats.
Thanks for any suggestions,
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!
We just installed a new phone system. The system has its own server and SQL2008R2 instance. What I need to do is keep a table on SQLPhone up to date with information from SQLProduction also a SQL2008R2 instance. The table is used by the phone system to route calls based on the account.
Note that SQLProduction has a link to SQLPhone but SQLPhone does not have any linked servers for security reasons.
I have a procedure that gathers the information needed from SQLProduction into one table once every night. If I rebuild the table on SQLPhone by deleting the contents then inserting data, it takes quite some time as there are two million records to move.
Example:
Code:
DELETE FROM [instance].database.dbo.table;
INSERT INTO [instance].database.dbo.table (
IDX
, AcctNum
, Extention
, Workgroup
)
SELECT
IDX
, AcctNum
, Extention
, Workgroup
FROM #PhoneData
ORDER BY 1
;
Would it be better to store the data to a table that is replicated to the phone server? What about using a MERGE update/insert? The MERGE I know has some caveats.
Thanks for any suggestions,
djj
The Lord is my shepherd (Psalm 23) - I need someone to lead me!