主要是因為缺少相關的Driver ,在這裡以MSSQL作為教學範例
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Database Engine\Settings\DRIVERS\MSSQL]
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Database Engine\Settings\DRIVERS\MSSQL\DB OPEN]
"DATABASE NAME"=""
"SERVER NAME"="MSS_SERVER"
"USER NAME"="MYNAME"
"OPEN MODE"="READ/WRITE"
"SCHEMA CACHE SIZE"="8"
"BLOB EDIT LOGGING"=""
"LANGDRIVER"=""
"SQLQRYMODE"=""
"SQLPASSTHRU MODE"="SHARED AUTOCOMMIT"
"DATE MODE"="0"
"SCHEMA CACHE TIME"="-1"
"MAX QUERY TIME"="300"
"MAX ROWS"="-1"
"BATCH COUNT"="200"
"ENABLE SCHEMA CACHE"="FALSE"
"SCHEMA CACHE DIR"=""
"HOST NAME"=""
"APPLICATION NAME"=""
"NATIONAL LANG NAME"=""
"ENABLE BCD"="FALSE"
"TDS PACKET SIZE"="4096"
"BLOBS TO CACHE"="64"
"BLOB SIZE"="32"
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Database Engine\Settings\DRIVERS\MSSQL\INIT]
"VERSION"="4.0"
"TYPE"="SERVER"
"DLL32"="SQLMSS32.DLL"
"VENDOR INIT"=""
"CONNECT TIMEOUT"="60"
"TIMEOUT"="300"
"DRIVER FLAGS"=""
"TRACE MODE"="0"
"MAX DBPROCESSES"="36"
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Socket Server]
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Socket Server\211]
"Port"="211"
"ThreadCacheSize"="0"
"InterceptGUID"=""
"Timeout"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Socket Server\212]
"Port"="212"
"ThreadCacheSize"="0"
"InterceptGUID"=""
"Timeout"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Socket Server\213]
"Port"="213"
"ThreadCacheSize"="0"
"InterceptGUID"=""
"Timeout"="0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Borland\Socket Server\Settings]
"ShowHost"="0"
將上面紅字部份存成mssql.reg後執行,再將ntwdblib.DLL複製到C:\WINDOWS\system32,搞定