I want to insert master data automatically. (executing sql scripts automatically)
I tried this using database project using pre-deployment script.
But my application is deployed on windows azure.
Is there any limitation for this?
or should I go with database project and pre-deployment project
How do i execute .sql script automatically when I build my project.
Really tricky. As of my knowledge You can't execute a .sql script automatically when you build your project.
Alternatively you can write a console application EXE for roll out your scripts, and then the call the Console app EXE in post-build events of visual studio, so that each and every successive build the EXE get triggered.
So automatically your scripts are executed via this EXE after every successive build.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.