Escape ;(semicolon) in odbc connection string in app.config file

后端 未结 5 1723
不思量自难忘°
不思量自难忘° 2020-12-06 05:43

I have created a windows form with certain fields. I am trying to interact with oracle database through ODBC DSN connections.

I have an issue in the below connection

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-06 06:07

    Apparently, ODBC is special when it comes to escaping connection string values with semicolons, equal signs, etc. According to this, you should enclose values with special characters in curly braces {}

    connectionString="DSN=CLA_T5;Uid=abc;Pwd={abc;45}"
    

提交回复
热议问题