Jump to content
Fórum Script Brasil
  • 0

Optimização SP


shaq

Question

Boas, estou com uma duvida referente a Store Procedures de SQL Server.

Imaginando que existe procedimento ao qual só tenho acesso o cabeçalho:

procFoo (par1 int,par2 int);
Numa aplicação eu tenho uma tabela sobre a qual vou executar este procediemnto por todos os tuplo. Pretendia optimizar criando um novo procedimento com o seguinte corpo:
create type tbType as table(col1 int,col2 int)
create newProc( @tbPar tbType )
as
--O que fazer aqui!?(sem usar cursor ou while)
go

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...