Custom MSBuild task for running sql scripts(devauthority.com)

submitted by gavinjoycegavinjoyce(25.7k) 5 years, 8 months ago

joeyDotNet has created a custom MSBuild task to run any number of sql scripts in a directory

1 comment |category: |Views: 244

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by picklesinmyearspicklesinmyears(0) 5 years, 5 months ago 0

All you need to do is this:

<ItemGroup>
<StoredProcScripts Include="$(RelativeSPDir)/*.sql" />
</ItemGroup>

<Target>
<Exec Command="isql -E -n -b -d DBName -i %(StoredProcScripts.Identity)" Condition="'%(StoredProcScripts.Identity)' != ''"/>
</Target>

Reply

information Login or create an account to comment on this story