Our web,config uses the same connection name for dev and production, with the only difference being the connection string itself.
I want to create Update-Database commands for dev and production that use a specified connection provided in the command.
I ran PM> get-help Update-Database -detailed but did not see any relevant examples for what I am trying to do.
My question: What params need to be in the ConnectionString? Obviously I need initial catalog, data source, user id and password. Not sure about the others, though. Do I even need the connection name?
update-database
-ConnectionStringName MyConn
-ConnectionString data source=10.10.10.20;
initial catalog=MyDatabase;
persist security info=False;
user id=my_db_user;
password=1234;
max pool size=200;
MultipleActiveResultSets=True"
providerName="System.Data.SqlClient