简体   繁体   English

如何使用DSN或RapidSQL连接到不带端口号的Sybase服务器/数据库? 还是如何找到端口号?

[英]How to connect to Sybase Server/Database without port number using DSN or RapidSQL? Or how to find port number?

I have Some Sybase Server/Databases. 我有一些Sybase服务器/数据库。 I know 1. Server Name 2. Database Name 3. Username 4. Password. 我知道1.服务器名称2.数据库名称3.用户名4.密码。 Using this I can connect using ISQL but while using RapidSQL it asks for port. 使用此工具,我可以使用ISQL进行连接,但是在使用RapidSQL时,它会要求端口。 I have existing application which uses DSN, while creating DSN also it asks for port. 我有使用DSN的现有应用程序,同时创建DSN时也要求端口。 I am looking for 2 possiblies using RapidSQL/Creating DSN without port or How to find port mumber? 我正在寻找使用RapidSQL /创建不带端口的DSN的2个可能,或者如何查找端口成员?

I do not have SQL.ini file. 我没有SQL.ini文件。

在此处输入图片说明

Try this: 尝试这个:

  1. Go to start-> RUN -> type dsedit . 转到开始->运行->输入dsedit There will be a mneu "Select Directory Services" 会有一个“选择目录服务”
  2. Click ok on InterfacesDriver . InterfacesDriver上单击“确定”。
  3. Highlight your server name on the left pane. 在左窗格中突出显示您的服务器名称。

You will see its IP/Hostname and Port number on the right pane. 您将在右窗格中看到其IP/HostnamePort号。

If isql works then the Sybase client must have the port number defined. 如果isql有效,则Sybase客户端必须定义端口号。

On Windows, I'd expect %SYBASE%\\ini\\sql.ini to contain a record for your server, and you'll see the port number. 在Windows上,我希望%SYBASE%\\ ini \\ sql.ini包含您服务器的记录,并且您会看到端口号。

(On Unix, $SYBASE/interfaces is the equivalent file.) (在Unix上,$ SYBASE / interfaces是等效文件。)

I don't know if it's possible but can RapidSql use a native Sybase connection? 我不知道是否可能,但是RapidSql可以使用本机Sybase连接吗? It sounds as if you're setting it up for ODBC? 听起来好像要为ODBC设置它?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM