我想这个问题与哪个数据库无关,不过我可以说一下,我用的是SQL Server7.0
服务端用ODBC与数据库连接

解决方案 »

  1.   

    the server's task is  connected the database.
    the client send the database name to server.
      

  2.   

    我曾经用DBDEMOS等本地数据库试验过,很容易,但是用SQL 6.5似乎连接不上,系统会出现一个错误提示:“Cannot connect to the Database BYDDB”。
      

  3.   

    在查询的语句中加库名
    example:  
    select * from db1..table_name
    or
    var
       temp:string;
       temp:=database1.datebasename+'..'+table_name
       sqlcmd:='select * from "'+temp+'"';其实用dblibrary更自由、方便
       
      

  4.   

    liujh_ty:
       假如我用的是桌面数据库呢?
            
                   Lubangjian