如何在SQL Server 2000 DTS中组合两种类型的动态属性?
基本上,我找不到结合两种类型的方法。例如,假设我想要一个连接来引用一个文本文件,该文件保存在由环境变量之一标识的路径中,并且其文件名是当天的字符串形式。 我可以使用 SQL 来设置文件名,并使用环境变量来设置路径,但我似乎找不到将两者连接成完整文件路径的方法,然后可以将其用作文本文件连接。我错过了什么吗?
Basically, I can't find a way to combine two types. For example, supposing I want a connection to refer to a text file that is held in a path identified by one of the environment variables, and whose filename is a string form of the current day.
I can use SQL to set the filename, and an environment variable to set the path, but I can't seem to find a way to join the two into a full file path which can then be used as a Text File connection. Am I missing something?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系,在这里找到了一种获得相同效果的方法:
http://www.sqlservercentral。 com/articles/DTS/2851/
以及 ActiveX 脚本任务。
Never mind, found a way to get the same effect here :
http://www.sqlservercentral.com/articles/DTS/2851/
with an ActiveX script task.