[Wtr-general] Test Data Cleanup/Reset Database in a .bat
Jason
forum-watir-users at openqa.org
Thu Mar 1 11:32:51 EST 2007
Here was my solution, in case others have this problem. I used setup and the sqlcmd.exe utility to call the SQL statement from within the batch file. So, it looks like this:
def setup
system("sqlcmd.exe -i C:\\myproject\\CleanDatabase.sql -e -b -S x -U x -P x")
end
Cheers,
Jason
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6700&messageID=19431#19431
More information about the Wtr-general
mailing list