Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
cplusplus
Aged Yak Warrior
567 Posts |
Posted - 2008-04-21 : 14:35:41
|
| I have the following insert how can i execute to multiple databases on same server:insert into Tablerecords(labelkey,moduletype,english,spanish,updatedby) values('hypUnderConstruction','MENU','Under Construction','Under Construction','admin')databases: db1,db2,db3,db4,db5 etcThanks. |
|
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-04-22 : 04:56:05
|
| Use Db1queryGoUse Db2queryGo...MadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-04-22 : 05:11:02
|
| or use sp_Msforeachdb stored procedure |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-04-22 : 05:26:33
|
quote: Originally posted by visakh16 or use sp_Msforeachdb stored procedure
It is undocumentedI wonder if they are supported in SQL Server 2008MadhivananFailing to plan is Planning to fail |
 |
|
|
jen
Master Smack Fu Yak Hacker
4110 Posts |
Posted - 2008-04-25 : 04:27:47
|
| or use the 3-part-reference in a dSQLinsert into db1.dbo.tablerecords...select...--------------------keeping it simple... |
 |
|
|
|
|
|