张
张强
Unregistered / Unconfirmed
GUEST, unregistred user!
用Dephi编程,访问MS SQL Server数据库,关于数据库的登陆配置文件为DATABASE.INI和PASWORD.INI,我想利用它们去查询SQL Server数据库,不知是不是应该使用Data Access中的Database控件,怎样用呢?我只会用Query和Table控件。
再此多谢了!
附:
DATABASE.INI的内容如下:
KEEPCONNECTION=1
DATABASE NAME=a
SERVER NAME=abc
USER NAME=my
OPEN MODE=READ/WRITE
SCHEMA CACHE SIZE=8
BLOB EDIT LOGGING=FALSE
LANGDRIVER=CHINA
SQLQRYMODE=SERVER
SQLPASSTHRU MODE=NOT SHARED
DATE MODE=0
SCHEMA CACHE TIME=-1
MAX QUERY TIME=2000
TIMEOUT=3600
MAX ROWS=-1
BATCH COUNT=200
ENABLE SCHEMA CACHE=FALSE
SCHEMA CACHE DIR=
HOST NAME=mm
APPLICATION NAME=nn
NATIONAL LANG NAME=
ENABLE BCD=FALSE
TDS PACKET SIZE=4096
BLOBS TO CACHE=64
BLOB SIZE=32
再此多谢了!
附:
DATABASE.INI的内容如下:
KEEPCONNECTION=1
DATABASE NAME=a
SERVER NAME=abc
USER NAME=my
OPEN MODE=READ/WRITE
SCHEMA CACHE SIZE=8
BLOB EDIT LOGGING=FALSE
LANGDRIVER=CHINA
SQLQRYMODE=SERVER
SQLPASSTHRU MODE=NOT SHARED
DATE MODE=0
SCHEMA CACHE TIME=-1
MAX QUERY TIME=2000
TIMEOUT=3600
MAX ROWS=-1
BATCH COUNT=200
ENABLE SCHEMA CACHE=FALSE
SCHEMA CACHE DIR=
HOST NAME=mm
APPLICATION NAME=nn
NATIONAL LANG NAME=
ENABLE BCD=FALSE
TDS PACKET SIZE=4096
BLOBS TO CACHE=64
BLOB SIZE=32