Created
October 22, 2016 03:22
-
-
Save foontzoot/dcd06e07dda9822e7a9bb1d781ddec59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO [TableName] | |
SELECT * | |
FROM OPENDATASOURCE | |
( | |
'SQLOLEDB','Data Source=XXX.XXX.XXX.XXX;User ID=USERNAME;Password=PASSWORD;' | |
).DATABASE_NAME.dbo.[TableName] | |
WHERE CouponId = @coupon_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment