Viewing 15 posts - 1 through 15 (of 20 total)
Originally, I used Master database for my purposes:
use master
go
IF EXISTS (SELECT name FROM sysobjects
WHERE name = 'sspcmdShell' AND type = 'P')
DROP PROCEDURE sspcmdShell
GO
CREATE PROCEDURE sspcmdShell
@shellCommand varchar(1000),
@value1 varchar(255),
@value2 varchar(255)
AS
declare @cmd varchar(4000)
BEGIN
select @cmd =...
April 10, 2007 at 3:21 am
Thank you for your reply.
I have now taken a different approach.
Created an sspCmdShell procedure in the master database. This procedure calls xp_cmdShell with the relevant parameters. I've granted exec to public...
May 3, 2006 at 1:47 am
Ok, I have posted this info in:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=146&messageid=276120
Thanks for your help.
Diwakar
April 28, 2006 at 3:09 am
Ok, I setup a job, and it failed.
Note, userXYZ is a domain user. The job wrote the following message to the event log:
The description for Event ID (...
April 28, 2006 at 2:38 am
Hi Derek,
cmdProxy has got exec permission on xp_cmdshell, as well as on xp_sqlagent_proxy_account.
The problem I think is that the when user userXYZ is running the T-SQL stub in Query Analyser,...
April 28, 2006 at 1:57 am
Win2003, sqlserver 2005 sp4.
User cmdService service account for sqlserver.
User cmdProxy is the proxy I want to use for xp_cmdShell.
I've followed dharper3's suggestion...
April 27, 2006 at 9:12 am
You could use an extended stored proc to write a file from within a stored proc, but this would probably be an overkill...
April 8, 2004 at 2:35 am
Oops!
What I am trying to get at is,
is not (value)
better, or
is ( value = false )
better.
I just used the T-SQL syntax on the fly, so completely missed the bit...
February 19, 2004 at 9:13 am
I have read this article before, and while it provides useful information, it is in poor taste especially when IT departments all over the world are struggling to keep systems running....
January 28, 2004 at 2:31 am
Thanks all.
I have written a script to read from INI files and posted it on this forum.
--
Diwakar Cirium
June 18, 2003 at 1:44 am
I found some info on sqlmag.com on some undocumented xp_reg* procedures, which was why I wondered if any more was available.
I was thinking of xp_cmdshell, just thought if someone else...
June 16, 2003 at 9:07 am
I have decided to use the trace procedures which offers maximum flexibility ( thanks Brian ) for my requirements.
Thanks to all of you.
Regards,
--
Diwakar Cirium
May 12, 2003 at 6:47 am
Yeah, I was just hoping that someone would have found a different way of doing this.
Thanks for your response Allen_Cui, much appreciated.
--
Diwakar Cirium
May 9, 2003 at 9:39 am
Basically, what I want to do is this :
whenever a user/operator tries running a select on a table either from a front-end (web/other) or query analyser or similar tool) ,...
May 9, 2003 at 9:22 am
Antares686,
I have no doubt the stored procedure method works fine, and will resolve the seq number generation. I was however arguing for the usage of a trigger to generate the...
February 7, 2003 at 7:33 am
Viewing 15 posts - 1 through 15 (of 20 total)