bdsrv SYSAID service_req Provider=SQLOLEDB.1;Password=S@1dquery;Persist Security Info=True;User ID=usrconsultasysaid;Initial Catalog=SYSAID;Data Source=bdsrv;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=SGI-CPIMENTEL;Use Encryption for Data=False;Tag with column collation when possible=False SQL select responsibility as 'Equipe BD',count(*) as 'Chamados Atendidos' from dbo.service_req where assigned_group in ('Banco de Dados DBA','Banco de Dados BI','Banco de Dados AD','Banco de Dados') and close_time between '2013-10-01 00:00:01.000' and '2013-10-31 23:59:59.000' group by responsibility None