客戶用sybase,目前都在使用者電腦上端裝sybase的client軟体再設dsedit,再設odbc去使用dsedit的名字,net專案再透過odbc連資料庫,因為特殊原因客戶希望"能不能使用者電腦上不裝sybase的client及設odbc情況下net也能連資料庫",我說應該不行,不知有沒有高手可以做得到???謝謝!!
可用 OLE DB Provide
o Adaptive Server Anywhere (ASA):
"Provider=ASAProv;Data source=myASA"
o Adaptive Server Enterprise (ASE) with Data Source .IDS file:
"Provider=Sybase ASE OLE DB Provider; Data source=myASE"
Note that you must create a Data Source .IDS file using the Sybase Data Administrator. These .IDS files resemble ODBC DSNs.
o Adaptive Server Enterprise (ASE):
"Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000;Catalog=myDBname;User Id=username;Password=password"
若是使用ODBC,不想在客戶端設定ODBC DSN時,可用下列指令..
o Standard Sybase System 12 (or 12.5) Enterprise Open Client:
"Driver={SYBASE ASE ODBC Driver};Srvr=myServerName;Uid=myUsername;Pwd=myPassword"
o Standard Sybase System 11:
"Driver={SYBASE SYSTEM 11};Srvr=myServerName;Uid=myUsername;Pwd=myPassword"