Z
zhugm1234
Unregistered / Unconfirmed
GUEST, unregistred user!
1.
with dm1.ADOQuery2 do
begin
close;
SQL.Clear;
sql.text:='update ht_user set ht_longin_flage=:login_flag where h_code='+edit_code.text;
parameters.parambyname('login_flag').value:='1';
open;
end;
正确运行。
但下面的则出错!h_login_time为datetime型 .
with dm1.ADOQuery2 do
begin
close;
SQL.Clear;
sql.text:='update ht_user set ht_longin_time=:login_time where h_code='+edit_code.text;
parameters.parambyname('login_time').value:=now;
open;
end;
2.
with dm1.ADOQuery2 do
begin
close;
SQL.Clear;
SQL.Add('insert into h_user(h_code,h_name,h_login_time,h_login_flag) values m_code,:m_name,:m_login_time,:m_login_flag)');
Parameters.Items[0].Value:='3';
Parameters.Items[1].Value:='zbc';
Parameters.items[2].Value:=now;
Parameters.items[3].Value:='1';
open;
end;
错误提示:[Microsoft][ODBC SQL Server Driver]Optional feature not implemented
程序环境:Delphi5.0 + Pwin98 + SQL Server7.0
错误提示:[Microsoft][ODBC SQL Server Driver]Optional feature not implemented
请“富翁们”指教。谢谢!
with dm1.ADOQuery2 do
begin
close;
SQL.Clear;
sql.text:='update ht_user set ht_longin_flage=:login_flag where h_code='+edit_code.text;
parameters.parambyname('login_flag').value:='1';
open;
end;
正确运行。
但下面的则出错!h_login_time为datetime型 .
with dm1.ADOQuery2 do
begin
close;
SQL.Clear;
sql.text:='update ht_user set ht_longin_time=:login_time where h_code='+edit_code.text;
parameters.parambyname('login_time').value:=now;
open;
end;
2.
with dm1.ADOQuery2 do
begin
close;
SQL.Clear;
SQL.Add('insert into h_user(h_code,h_name,h_login_time,h_login_flag) values m_code,:m_name,:m_login_time,:m_login_flag)');
Parameters.Items[0].Value:='3';
Parameters.Items[1].Value:='zbc';
Parameters.items[2].Value:=now;
Parameters.items[3].Value:='1';
open;
end;
错误提示:[Microsoft][ODBC SQL Server Driver]Optional feature not implemented
程序环境:Delphi5.0 + Pwin98 + SQL Server7.0
错误提示:[Microsoft][ODBC SQL Server Driver]Optional feature not implemented
请“富翁们”指教。谢谢!