funcionou; é que peguei diretamente na janela a sugestão do componente.
  agora percebi que talvez não tenha ganho de performance, pois com o TQuery
  ficou no mesmo tempo.
  grato
   
  Stainle

Ulisses <[EMAIL PROTECTED]> escreveu:
  Bom dia!

O erro está aqui 'dbo.sp_Vendalin;1'.

Retire o ";1" da propriedade ProcedureName e seja feliz.

Boa sorte.

Ulisses
  -----Mensagem Original----- 
  De: stainle2003 
  Para: delphi-br@yahoogrupos.com.br 
  Enviada em: quarta-feira, 25 de outubro de 2006 11:14
  Assunto: [delphi-br] Stored Procedure


  criei a SP abaixo no SQLSERVER 2000;
  porém quando tento executar :

  Dados.StoredProc1.Prepare;
  Dados.StoredProc1.ParamByName('@pmes').AsInteger := StrToInt
  (Edit1.Text);
  Dados.StoredProc1.ParamByName('@pano').AsInteger := StrToInt
  (Edit2.Text);
  Dados.StoredProc1.ExecProc;
  Dados.StoredProc1.UnPrepare;
  ocorre o seguinte erro :

  General SQL Error.
  Could not find stored procedure 'dbo.sp_Vendalin;1'.

  ONDE ESTOU ERRANDO ?????

  grato

  Stainle

  ----------------
  CREATE PROCEDURE sp_Vendalin (@pmes integer, @pano integer)
  as
  select substring(mat.tcodigo, 1, 3) as linha, mat.tiimes, mat.tiano, 
  sum(mat.ttotal) as Matriz,
  (select  sum(f03.ttotal) from esif03 f03
  where (substring(mat.tcodigo, 1, 3) = substring(f03.tcodigo, 1, 3)) 
  and (mat.tiimes = f03.tiimes) and (mat.tiano = f03.tiano)
  and (f03.tiopera = 2) and (f03.tihisto = 'S')) as Brasilia,
  (select  sum(f04.ttotal) from esif04 f04
  where (substring(mat.tcodigo, 1, 3) = substring(f04.tcodigo, 1, 3)) 
  and (mat.tiimes = f04.tiimes) and (mat.tiano = f04.tiano)
  and (f04.tiopera = 2) and (f04.tihisto = 'S')) as Poa,
  (select  sum(f05.ttotal) from esif05 f05
  where (substring(mat.tcodigo, 1, 3) = substring(f05.tcodigo, 1, 3)) 
  and (mat.tiimes = f05.tiimes) and (mat.tiano = f05.tiano)
  and (f05.tiopera = 2) and (f05.tihisto = 'S')) as Belo,
  (select  sum(f06.ttotal) from esif06 f06
  where (substring(mat.tcodigo, 1, 3) = substring(f06.tcodigo, 1, 3)) 
  and (mat.tiimes = f06.tiimes) and (mat.tiano = f06.tiano)
  and (f06.tiopera = 2) and (f06.tihisto = 'S')) as Curitiba,
  (select  sum(f07.ttotal) from esif07 f07
  where (substring(mat.tcodigo, 1, 3) = substring(f07.tcodigo, 1, 3)) 
  and (mat.tiimes = f07.tiimes) and (mat.tiano = f07.tiano) 
  and (f07.tiopera = 2) and (f07.tihisto = 'S')) as SantaCata
      from esimat mat
  where (mat.tiimes = @pmes) and (mat.tiano = @pano) and (mat.tiopera = 
  2) and (mat.tihisto = 'S')
  group by mat.tiimes, mat.tiano, substring(tcodigo, 1, 3)
  order by linha
  GO



   

[As partes desta mensagem que não continham texto foram removidas]

 

                
---------------------------------
 Você quer respostas para suas perguntas? Ou você sabe muito e quer 
compartilhar seu conhecimento? Experimente o Yahoo! Respostas!

[As partes desta mensagem que não continham texto foram removidas]



-- 
<<<<< FAVOR REMOVER ESTA PARTE AO RESPONDER ESTA MENSAGEM >>>>>

<*> Para ver as mensagens antigas, acesse:
    http://br.groups.yahoo.com/group/delphi-br/messages

<*> Para falar com o moderador, envie um e-mail para:
    [EMAIL PROTECTED]
 
Links do Yahoo! Grupos

<*> Para visitar o site do seu grupo na web, acesse:
    http://br.groups.yahoo.com/group/delphi-br/

<*> Para sair deste grupo, envie um e-mail para:
    [EMAIL PROTECTED]

<*> O uso que você faz do Yahoo! Grupos está sujeito aos:
    http://br.yahoo.com/info/utos.html

 

Responder a