c# - Change DB from local to azure not working -
i have created mvc 5 project in visual studio 2013 work against local db , working expected,now want replace localdb(v11) new db have created in azure (same data structure) ,how should ? guess need replace connection string server , db name since connection string long dont know should remove , add,please assist .
in azure can @ front-screen database , click 'view sql database connection strings.' bring pop-up shows ado.net connection string.
once you've got azure string can insert config file so:
<add name="connectionstring" connectionstring="<azure connection string>" providername="system.data.sqlclient" />
you can configure azure db server allow connections local machine. enable connect database while running locally.
Comments
Post a Comment