SSIS VB脚本对String语法敏感 [英] SSIS VB Script Sensitive to String syntax

查看:55
本文介绍了SSIS VB脚本对String语法敏感的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找SSIS VB脚本组件是否可以将参数的敏感值转换为字符串以将其用于连接。 我可以找到各种对C#的引用,但对于VB没有任何内容。 非常感谢有人使用
语法或者至少确认VB脚本无法执行此操作。

I've been searching to find out if an SSIS VB script component can get the sensitive value of a parameter to string to use it for a connection.  I can find all kinds of reference to C#, but nothing for VB.  Greatly appreciate if someone has the syntax or at least confirm a VB script cannot do it.

 string you_secret_value = Dts.Variables["$Package::XYg"].GetSensitiveValue().ToString();

推荐答案

.NET处理字符串值区分大小写,如果你是独立的使用C#或VB.NET,对于变量名,你必须使用正确的大小写。

.NET handles string values case sensitive, Independent if you use C# or VB.NET and for the variable name you have to use the right case.

这就是为什么许多开发人员使用较小的名称作为名称的原因。

That's the reason why many developer uses lower cases for names.


这篇关于SSIS VB脚本对String语法敏感的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆