end
--*/
--/*取数据库集
exec @hr=sp_oagetproperty @SrvID,'databases',@DBsId output
--*/
--/*选择源数据库
exec @hr=sp_oamethod @DBsId,'item',@SDBId output,@Source_DB
if @hr<>0
begin
set @Error=3
goto PEnd
end
--*/
--/*选择目标数据库
exec @hr=sp_oamethod @DBsId,'item',@DDBId output,@Des_DB
if @hr<>0
begin
(编辑:aniston)
|