I have create the CMD and the rest , but the problem comes with variable for a script.
1) How will I declare the variable in my SQL SCRIPT ?
****************MyTest Script *****************
Declare @URL nvarchar(50)
set @URL = $(myurl)
insert into LINKS values ( @URL )
** This is just simple example **
** This will work using sqlcmd but not DBUP. **
2) How will I pass the value and name of variable from program.cs
***********************************
var upgrader = DeployChanges.To
. SqlDatabase (DatabaseCon)
.WithScriptsEmbeddedInAssemble(Assemble.GetExecutingAssembly)
.build();
** I have tried this but it fails , with SQL Error in the cmd. **
Again , It is for Setting up Base DB. But can be customize as require ...
End Goal is to Pass, Octopus Variables to your sql scripts , that is contained in your Nuget Package.