请教,怎样用ASP连接SYBASE数据库啊,急,进者有份

wxdwe 2003-12-03 09:29:32
各位大侠,帮帮忙啊,我以前的服务器是SQL数据库啊,但是总是提示超时已过期,我想把数据库换成SYBASE 数据库啊我把数据都导入SYBASE数据库中了,但不知怎样用ASP调用他啊,请帮帮我啊,暂定分50,如果解决了,加双倍分啊,请详细回复,非常感谢
...全文
51 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
ceocio 2003-12-04
  • 打赏
  • 举报
回复
OLE DB:


Adaptive Server Anywhere (ASA):

"Provider=ASAProv;Data source=myASA"
Read more in the ASA User Guide >>
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.
Adaptive Server Enterprise (ASE):

"Provider=Sybase.ASEOLEDBProvider;Srvr=myASEserver,5000;Catalog=myDBname;User Id=username;Password=password"
This one works only from Open Client 12.5 where the server port number feature works,燼llowing fully qualified connection strings to be used without defining燼ny .IDS Data Source files.


-----------------------------------
http://ceocio.blogger.cn
-----------------------------------
ceocio 2003-12-04
  • 打赏
  • 举报
回复
ODBC:

Standard Sybase System 12 (or 12.5) Enterprise Open Client:

"Driver={SYBASE ASE ODBC Driver};Srvr=Aron1;Uid=username;Pwd=password"



Standard Sybase System 11:

"Driver={SYBASE SYSTEM 11};Srvr=Aron1;Uid=username;Pwd=password;"
Do you know a userguide for Sybase System 11, 12, 12.5? E-mail the URL to connectionstrings.com now!! >>
Intersolv 3.10:

"Driver={INTERSOLV 3.10 32-BIT Sybase};Srvr=Aron1;Uid=username;Pwd=password;"



Sybase SQL Anywhere (former Watcom SQL ODBC driver):

"ODBC; Driver=Sybase SQL Anywhere 5.0; DefaultDir=c:\dbfolder\;Dbf=c:\mydatabase.db;Uid=username;Pwd=password;Dsn="""""
Note! The two double quota following the DSN parameter at the end are escaped quotas (VB syntax), you may have to change this to your language specific escape syntax. The empty DSN parameter is indeed critical as not including it will result in error 7778.


-----------------------------------
http://ceocio.blogger.cn
-----------------------------------
wxdwe 2003-12-04
  • 打赏
  • 举报
回复
怎麽在ODBC数据源里没有SYBASE的驱动啊
DeltaCat 2003-12-03
  • 打赏
  • 举报
回复
DBCon.Open "Driver={Sybase System 11};Srvr=服务器名或IP;UID=帐号;PWD=密码;Database=数据库"
liwb 2003-12-03
  • 打赏
  • 举报
回复
用ODBC

28,407

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧