0

i need to rename a file in database using sql script. The sql script must be executed from an ant script.How can this be done?

trilawney
  • 1,786
  • 6
  • 28
  • 36

1 Answers1

1

If ant can call executables then you could call the sqlcmd.exe utility - you can pass it a query as a string (using -Q) or you can tell it a file that contains your commands (using -i).

Aaron Bertrand
  • 272,866
  • 37
  • 466
  • 490