July 10, 2012 at 11:50 pm
EXEC xp_cmdshell 'findstr "DWG" E:\ABC\XYZ\123a.TXT > E:\ABC\XYZ\987a.TXT'
file is not creating while execute in SSMS, but if we execute same command in command prompt it is creating file, can you please help me.
July 11, 2012 at 12:43 am
Error message?
something like...."SQL Server blocked access to procedure 'sys.xp_cmdshell'" ?
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle
July 11, 2012 at 6:26 am
Nagabhushan (7/10/2012)
EXEC xp_cmdshell 'findstr "DWG" E:\ABC\XYZ\123a.TXT > E:\ABC\XYZ\987a.TXT'file is not creating while execute in SSMS, but if we execute same command in command prompt it is creating file, can you please help me.
What result do you get after executing it in the SSMS?
July 11, 2012 at 6:39 am
Is the "E" drive on the server or your local machine?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply