Monday, December 7, 2009
Using sp_msforeachtable on remote databases
Yes you can! The only proviso is that your linked server must have RPC and RPC Out enabled.
Right-click the Linked Server and select properties
Select Server Options
Click RPC & RPC Out and OK
Then you can do wild stuff like
exec [remoteserver].[remotedb].[dbo].sp_MSforeachtable "ALTER TABLE ? DISABLE TRIGGER ALL"
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment