Start SQL Server Remote Server Operate

--start OpenRowSet and OpenDatasource          ui

exec sp_configure'show advanced options',1spa

reconfigureserver

exec sp_configure'Ad Hoc Distributed Queries',1io

reconfiguretest

--Exec add, delete, query, updatedva

select * from openrowset('SQLOLEDB','serverName';'userid';'password',test.dbo.stu)date

Select s.stuid From OPENDATASOURCE('SQLOLEDB','Data Source=v-liuke;User ID=sa; Password=password').test.dbo.stus s select

相關文章
相關標籤/搜索