Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #951
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: Trigger help |
| Date | 2012-04-03 07:33 +0000 |
| Organization | Erland Sommarskog |
| Message-ID | <XnsA02A614C6EFA2Yazorman@127.0.0.1> (permalink) |
| References | <11931752.1474.1333025246004.JavaMail.geo-discussion-forums@pbjv6> <XnsA029F1A89853BYazorman@127.0.0.1> <19161780.71.1333404285072.JavaMail.geo-discussion-forums@pbcql6> |
Johnnyb (john.lutheran@gmail.com) writes: > OK, I am a total novice, it is the 'Do Something Here' part I am stuck > on. I want to copy just the row into s different database on a different > server. INSERT SERVER.dataase.dbo.tbl(....) SELECT .... FROM inserted Where you previously have defined the linked server with sp_addlinkedserver. However, there are two different complications here. One is what you exactly mean with "copy". Does that other table have the same schema? What if there already is a row with the same key value? Or is this not an issue? The other is the fact you the table is on a different server. It may all go smoothly. Or it may give you one hell of a headache to get working. It may work for one user, it may fail for another. If you give the full plot of why you want to copy this row and in what sort of environment you are working in, we might be able to give your more exact advice. -- Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Next in thread | Find similar
Trigger help Johnnyb <john.lutheran@gmail.com> - 2012-03-29 05:47 -0700
Re: Trigger help Johnnyb <john.lutheran@gmail.com> - 2012-03-30 07:35 -0700
Re: Trigger help bradbury9 <ray.bradbury9@gmail.com> - 2012-03-29 15:46 -0700
Re: Trigger help Erland Sommarskog <esquel@sommarskog.se> - 2012-04-02 23:45 +0200
Re: Trigger help Johnnyb <john.lutheran@gmail.com> - 2012-04-02 15:04 -0700
Re: Trigger help Erland Sommarskog <esquel@sommarskog.se> - 2012-04-03 07:33 +0000
Re: Trigger help Gene Wirchenko <genew@ocis.net> - 2012-04-02 20:52 -0700
Re: Trigger help Erland Sommarskog <esquel@sommarskog.se> - 2012-04-03 07:26 +0000
Re: Trigger help Johnnyb <john.lutheran@gmail.com> - 2012-04-03 05:03 -0700
Re: Trigger help Gene Wirchenko <genew@ocis.net> - 2012-04-03 08:17 -0700
Re: Trigger help Johnnyb <john.lutheran@gmail.com> - 2012-04-04 07:05 -0700
Re: Trigger help Erland Sommarskog <esquel@sommarskog.se> - 2012-04-04 23:45 +0200
Re: Trigger help Gene Wirchenko <genew@ocis.net> - 2012-04-04 14:58 -0700
Re: Trigger help Erland Sommarskog <esquel@sommarskog.se> - 2012-04-05 09:08 +0200
Re: Trigger help Johnnyb <john.lutheran@gmail.com> - 2012-04-05 06:06 -0700
Re: Trigger help Gene Wirchenko <genew@ocis.net> - 2012-04-05 08:24 -0700
Re: Trigger help Erland Sommarskog <esquel@sommarskog.se> - 2012-04-05 23:51 +0200
Re: Trigger help Gene Wirchenko <genew@ocis.net> - 2012-04-05 08:19 -0700
csiph-web