h4fun Posted May 1, 2008 at 01:29 PM Report Share #182809 Posted May 1, 2008 at 01:29 PM Pessoal, Tenho uma dúvida relativamente a um store procedure ... A funcionalidade prende-se com intenção de efectuar um update a uma tabela... Depois de criar o sp e quando faço o execute, como posso passar os parametros dos novos "values"? (exec dbo.sp_alterar "tabela escolhida" ) e como passo os restantes valores? ID_1,Nome,ID_2 ??? Link to comment Share on other sites More sharing options...
Asgorath Posted May 1, 2008 at 10:52 PM Report Share #182943 Posted May 1, 2008 at 10:52 PM Boas. Em vez de exec dbo.sp_alterar "tabela escolhida" porque fazer um sp que altera logo a tabela pretendida e aceita os parâmetros necessários. Jorge "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now