dts传输文本数据问题

ibicf 2005-07-15 02:16:01
各位老大,我现在要用dts从文本数据往目标数据库传数据,但是如果文本数据为空的话,就会报错。我现在想知道有什么方法判断如果文本数据为空,我就不执行这一步。谢谢先
...全文
169 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
downmoon 2005-09-04
  • 打赏
  • 举报
回复
strMsg = "G:\BAK\prg_code\WebLog\HGH\WEBEXTD20050904.log"
Set fs = CreateObject("scripting.FileSystemobject")
If (fs.FileExist(strMsg)) Then
DTSGlobalVariables("gvstrErrorInfo").Value = ""
DTSGlobalVariables("gvHGHPath").Value = strMsg
Main = DTSTaskExecResult_Success
Else
DTSGlobalVariables("gvstrErrorInfo").Value = "WebLog File" & vbCrLf & strMsg & vbCrLf & "not Exist!"
DTSGlobalVariables("gvHGHPath").Value = ""
Main = DTSTaskExecResult_Failure
End If
lovcal 2005-07-16
  • 打赏
  • 举报
回复
up
ibicf 2005-07-15
  • 打赏
  • 举报
回复
up
ibicf 2005-07-15
  • 打赏
  • 举报
回复
楼上的,我是用activex脚本实现,不知道该怎么写
hsj20041004 2005-07-15
  • 打赏
  • 举报
回复
思路:文本数据为空就是其大小为0,可以用其它语言,不用sql语句
ibicf 2005-07-15
  • 打赏
  • 举报
回复
up

27,579

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 应用实例
社区管理员
  • 应用实例社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧