This project is read-only.

Sql batch

The following commands are only available on a Sql Server instance.
  • sql-run: this command will let you apply a batch of sql commands on your Sql Server instance.
The xml attribute named file expects the name of the file containing the Sql commands. The attribute path is the path of the flder containing this file. The attribute connectionString lets you define the connection-string for the targetted database.

<setup>
    <sql-run 
         file="MyCommands.Sql"
         path="SQL\"
         connectionString="..."/>
</setup>

If you want to avoid to repeat this connection-string within all your commands, you can create a default value for the connectionString in the settings at the top of your test-suite. the apply-to value must be set to to setup-cleanup.

Last edited Oct 6, 2014 at 10:23 PM by Seddryck, version 3

Comments

No comments yet.