Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-03-28 : 07:17:59
|
| Will writes "Hi-I am attempting to write a stored procedure that uses xp_cmdshell. What I am trying to accomplish is to run an exe that finds a certain XML file, searches the XML file for invalid characters and removes them. We have the exe written, I need to find a way to call the exe and point it towards the certain XML file. What I predict is something like the following:EXEC master..xp_cmdshell 'mdm_CleanExternalXML.exe','nomenclature_file.xml'Where mdm_CleanExternalXML.exe is the exe name that cleans the file nomenclature_file.xml. I would think that the XML file would be a parameter for the exe. How would I call the certain XML file?Is the above syntax correct?Thanks" |
|
|
Page47
Master Smack Fu Yak Hacker
2878 Posts |
Posted - 2003-03-28 : 08:10:40
|
| Is the exec written to accept a parameter?if so,exec master.dbo.xp_cmdshell 'mdm_cleanexternalxml.exe nomenclature_file.xml'Jay White{0} |
 |
|
|
|
|
|