INSERT INTO TestTable(ID,Date,Info )SELECT a.ID,a.Date,a.Info FROM OPENROWSET('SQLOLEDB','V';'sa';'123456', 'SELECT * FROM TestDatabase.dbo.TestTable') AS a
set IDENTITY_insert TestTable OFF --设置 不某表允许插入递增量
EXEC sp_configure 'Ad Hoc Distributed Queries', 0;--关闭分布式查询 RECONFIGURE