MSBuild task to execute DDL and SQL statements.
Namespace: MSBuild.Community.Tasks.SqlServer
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)
Syntax
Example
Copy Code | |
---|---|
<PropertyGroup> <ConnectionString>Server=localhost;Integrated Security=True</ConnectionString> </PropertyGroup> <Target Name="ExecuteDDL"> <ExecuteDDL ConnectionString="$(ConnectionString)" Files="SqlBatchScript.sql" ContinueOnError="false" /> </Target> |
Remarks
Requires the the SQL Server libraries and dynamically loads the required Microsoft.SqlServer.ConnectionInfo assembly.
Inheritance Hierarchy
Thread Safety
Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
See Also
Documentation version 1.0.0.0.