連接到另外一台數據庫(sql)
SELECT * FROM OPENDATASOURCE(
'SQLOLEDB',
'Data Source=172.16.20.12;User ID=sales;Password=sale321'
).[MateriaiScrap].dbo.[ClassWoBill]
'SQLOLEDB',
'Data Source=172.16.20.12;User ID=sales;Password=sale321'
).[MateriaiScrap].dbo.[ClassWoBill]