VSDBCMD.exe options<p align=left><font face=Arial size=2></font> </p> <p>The help on VSDBCMD is a little lite.  Are there any examples?</p>© 2009 Microsoft Corporation. All rights reserved.Wed, 07 Jan 2009 14:27:33 Ze188dd40-dfe0-45a0-b75b-fcf7d187c2b9http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#e188dd40-dfe0-45a0-b75b-fcf7d187c2b9http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#e188dd40-dfe0-45a0-b75b-fcf7d187c2b9Sharpsterhttp://social.msdn.microsoft.com/Profile/en-US/?user=SharpsterVSDBCMD.exe options<p align=left><font face=Arial size=2></font> </p> <p>The help on VSDBCMD is a little lite.  Are there any examples?</p>Wed, 03 Sep 2008 00:11:17 Z2008-09-03T00:11:17Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#ff2f49e2-1736-4fdd-81bd-8bc9eca25ab1http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#ff2f49e2-1736-4fdd-81bd-8bc9eca25ab1Chelvy Sunhttp://social.msdn.microsoft.com/Profile/en-US/?user=Chelvy%20SunVSDBCMD.exe options<p align=left><font face=Arial size=2></font> </p> <p><a title="http://msdn.microsoft.com/en-us/library/aa833182.aspx" href="http://msdn.microsoft.com/en-us/library/aa833182.aspx">http://msdn.microsoft.com/en-us/library/aa833182.aspx</a></p> <p align=left><a title="http://msdn.microsoft.com/en-us/library/aa833418.aspx" href="http://msdn.microsoft.com/en-us/library/aa833418.aspx">http://msdn.microsoft.com/en-us/library/aa833418.aspx</a></p> <p align=left><a title="http://msdn.microsoft.com/en-us/library/aa833281.aspx" href="http://msdn.microsoft.com/en-us/library/aa833281.aspx">http://msdn.microsoft.com/en-us/library/aa833281.aspx</a></p> <p align=left> </p> <p align=left>I hope the above links would provide what you are looking for if not please let us know what VSDBCMD implementation examples are you looking for.</p>Wed, 03 Sep 2008 21:34:47 Z2008-09-03T21:34:47Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#49bd8762-887a-40ca-8446-e210816b16a2http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#49bd8762-887a-40ca-8446-e210816b16a2ccotehttp://social.msdn.microsoft.com/Profile/en-US/?user=ccoteVSDBCMD.exe options<p>HI, completely aggree with you. I would like to know what are the two required assemblies that we have to use with it, I see four assemblies in my ..VSTSDB\Deploy folder. Also, an example of its usage. Right now, the only help I was able to find was VSDBCMD /?.</p> <p align=left> </p> <p align=left>Where can we find information on VSDBCMD commad line usage ad options?</p> <p align=left> </p> <p align=left>Thank you</p> <p align=left><font face=Arial size=2></font> </p>Thu, 04 Sep 2008 10:57:54 Z2008-09-04T10:57:54Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#9a9eae28-ecc2-4ba6-b4cd-93073a2678e7http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#9a9eae28-ecc2-4ba6-b4cd-93073a2678e7StevenIBSIhttp://social.msdn.microsoft.com/Profile/en-US/?user=StevenIBSIVSDBCMD.exe options<p align=left><font face=Arial size=2></font> </p> <p align=left>Using the GDR CTP16 release....</p> <p> </p> <p align=left>The /DeployToDatabase or /dd switch does NOT seem to work for me. With or without it the generated deployment scripts is always run.</p> <p align=left> </p> <p align=left>Your syntax for properties seems to be a bit off. Using the /p<img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>ropertyName<img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>ropertyValue for example: /p:TargetDatabaseName:MyDatabaseName /p:CreateNewDatabase:False<br>Returns with the error<br><font color="#ff0000"> *** The specified property 'CreateNewDatabase:True' is not valid.  Properties are specified as name=value</font></p> <p align=left>So changing to a /p<img height=19 alt="Stick out tongue" src="http://forums.microsoft.com/MSDN/emoticons/emotion-4.gif" width=19>ropertyName=PropertyValue syntax seems to work better </p> <blockquote dir=ltr style="margin-right:0px"> <p align=left>For example: /p:TargetDatabaseName=MyDatabaseName /p:CreateNewDatabase=False</p></blockquote> <p dir=ltr style="margin-right:0px"><br>Why are the command line switches case sensitive?</p> <blockquote dir=ltr style="margin-right:0px"> <p dir=ltr style="margin-right:0px" align=left>/Action works /action does not</p> <p dir=ltr style="margin-right:0px" align=left>/a works /A does not.</p></blockquote> <p> </p> <p align=left>The /Verbose or /v switch does not seem to increase the verbosity for me, what should we be seeing with that specified?<br></p> <p align=left>Thanks</p>-- StevenWed, 10 Sep 2008 21:41:03 Z2008-09-10T21:41:03Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#8b2982b7-ab65-4183-a0a7-beb2fe7e2567http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#8b2982b7-ab65-4183-a0a7-beb2fe7e2567Jamie Laflen MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jamie%20Laflen%20MSFTVSDBCMD.exe options<p class=MsoNormalCxSpFirst style="margin:0in 0in 0pt"><font face=Verdana>Hi Steven,</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>Someone on my team just pointed out this thread to me, we have been busy with the final development of GDR.</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpLast style="margin:0in 0in 10pt"><font face=Verdana>Some quick answers (more later tonight to this and then other thread):</font></p> <p class=MsoListParagraphCxSpFirst style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span style="">·<span style="font:7pt 'Times New Roman'">         </span></span></span><font face=Verdana>Yes, the version of vsdbcmd was case sensitive, I will change this to be case insensitive</font></p> <p class=MsoListParagraphCxSpMiddle style="margin:0in 0in 0pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span style="">·<span style="font:7pt 'Times New Roman'">         </span></span></span><font face=Verdana>A quick thought about /dd.<span style="">  </span>I am thinking that you might be using this with a deployment manifest file.<span style="">  </span>If this is the case, the deployment manifest file also contains a setting that specifies whether to deploy to the database or not.<span style="">  </span>In the code you have, if /dd:- is specified we will not override what is specified in the deployment manifest file.</font></p> <p class=MsoListParagraphCxSpLast style="margin:0in 0in 10pt 0.5in;text-indent:-0.25in"><span style="font-family:Symbol"><span style="">·<span style="font:7pt 'Times New Roman'">         </span></span></span><font face=Verdana>Yes, verbosity does not do anything, I think we will remove it.</font></p> <p align=left><font face=Arial></font> </p>Thu, 11 Sep 2008 00:08:51 Z2008-09-11T00:08:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#bfe79343-84fb-4508-be47-663d56d01ddahttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#bfe79343-84fb-4508-be47-663d56d01ddaStevenIBSIhttp://social.msdn.microsoft.com/Profile/en-US/?user=StevenIBSIVSDBCMD.exe options<p align=left><br>In CTP16 the /dd or /DeployToDatabase switch seems to be working (or not working) like this.</p> <p align=left><br>If the .deploymanifest contains a node like this &lt;DeployToDatabase&gt;True&lt;/DeployToDatabase&gt; then the script is executed regardless of the command line switch. (it accepts /dd- but has no effect).</p> <p align=left> </p> <p>If the .deploymanifest contains a node like this &lt;DeployToDatabase&gt;False&lt;/DeployToDatabase&gt; then the script is NOT executed unless you specify the command line switch /dd or /DeployToDatabase. So when I have &lt;DeployToDatabase&gt;False&lt;/DeployToDatabase&gt; in the .deploymanifest and don't specify /dd on the command line the script was generated but not executed, if I specify /dd (no + just the /dd) then it does execute the script.</p> <p> </p> <p>Not a fan of the +|- notation maybe using true|false would be better.  i.e. /DeployToDatabase:True or /DeployToDatabase:False and if specified overrides the setting in the .deploymanifest.</p> <p> </p> <p align=left>In the .deploymanifest file there is a node &lt;DeployToScript&gt; which was True for me.  I tried setting it to False and the script was still generated.  What is this for?</p> <p> </p> <p align=left>My .deploymanifest had the property     &lt;DeployScriptFileName&gt;Database2.sql&lt;/DeployScriptFileName&gt; but when I left off the command line switch /DeploymentScriptFile<img height=19 alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif" width=19>atabase2.sql it gave me a script file named Database2.txt not the Database2.sql I was expecting based on my .deploymanifest setting.</p> <p> </p> <p align=left>-- Steven</p>Thu, 11 Sep 2008 14:59:40 Z2008-09-11T14:59:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#f9ee85f4-4ea9-4646-9d6d-75162fa77535http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#f9ee85f4-4ea9-4646-9d6d-75162fa77535Jamie Laflen MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jamie%20Laflen%20MSFTVSDBCMD.exe options<p class=MsoNormalCxSpFirst style="margin:0in 0in 0pt"><font face=Verdana>Hi Steven,</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>Yes, we can use a little better integration with the .deploymanifest file.<span style="">  </span>If the .deploymanifest file is specified I will allow it to specify the option for whether to create the script or not (and the name), but still use the /dd:+/- option for deployment of the database.<span style="">  </span>I would like to keep the /dd option to make it explicit as to whether to execute against the database or not.</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>I changed the Verbose flag (which was true by default) to be named Quiet.<span style="">  </span>So, by default, we will have verbose output, and will be “quiet” if specified.<span style="">  </span>This is certainly clearer.<span style="">  </span>This flag has the most effect on deployment regarding whether each print line is output to the console or not. </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>We are in the process of changing the advanced command options – the documentation posted above was very early and is going to change. <span style=""> </span></font></p> <p align=left><font face=Arial></font> </p>Thu, 11 Sep 2008 16:09:38 Z2008-09-11T16:09:38Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#661efb40-094c-40bb-9a89-b5510d0c2afdhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#661efb40-094c-40bb-9a89-b5510d0c2afdStevenIBSIhttp://social.msdn.microsoft.com/Profile/en-US/?user=StevenIBSIVSDBCMD.exe options<p align=left><font face=Arial></font> </p> <p>Instead of the /v I would prefer a /l</p> <p align=left> </p> <p dir=ltr style="margin-right:0px" align=left>Ability to create a log file during the execution to write logging information into the specified logfile.  </p> <p dir=ltr style="margin-right:0px" align=left>/Log <em>Logfile </em>or /L <em>Logfile</em></p> <p align=left>/Log .\logs\Database1_V2_Upgrade.log</p> <p align=left> </p> <p align=left>So as vsdbcmd.exe is executing it writes to the log file. Include execution start time, end time, property values used from config files or overrides specified on the command line, executing steps as shown in the command window, detailed error messages etc.. Possibly additional flags to control the verbosity of the included output.</p> <p> </p> <p align=left>For example...</p> <p align=left><font face=Courier> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div> <p align=left><font face=Courier>Start Time: 11:44 AM 9/11/2008<br></font></p> <p align=left> </p> <p align=left><font face=Courier>Action: Deploy<br>ManifestFile: Database1.deploymanifest<br>ModelFile: Database1.dbschema<br>DeploymentScriptFile: Database1.sql <br>Target Server: MYSERVERNAME<br>Target Database: Database1<br>Connection String: Server=MYSERVERNAME;Database=Database1;Trusted_Connection=yes;    <em>(x out passwords if sql login).</em><br><em>[any other relevant properties settings etc...]</em></font></p><font face=Courier> <p align=left><br>Comparing database model Database1.dbschema to Database1 on MYSERVER.<br> TSD00258        The project and target databases have different collation settings, deployment errors might result.<br></p> <p align=left> </p> <p align=left>Generating Database1.sql deployment update script.<br> TSD00000        Deployment script generated C:\Deploy\Database1.sql<br></p> <p align=left> </p> <p align=left>Executing Database1.sql deployment update script.<br> TSD00000        Altering dbo.Products...<br> TSD00000        Altering dbo.Users...<br> TSD00000        Altering dbo.Vendors...<br></p> <p align=left> </p> <p align=left>End Time: 11:53 AM 9/11/2008<br></p></font> <p align=left> </p></div></div> <p align=left> </p> <p> </p> <p align=left>It would be good if the file was opened for shared access so another application could read the log file as it is being written to.  This would be useful for a UI application that could shell out to vsdbcmd.exe and also show the ouput of the log file as it is being written.</p> <p align=left> </p> <p align=left>Thanks</p> <p align=left>-- Steven</p></font>Thu, 11 Sep 2008 16:32:51 Z2008-09-11T16:32:51Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#bfc106cb-b5a8-48bc-ba1e-c95d2185e423http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#bfc106cb-b5a8-48bc-ba1e-c95d2185e423StevenIBSIhttp://social.msdn.microsoft.com/Profile/en-US/?user=StevenIBSIVSDBCMD.exe options<p align=left><font face=Arial size=2></font> </p> <p><font face=Verdana><em>&quot;If the .deploymanifest file is specified I will allow it to specify the option for whether to create the script or not (and the name), but still use the /dd:+/- option for deployment of the database.<span>  </span>I would like to keep the /dd option to make it explicit as to whether to execute against the database or not.&quot;</em></font></p> <p align=left><em><font face=Verdana></font></em> </p> <p align=left><font face=Verdana>Are you saying that we can specify not to create the deployment script but still have /dd:+ to deploy the database.  I though you needed to generate the script in order to deploy it?  Also, if you like the +/- notation that is fine but it should be clear how to use it,  is it /dd or /dd+ or /dd:+, the help should show examples of whichever turns out to be correct.</font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>The other command line switches seemed to override their .deploymanifest counterparts correctly, I think it was only the /dd that didn't override the &lt;DeployToDatabase&gt; setting.</font></p> <p> </p> <p align=left><font face=Verdana><em>&quot;I changed the Verbose flag (which was true by default) to be named Quiet.<span> &quot;</span></em></font></p> <p align=left>I didn't see your post on the Quiet option before I posted about the /Log file.  The DBAs seem to like this information to be persisted for future reference so having it written to a log file would be very helpful.  </p> <p align=left> </p> <p align=left>They also like keeping a backup of the script files that are used to update the database.  So maybe another command line switch that would allow copying the script after it has finished into another folder for future reference. So after Database1.sql is finished executing it gets moved into a specified folder.</p> <blockquote dir=ltr style="margin-right:0px"> <p align=left>/ScriptArchieve:.\Scripts</p></blockquote> <p align=left> </p> <p align=left>-- Steven</p>Thu, 11 Sep 2008 16:55:39 Z2008-09-11T16:55:39Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#4f42e8a5-9b07-4b56-ab01-ce5a5d5977f1http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#4f42e8a5-9b07-4b56-ab01-ce5a5d5977f1Reni Mercelinehttp://social.msdn.microsoft.com/Profile/en-US/?user=Reni%20MercelineVSDBCMD.exe options<p align=left><font face=Arial size=2></font> </p> <p class=MsoListParagraph style="margin:0in 0in 0pt 0.25in;text-indent:-0.25in"><span style="color:#1f497d"><span style=""><font face=Calibri size=3>1.</font><span style="font:7pt 'Times New Roman'">     </span></span></span><font face=Calibri size=3>I've had no luck with getting the below VSDBCMD to work with the Properties switch..</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3>VSDBCMD /a<img alt="Big Smile" src="http://forums.microsoft.com/MSDN/emoticons/emotion-2.gif">eploy /cs:&quot;Data Source=RENI;Integrated Security=True;Pooling=False&quot; /dsp<img height=19 alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif" width=19>QL /model:MyFirstDBProject.dbschema </font></p> <p class=MsoNormal style="margin:0in 0in 0pt" align=left><font face=Calibri size=3>/<b>p:TargetDatabaseName=TargetDatabase /p<img height=19 alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif" width=19>qlcmdvars=TargetDatabase.sqlcmdvars</b> /manifest:MyFirstDBProject.deploymanifest /script:MyDBProject.sql</font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><font face=Calibri size=3> </font></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:red"><font size=3><font face=Calibri>*** The specified property TargetDatabaseName could not be used</font></font></span></p> <p class=MsoNormal style="margin:0in 0in 0pt"><span style="color:red"><font size=3><font face=Calibri>*** The specified property sqlcmdvars could not be used</font></font></span></p> <p> </p> <p align=left> </p> <p>2.  Also, In the deployment configuration settings, when the </p> <blockquote dir=ltr style="margin-right:0px"> <p align=left>“Generate DROP statements for objects that are in the target database but that are not in the database project&quot; </p> <p align=left> </p> <p align=left>is checked, the VSDBCMD command shows up the below error message -</p></blockquote> <p> </p> <p align=left><font color="#ff0000">An unexpected failure occured: Drop statement generation is not supported for type ISqlLinkedServerLogin.</font></p>Thu, 25 Sep 2008 20:30:02 Z2008-09-25T20:30:02Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#c718e382-75d6-4cd1-81a0-9066d166f916http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#c718e382-75d6-4cd1-81a0-9066d166f916Jamie Laflen MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=Jamie%20Laflen%20MSFTVSDBCMD.exe options<p class=MsoNormalCxSpFirst style="margin:0in 0in 0pt"><font face=Verdana>Hi Reni,</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>The documentation posted above does not represent the CTP16 vsdbcmd.exe bits.<span style="">  </span>In specific, the /p<img alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif">qlcmdvars option is not valid.<span style="">  </span>I suggest trying /dsp<img alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif">ql rather than /dsp<img alt="Tongue Tied" src="http://forums.microsoft.com/MSDN/emoticons/emotion-7.gif">QL.<span style="">  </span>There is a way to have vsdbcmd output the actual options that are available in the current executable.<span style="">  </span>I am away right now, but for deployment this looks like this:</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt" align=left><font face=Verdana><font face=Courier> <div class=codeseg> <div class=codecontent> <div class=codesniptitle><span style="width:100%">Code Snippet</span></div><font face=Verdana><font face=Courier>Vsdbcmd /? /a:deploy /dsp:sql /cs:&quot;Connection string&quot;</font></font> <p align=left> </p></div></div> <p align=left> </p></font><span style=""></span></font> <p></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>The reason the connection string is specified is because there are options available to specific versions of SQL Server.</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>The linked server problem has been fixed in our current code.</font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana> </font></p> <p class=MsoNormalCxSpMiddle style="margin:0in 0in 0pt"><font face=Verdana>Jamie</font></p> <p align=left><font face=Arial></font> </p>Thu, 25 Sep 2008 22:28:46 Z2008-09-25T22:28:46Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#c02d2b77-1098-4b1c-bfbb-5659bc26f829http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#c02d2b77-1098-4b1c-bfbb-5659bc26f829Antoine Fhttp://social.msdn.microsoft.com/Profile/en-US/?user=Antoine%20FVSDBCMD.exe optionsWhat can be done to pass the sqlcmdvars?<br><br> I have the same issue as Reni but I am with the following version:<br><br>Microsoft Visual Studio Team System 2008 Database Edition GDR Version 9.1.31124.01<br><br>I receive the exact same error as Reni: <span style="color:red"><font size=3><font face=Calibri>*** The specified property sqlcmdvars could not be used</font></font></span>Fri, 12 Dec 2008 18:47:15 Z2008-12-12T18:47:15Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#d199a4e9-df32-4a8c-a327-1e6a7fe2e721http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#d199a4e9-df32-4a8c-a327-1e6a7fe2e721BenjaminAmorhttp://social.msdn.microsoft.com/Profile/en-US/?user=BenjaminAmorVSDBCMD.exe optionsI'm having the same issue - can't pass in sqlcmdvars.<div><br></div><div>I need to pass some custom properties in to the deployment process - any idea when this will be fixed?</div>Tue, 16 Dec 2008 19:39:43 Z2008-12-16T19:39:43Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#37895d1b-dcd5-4382-a421-61d3a1369e46http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#37895d1b-dcd5-4382-a421-61d3a1369e46BenjaminAmorhttp://social.msdn.microsoft.com/Profile/en-US/?user=BenjaminAmorVSDBCMD.exe optionsAs a workaround, knock up a utility which xpaths the value you want to specify in sqlcmdvars into the .deploymanifest file for your project. The .deploymanifest is just an xml file - open it up and take a look, the element you need to add the value to is pretty obvious.Wed, 17 Dec 2008 01:03:19 Z2008-12-17T01:03:19Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#0fc504ee-92ab-4ca8-85ff-cb15a8b87c98http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#0fc504ee-92ab-4ca8-85ff-cb15a8b87c98Vanofhttp://social.msdn.microsoft.com/Profile/en-US/?user=VanofVSDBCMD.exe options@<span class=postedBy><a title=BenjaminAmor href="http://social.msdn.microsoft.com/en-US/profile/?user=BenjaminAmor&amp;referrer=http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9/"><font color="#0072bc">BenjaminAmor</font></a><br></span><br> How would you do this?Wed, 07 Jan 2009 12:08:22 Z2009-01-07T12:08:22Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#ef61c0fd-1662-4407-b134-31987ca8a76ahttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/e188dd40-dfe0-45a0-b75b-fcf7d187c2b9#ef61c0fd-1662-4407-b134-31987ca8a76aAntoine Fhttp://social.msdn.microsoft.com/Profile/en-US/?user=Antoine%20FVSDBCMD.exe options The documentation is outdated.  To pass the sqlcmdvars use <font face="Courier New" size=2>/p:SqlCommandVariablesFile=&lt;yourfile&gt;.<br><br>See the following posts for more details on the /p parameters: <a href="http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/a966ac3c-c039-4c3f-9b6d-2882d9874282">http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/a966ac3c-c039-4c3f-9b6d-2882d9874282</a></font>Wed, 07 Jan 2009 14:27:30 Z2009-01-07T14:27:30Z