How can I script the deployment of a Visual Studio database project?
Posted
by Matt
on Stack Overflow
See other posts from Stack Overflow
or by Matt
Published on 2010-05-13T01:16:09Z
Indexed on
2010/05/13
1:24 UTC
Read the original article
Hit count: 322
How can I script the deployment of a Visual Studio database project?
I have a DB project in visual studio and I would like to use it in order to deploy on remote machines via a script. I notice that when I 'deploy' from visual studio, it generates a .sql file.
I intercepted this file and tried running it from the command line with osql.exe, but I didn't have any success. Should this work, is there a better way to deploy a database programatically from a database project, may be by referencing in another project and calling some method to deploy it?
© Stack Overflow or respective owner