PowerBuilder经典错误unabletoloadthere孥恶膈茯questeddatabaseinterface,Pleasem锾攒揉敫akesureboththeinterfaceandclientsoftwareareproperlyinstalled。经过笔者亲测可用的解决方案如下:
工具/原料
pb9.0版本
方法/步骤
1、PB中连接数据库,或者打开数据库画板连接microsoftsqlserver的时候会出现上图中的错误。我们继续操作
2、选择microsoftsqlserver连接,并点击new
3、点击完之后,没有弹出墙绅褡孛数据库脚本设置窗口,最下面出现相关提示:unabletoloadtherequ髫潋啜缅esteddatabaseinterface,Pleasemakesureboththeinterfaceandclientsoftwareareproperlyinstalled。
4、后来查阅资料,发现是少了名为ntwdblib.dll的SQL专用库文件,这个文件可以在网上下载得到,分为32位和64位,根据自己的操作系统来选择,这里比着的是64位的Win-10系统
5、查看DLL的详细信息,可以看到是microsoftsqlserver的库文件
6、如果系统是WindowsXP/WIN7/Vista的32位系统,将ntwdblib.dll复制到C:\Windows\System32目录下。如果系统是WIN7/win8.1/win10的64位系统,请将文件复制到C:\Windows\SysWOW64目录。
7、再来测试,我们可以看到顺利弹出数据库设置窗口了