I want to execute the oracle's import utility in MSBuild as a task. Please give a detailed answer. I am a beginner.
Asked
Active
Viewed 603 times
2 Answers
1
You may want to look into the MSBuild Exec task. I am not familiar with the Oracle utility you specified, but I do know that the Exec task will run most anything that can be run from a command line. The relevant MSBuild configuration you would need might looks something like this:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="DoImport">
<Exec
Command="imp SYSTEM/password FILE=dba.dmp FROMUSER=scott TABLES=(dept,emp)" />
</Target>
</Project>

Saul Dolgin
- 8,624
- 4
- 37
- 43