加入收藏 | 设为首页 | 会员中心 | 我要投稿 湖南网 (https://www.hunanwang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

oracle – SQLDriverConnect偶然会在{}中包括暗码时失败

发布时间:2021-01-13 12:44:10 所属栏目:站长百科 来源:网络整理
导读:按照SQLDriverConnect的 documentation, Because of connection string and initialization file grammar,keywords and attribute values that contain the characters []{}(),;?*=!@ not enclosed with braces should be avoided. 和 A DSN or connection s

按照SQLDriverConnect的 documentation,

Because of connection string and initialization file grammar,keywords and attribute values that contain the characters []{}(),;?*=!@ not enclosed with braces should be avoided.

A DSN or connection string value enclosed with braces ({}) containing any of the characters []{}(),;?*=!@ is passed intact to the driver.

行使毗连字符串DSN =%s; UID =%s; PWD = {%s}在SQLServer中事变 – 究竟上,假如存在某些非凡字符,则不在{}中包括暗码失败.可是,对MS Access行使沟通的字符串会因“暗码无效”而失败,而且在删除{}时有用.它也不合用于Oracle.

假如{}中包括的字符串完备地转达给处事器,那么它不该该事变吗?可能我错过了什么?

办理要领

SQLDriverConnect’s Access-specific page指出:

The PWD keyword should not include any of the special characters (see SQL_SPECIAL_CHARACTERS in SQLGetInfo Returned Values).

在毗连到Access并将SQL_SPECIAL_CHARACTERS作为InfoType参数转达时挪用SQLGetInfo function应该返回@Andrew Gibson提到的禁用字符.

knowledge base article的“更多信息”部门包括不提议在Access应用措施中行使的非凡字符列表.

IBM的DB2具有沟通名称的SQLGetInfo function,具有沟通的参数列表,并回收沟通的InfoType常量来返回非凡字符,个中列出如下:

all characters except a…z,A…Z,0…9,and underscore

(编辑:湖南网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    热点阅读