我试过按照李维写的《delphi7高级数据库程序设计》里面说的连接方法,但是我用SQLCONNECTION是可以连接到,可是我用SQLTABLE或者SQLDATASET来连接上SQLCONNECTION的时候,在TABLENAME的属性里面一个数据表我也看不到啊,我在我的数据库里面是创建了很多数据表的

解决方案 »

  1.   

    在设计时是看不到的,里面有哪些数据表你自己应该知道啊,在TABLENAME属性里设置好,再设置Active属性为True就行了。
      

  2.   

    URL ftp://ftpd.borland.com/devsupport/delphi/d7/mssql/mssqlupdate.zip
    不过不用打补丁也可以连上sql2000的,而且显示都很正常仔细看看《delphi7高级数据库程序设计》这本书吧,说得很清楚的。
    。。((它修正了
    This update resolves two issues with the MSSQL driver.
    * Unable to connect with Empty Username/Password:
       In the previous driver, trying to connect with an
       empty Username/Password resulted in an SQL error.* Parameter binding into a VARCHAR column inserted an
       extra trailing ASCII 0 character
       Attempting parameter binding inserts into a
       VARCHAR column would insert an ASCII 0 character at
       the end of the data. For example, in a table with
       Code defined as VARCHAR(12) and Description defined
       as VARCHAR(50) the following code segment
       demonstrates the problem.
      

  3.   

    怎么可能设计时看不到数据表的名字呢?用BDE的时候也可以啊。TABLENAME属性应该是一堆在你的数据库里面可以访问到的数据表的名字啊。
      

  4.   

    才用过,到Borland的网站上下载补丁后就可以了,下载的是时候注意下载D7的哪个,就是你用D6也可以使用,而D6版本的哪个补丁有问题(也许跟我的机器有关)。
    dbexpsda.exe