南
南宫吹云
Unregistered / Unconfirmed
GUEST, unregistred user!
我用BDE连接PARADOX库执行以下SQL语句:
with dm.quecx do
begin
sql.clear;
sql.add('select sbbh from equip where port=:sport and sblx=1 and sbbh not in (select callno from gt where cport=:sport)');
parambyname('sport').asstring:=cbboxcport.Text;
open;
first;
cbboxcall.Items.Clear;
while not eof do
begin
cbboxcall.Items.Add(fields[0].asstring);
next;
end;
if recordcount<>0 then cbboxcall.text:=cbboxcall.Items[0];
end;
可以运行,执行结果正确,可是将它移植到SQLSERVER7.0上时却出错:
Capability not suported.
是什么原因?我想可能是BDE的问题,为什么在SQLSERVER中不能正确执行?
with dm.quecx do
begin
sql.clear;
sql.add('select sbbh from equip where port=:sport and sblx=1 and sbbh not in (select callno from gt where cport=:sport)');
parambyname('sport').asstring:=cbboxcport.Text;
open;
first;
cbboxcall.Items.Clear;
while not eof do
begin
cbboxcall.Items.Add(fields[0].asstring);
next;
end;
if recordcount<>0 then cbboxcall.text:=cbboxcall.Items[0];
end;
可以运行,执行结果正确,可是将它移植到SQLSERVER7.0上时却出错:
Capability not suported.
是什么原因?我想可能是BDE的问题,为什么在SQLSERVER中不能正确执行?