连接InterBase服务器(50分)

delphi自带的interbase不是客户端吗,能做服务器?
 
to dragonlee007:
我试试,能解决马上给分!
 
InterBase数据库根据你机器使用的协议不同,SERVER NAME书写的格式有不同,具体怎样写
我忘记了,你自己查一下吧.
 
这是bde显示出来的interbase servername设置的一个bug。
正确的应该是这样:
使用TCP/IP情况下
SERVER NAME server1:c:/ibserver/examples/employee.gdb


Unable to complete network request to host
-Failed to locate host machine

Last modified: 4/21/1998
Author: Brett Bandy

Issue:

When trying to connect to InterBase through a BDE alias the
following error message is generated:

Unable to complete network request to host
-Failed to locate host machine

This error can be generated, because the BDE alias has been
setup incorrectly. One cause of this error message is when
the BDE alias has the machine and path setup in the aliases
PATH parameter instead of the SERVER NAME parameter.

Note: This is a client problem not a server problem.



Solution:

Make sure that the PATH parameter of the alias is blank and
the SERVER NAME parameter is setup correctly.

Following are examples of correct SERVER NAME parameters:

For local access:
c:/ibserver/examples/employee.gdb

For network access using netbeui:
//server//c:/ibserver/examples/employee.gdb

For network access using TCP/IP
server:c:/ibserver/examples/employee.gdb [Win NT]
server:/usr/interbase/examples/v4/employee.gdb [Unix]

Example of a correctly setup BDE alias:

TYPE INTRBASE
PATH
SERVER NAME server1:c:/ibserver/examples/employee.gdb
USER NAME SYSDBA
OPEN MODE READ/WRITE
SCHEMA CACHE SIZE 8
LANGDRIVER
SQLQRYMODE
SQLPASSTHRUMODE SHARED AUTOCOMMIT
SCHEMA CACHE TIME -1

 
多人接受答案了。
 
顶部