Migrate SQL Server CE to Azure -
i have finished first complete orchard cms website, developed locally in sql server ce. want publish azure, having difficulty webmatrix migrate function.
i have sql server instance in azure blank orchard database there (i want use replace option late in migration nuke existing db). have added ip server firewall rule.
in webmatrix 3 can connect azure database using:
- server: myserver.database.windows.net
- database: orchard-db
- username: admin@myserver
- password: mypassword
i can view tables in webmatrix.
when select ce sdf file (orchard.sdf) , click migrate button , enter exact same details following (can provide full stack trace if needed):
we unable connect using connection details provided.
microsoft.sqlserver.management.common.connectionfailureexception: failed connect server . ---> system.data.sqlclient.sqlexception: network-related or instance-specific error occurred while establishing connection sql server. server not found or not accessible. verify instance name correct , sql server configured allow remote connections. (provider: named pipes provider, error: 40 - not open connection sql server) ---> system.componentmodel.win32exception: network path not found
i'm not sure issue is. have tried various configurations of details nothing seems work. if connect database user (i.e. not server admin) different error:
the server principal "orchard_user" not able access database "master" under current security context.
i went , had eat, , can next step of migration. when select replace database following error:
system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> microsoft.sqlserver.management.common.connectionfailureexception: failed connect server . ---> system.data.sqlclient.sqlexception: login failed user 'admin'.
edit: have come conclusion webmatrix not going migrate sql server ce database azure sql server database. installed sql server express , migrated that, when home work use sql server migration assistant move azure.
i ended installing sql server express, using webmatrix migrate sql server ce database that. ran deploy database microsoft azure database wizard in ssms push database azure.
i can't certain, seems webmatrix can't migrate ce azure. according azure doco:
it recommended use latest version of management studio remain synchronized updates microsoft azure , sql database. update sql server management studio.
i guess webmatrix behind or something. helps in situation.
Comments
Post a Comment