1. Update Permission on Stored Procedures - SQL Server
2. Triggers, Stored Procedures and user permission to call an Extended Procedure
3. Stored Procedure for update : update selected fields depending on indicators - SQL Server
4. Stored Procedure for update : update selected fields depending on
Something like ... CREATE PROCEDURE TestProc ( @indicator1 int ,@indicator2 int ,@field1 varchar(50) ,@field2 varchar(50) ,@keyfield int ) AS IF @indicator1 = 1 THEN UPDATE MyTable SET Field1 = @field1 WHERE keyfield = @keyfield IF @indicator2 = 1 THEN UPDATE MyTable SET Field1 = @field2 WHERE keyfield = @keyfield -- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA *************************** Think Outside the Box! *************************** " XXXX@XXXXX.COM " wrote: > Hello, > > > is it possible to create a stored procedure with parameters, > so that you can say for example : > > update table > > if @indicator1 = 1 then set field1 = @field1 > if @indicator2 = 1 then set field2 = @field2 > ..... > > where keyfield = @keyfield ? > > > thank you, > kind regards , > > sven > >
5. PRB: INSTEAD OF UPDATE trigger fails when UPDATE is done from an stored procedure - SQL Server
6. Calling a stored procedure from a stored procedure and ignoring output from inner procedure call
Hello there, I am executing a stored procedure from inside my own procedure. The procedure I am calling returns a resultset and this messes up the resultsets from my procedure. Is there a way to ignore the output from a stored procedure? (like set nocount on?) Best
8. Stored procedure permissions with xp_cmdshell on SQL 6.5
Is there any way to allow a user to use the xp_cmdshell extended stored procedure without giving that user execute permissions to xp_cmdshell in SQL server 6.5? Let me clarify. Lets say I (as the dbo) create a stored procedure called sp_send_err: CREATE PROCEDURE sp_send_err @CompID varchar(20) AS declare @strCMD varchar(255) select @strCMD = "master.dbo.xp_cmdshell 'net send " + @CompID + " ""ERROR!""', no_output" execute (@strCMD) GO Now lest say I give "user1" execute permissions on sp_send_err, but no permissions on xp_cmdshell. When I run sp_send_error I get the following error: "EXECUTE permission denied on object xp_cmdshell, database master, owner dbo". Why doesn't this work? What else can I do?