|
Hello, I have a database project in Visual Studio 2010. After the database is deployed (not after it is built) I want to execute a DOS command-line in the same way that can be done for the Post-build event. Does anyone know how to do this?
(comments are locked)
|
|
I believe the post-deployment scripts support SQLCMD syntax. I haven't done this myself, but try calling the command line from your post deployment sql script
the list of commands supported by SQLCMD can be found in Books Online - http://msdn.microsoft.com/en-us/library/ms162773.aspx
(comments are locked)
|
|
You can define a post-deploy event in the project file, even though the GUI doesn't expose this. e.g.
(comments are locked)
|

