Msg 3728 and 3727Hi, I have this error when executing the command<br/> <br/> D:\ROP\EPM.Aguas.ROP\EPM.Aguas.ROP.DatabaseComparison\Database3\sql\debug&gt;sqlcmd<br/>   -S localhost -d EPM_ROP_JUNIO_25_CONCAMBIOSDESDEDESARROLLO -i Database3.sql<br/> <br/> <br/> Changed database context to 'master'.<br/> Changed database context to 'EPM_ROP_JUNIO_25_CONCAMBIOSDESDEDESARROLLO'.<br/> Dropping ROP.FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados...<br/> Msg 3728, Level 16, State 1, Server C-LVALENCIA1, Line 1<br/> 'FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados' is not a constraint.<br/> Msg 3727, Level 16, State 1, Server C-LVALENCIA1, Line 1<br/> Could not drop constraint. See previous errors.<br/> <br/> <br/> The error is on these lines of the script<br/> <br/> PRINT N'Dropping ROP.FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados...';<br/> <br/> <br/> GO<br/> ALTER TABLE [ROP].[CaudalesLodoPrimario] DROP CONSTRAINT [FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados];<br/> <br/> <br/><hr class="sig">MCPD ENTERPRISE APPLICATIONS DEVELOPER http://wantmvp.blogspot.com/© 2009 Microsoft Corporation. All rights reserved.Wed, 22 Jul 2009 18:13:25 Zd7528095-7bff-404d-aa9b-383cc34af680http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#d7528095-7bff-404d-aa9b-383cc34af680http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#d7528095-7bff-404d-aa9b-383cc34af680Luis Esteban Valencia Muñozhttp://social.msdn.microsoft.com/Profile/en-US/?user=Luis%20Esteban%20Valencia%20Mu%u00f1ozMsg 3728 and 3727Hi, I have this error when executing the command<br/> <br/> D:\ROP\EPM.Aguas.ROP\EPM.Aguas.ROP.DatabaseComparison\Database3\sql\debug&gt;sqlcmd<br/>   -S localhost -d EPM_ROP_JUNIO_25_CONCAMBIOSDESDEDESARROLLO -i Database3.sql<br/> <br/> <br/> Changed database context to 'master'.<br/> Changed database context to 'EPM_ROP_JUNIO_25_CONCAMBIOSDESDEDESARROLLO'.<br/> Dropping ROP.FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados...<br/> Msg 3728, Level 16, State 1, Server C-LVALENCIA1, Line 1<br/> 'FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados' is not a constraint.<br/> Msg 3727, Level 16, State 1, Server C-LVALENCIA1, Line 1<br/> Could not drop constraint. See previous errors.<br/> <br/> <br/> The error is on these lines of the script<br/> <br/> PRINT N'Dropping ROP.FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados...';<br/> <br/> <br/> GO<br/> ALTER TABLE [ROP].[CaudalesLodoPrimario] DROP CONSTRAINT [FK_CaudalesLodoPrimario_CaudalesLodoPrimarioEncabezados];<br/> <br/> <br/><hr class="sig">MCPD ENTERPRISE APPLICATIONS DEVELOPER http://wantmvp.blogspot.com/Tue, 30 Jun 2009 15:50:40 Z2009-06-30T15:50:40Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#11b6932b-71c0-4143-b9a7-fa29366fd0f2http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#11b6932b-71c0-4143-b9a7-fa29366fd0f2JoyceWang_MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=JoyceWang_MSFTMsg 3728 and 3727These error messages are coming from SQL server. Looks like you were executing the deployment scripts by using sqlcmd against your local Sql instance. <br/><br/>If you want to deploy your database project to a target server, you can try using Deploy menu in the project (with deployment settings in the properties page). Or you can go thru the command line tool VSDBCMD. <br/><br/>--JoyceTue, 30 Jun 2009 16:00:13 Z2009-06-30T16:00:13Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#6eb70c21-5adf-4140-a353-820873a2f6a6http://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#6eb70c21-5adf-4140-a353-820873a2f6a6Luis Esteban Valencia Muñozhttp://social.msdn.microsoft.com/Profile/en-US/?user=Luis%20Esteban%20Valencia%20Mu%u00f1ozMsg 3728 and 3727where can I find that command tool?<br/><hr class="sig">MCPD ENTERPRISE APPLICATIONS DEVELOPER http://wantmvp.blogspot.com/Tue, 30 Jun 2009 16:42:59 Z2009-06-30T16:42:59Zhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#c73ce6c3-b1eb-4a5b-b689-15ed7b53c50fhttp://social.msdn.microsoft.com/Forums/en-US/vstsdb/thread/d7528095-7bff-404d-aa9b-383cc34af680#c73ce6c3-b1eb-4a5b-b689-15ed7b53c50fJoyceWang_MSFThttp://social.msdn.microsoft.com/Profile/en-US/?user=JoyceWang_MSFTMsg 3728 and 3727If you are using GDR or GDR R2, you should be able to find it at &lt;VS installation path&gt;\VSTSDB\Deploy\Tue, 30 Jun 2009 17:04:58 Z2009-06-30T17:04:58Z