我正在使用以下查询:
IF OBJECT_ID('dbo.StudentDestination') IS NULL
begin
Select *,getdate() MyTimeStamp
into AkshayDestination..StudentDestination
From AkshaySource..sys.dm_io_virtual_file_stats(NULL, NULL)
End
Else
Begin
Insert into AkshayDestination..StudentDestination
select *,getdate() MyTimeStamp
From AkshaySource..sys.dm_io_virtual_file_stats(NULL, NULL)
End
这基本上是一种将表中的所有数据复制到另一个表的方法(添加一个时间戳列以确定插入时间)
但这给了我一个错误:
Msg 4122, Level 16, State 1, Line 6
Remote table-valued function calls are not allowed.
请让我知道我哪里错了。