nant script to run t-sql

J

John A Grandy

Can't find anywhere else to post this :

Within a nant loop, I'd like to first perform a simple db update (single
column of single row in single table) and then trigger the running of nunit
tests contained within various assemblies.

The question I have is: how to perform the db update ? Is there a way to
run ad-hoc t-sql from within a nant script ? Or calling a parameterized
stored procedure ?

If all of the above is impossible, how about triggerring execution of a
console app executable that accepts a parameter ?

Thanks.
 
A

Arne Vajhøj

John said:
Within a nant loop, I'd like to first perform a simple db update (single
column of single row in single table) and then trigger the running of nunit
tests contained within various assemblies.

The question I have is: how to perform the db update ? Is there a way to
run ad-hoc t-sql from within a nant script ? Or calling a parameterized
stored procedure ?

If all of the above is impossible, how about triggerring execution of a
console app executable that accepts a parameter ?

Get the extra tasks in NAntContrib, then you have a sql task.

Fallbak NAnt has an exec task to run any program.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top