那一定是你服务器端的程序的错误以下简单说传递参数,服务器端程序: 
function search(name:string)
m_conn:TADOConnection;
strSQL:string;
begin
  m_conn := TADOConnection.create;//创建连接对象
  m_conn.connectionstring:=..;//连接数据库
  m_conn.open//打开连接
  strSQL := 'select * from tablename where depname = ''' + name + '''';
  m_conn.excute(strSQL);
  
  m_conn.close; 
end;