使用SAS的PROC SQL,有沒有插入來自SAS數據集記錄到表中打開SQL Server連接的方法嗎?像這樣的東西(這是行不通的):SAS PROC SQL數據庫表中插入
proc sql exec;
connect to sqlservr as DataSrc (server=my-db-srvr database=SasProcSqlTest);
create table Items as select * from connection to DataSrc (
SELECT * FROM tblItem
);
update Items
set Name = Name + Name,
Value * 2;
insert into tblItem (Name, Value)
select Name, Value
from Items;
disconnect from DataSrc;quit;run;
quit;
run;