|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to send data (actived by a trigger when the record is updated) to another SQL server (different database) which is located on another pc. Both pc's can communicate trough TCP/IP.
Is this possible and what are the basics to establising that. Can anyone help me... Thx in advance.... Kurt |
|
#2
|
|||
|
|||
|
Search BOL for "Linked Servers"
You need to make sure the server with the trigger has a record in its linked servers for the server receiving the data. You can use the 'Linked Servers' folder in EM (or sp_addlinkedservers in QA if you really must).
Then it's just a matter of qualifying the server in your trigger, like so: Code:
INSERT INTO linked_server.database.owner.table SELECT column1, column2 FROM inserted --or deleted or updated, whatever your trigger is WHERE condition = condition2 Get the picture? Hope this helps, Steve |
|
#3
|
|||
|
|||
|
Thanks Steve,
This is the solution for me. I've tried this and it works. Kurt |
![]() |
| Viewing: ASP Free Forums > Database > Microsoft SQL Server > Send Data from SQL server to another SQL server |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|