Page 1 of 1

Operable program or batch file

Posted: 18 Aug 2010 01:38
by htbsupport
Hi,

I get the error '"type e:\test.txt|find /n /v """' is not recognized as an internal or external command, operable program or batch file.

But, it works fine, if the SQL User has sysadmin privilege or if executed via windows authentication from SQL management studio.

Any advice on this will be appropriated.

Thanks,
Austin

Re: Operable program or batch file

Posted: 18 Aug 2010 08:16
by aGerman
What exactly is the command line that causes this error? And why did you use TYPE to pipe the output to FIND? You can use FIND directly.

Regards
aGerman

Re: Operable program or batch file

Posted: 18 Aug 2010 23:21
by htbsupport
Hello aGerman,

1'st of all thanks for your response.

The command is as follow :-

command exec p_fncDeleteFTPFilename 'filename.txt', 'filename2.txt'

Can you advice anything on this ?

Regards,
Austin

Re: Operable program or batch file

Posted: 19 Aug 2010 02:32
by aGerman
Have a look at your error message. This line can't be the reason, because there is no "type" or "find" command and it seems not to be a batch code.

Regards
aGerman

Re: Operable program or batch file

Posted: 19 Aug 2010 21:50
by htbsupport
The Interesting part is that it works fine when we login as windows administrator or if the user as sysadmin previlage.

Re: Operable program or batch file

Posted: 19 Aug 2010 23:50
by orange_batch
Command prompt accesses the file system, so it sounds like an internal privilege issue. You might have to figure this one out yourself...