??????????SQL
???????????? ???????[ 2015/10/19 10:49:26 ] ?????????????
????--???????/??????????(openrowset)
????--1??openrowset
????--??????
????select * from openrowset( 'SQLOLEDB'?? 'sql???????? '; '????? '; '????'?????????.dbo.????)
????--????????
????select * into ?? from openrowset( 'SQLOLEDB '?? 'sql???????? '; '????? '; '???? '?????????.dbo.????)
????--?????????????
????insert openrowset( 'SQLOLEDB '?? 'sql???????? '; '????? '; '???? '?????????.dbo.????)
????select *from ?????
????--???±????
????update b
????set b.??A=a.??A
????from openrowset( 'SQLOLEDB '?? 'sql???????? '; '????? '; '???? '?????????.dbo.????)as a inner join ????? b
????on a.column1=b.column1
????2.--openquery?÷???????????????
????--??????????????????????????
????exec sp_addlinkedserver 'ITSV '?? ' '?? 'SQLOLEDB '?? '????????????ip??? '
????--???
????select *
????FROM openquery(ITSV?? 'SELECT * FROM ?????.dbo.???? ')
????--?????????????
????insert openquery(ITSV?? 'SELECT * FROM ?????.dbo.???? ')
????select * from ?????
????--???±????
????update b
????set b.??B=a.??B
????FROM openquery(ITSV?? 'SELECT * FROM ?????.dbo.???? ') as a
????inner join ????? b on a.??A=b.??A
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11