Sybase ODBC 可經由安裝 openclient 來獲得驅動安裝, 在Visual Studio 中使用也ok, 但要注意ODBC設定中設定其connection下的charset 為 "utf8" (不是 utf-8)以避免中文產生亂碼。
不在ODBC設的話,可以在Web.config中加入 <add name="sybasebODBCConnectionString" connectionString="Driver={SYBASE ASE ODBC Driver};nln=Winsock;na=xxx.xxx.xxx.xxx,5001;db=...;uid=...;Password=...;CharSet=utf8" />
沒有留言:
張貼留言