我有这个错误:
LoadFromSQLServer 方法遇到 OLE DB 错误代码 0x80004005(登录超时已过期)。发出的 SQL 语句失败
这是我的代码,有什么问题?
DECLARE @FileName VARCHAR(50);
DECLARE @VendorID VARCHAR(50);
DECLARE @sql VARCHAR(2000);
DECLARE @Local_File_FullPath VARCHAR(100);
SET @FileName = 'Extgt_skinny_file.txt.pgp'
Set @VendorID = 'ET'
Select @Local_File_FullPath = dw03_path FROM GMAC_META.dbo.VENDOR_XFER_METADATA where vendor_id = @VendorID
SET @sql = 'dtexec /SQL "\EMAP_FTP_XFER_CHECK" /SET \Package.Variables[User::FileName].Properties[Value];"'
+ @FileName+'" /SET \Package.Variables[Local_File_FullPath].Properties[Value];'
+ @Local_File_FullPath+' /SERVER "hqgmdw02/dw_dev" /CHECKPOINTING OFF /REPORTING E'
exec xp_cmdshell @sql