我在(windows 2000)SQL server 2000 中建立了一个文件DSN,指向本机中SQlServer 中一个特定的数据库,然后将这个DSN文件拷贝至其他客户端机器中,在ODBC中测试连接,windows2000 和windows xp的机器均连接成功,唯独windows98 不行。为啥。是数据库驱动版本的问题吗??如果是这样,又该怎么修改呢???俺有的是分,只求一个完善的回答!!!

解决方案 »

  1.   

    驱动的版本或路径不对,贴出你的DSN看看
      

  2.   

    my.dsn 文件的内容
    [ODBC]
    DRIVER=SQL Server
    UID=wlqyxkmn
    WSID=ZC_WANGLIQIANG
    APP=Microsoft Open Database Connectivity
    SERVER=ZC_WANGLIQIANG\BARON     odbc.ini 的内容
    [ODBC 32 bit Data Sources]
    MS Access Database=Microsoft Access Driver (*.mdb) (32 bit)
    Excel Files=Microsoft Excel Driver (*.xls) (32 bit)
    Visual FoxPro Database=Microsoft Visual FoxPro Driver (32 bit)
    Visual FoxPro Tables=Microsoft Visual FoxPro Driver (32 bit)
    dBASE Files=Microsoft dBase Driver (*.dbf) (32 bit)
    MQIS=SQL Server (32 bit)
    FoodMart 2000=Microsoft Access Driver (*.mdb) (32 λ)
    Xtreme Sample Database=Microsoft Access Driver (*.mdb) (32 bit)
    SDS=Microsoft Access Driver (*.mdb) (32 bit)
    [MS Access Database]
    Driver32=C:\WINNT\System32\ODBCJT32.DLL
    [Excel Files]
    Driver32=C:\WINNT\System32\odbcjt32.dll
    [Visual FoxPro Database]
    Driver32=C:\WINNT\System32\vfpodbc.dll
    [Visual FoxPro Tables]
    Driver32=C:\WINNT\System32\vfpodbc.dll
    [dBASE Files]
    Driver32=C:\WINNT\System32\odbcjt32.dll
    [MQIS]
    Driver32=C:\WINNT\System32\SQLSRV32.dll
    [FoodMart 2000]
    Driver32=C:\WINNT\System32\odbcjt32.dll
    [Xtreme Sample Database]
    Driver32=C:\WINNT\System32\odbcjt32.dll
    [SDS]
    Driver32=C:\WINNT\System32\ODBCJT32.DLL
      

  3.   

    C:\WINNT\System32
    win98 可不是这个路径
      

  4.   

    您弄错了。这是我机器上的ODBC.ini ,我的机器是win2000,在客户端win98中直接做ODBC也连不到我的机器上??
      

  5.   

    你的SQL Server实例是混合身份验证吗? 试一下使用SQL Server验证,不要用Windows验证
      

  6.   

    就是SQL Server验证,在客户端输入密码后即告连接失败。。安装MDAC2.7 后也无效。
    可在2000和xp的机器中就啥事没有,愁四俺了
      

  7.   

    use fso.getspicalfloder
    get systemroot
    then that's o.k
      

  8.   

    你在WIN98中安装SQL SERVER客户端,然后用SQL SERVER客户端网络实用工具 添加一个服务器别名(用Named Pipes).