Pregunta

Estoy desplegando una aplicación autohosted para SharePoint 2013 (en línea).

En el proyecto web de mi aplicación autohosted, hay una base de datos que, por lo tanto, se implementa en la web remota (en Windows Azure) cuando se implementa mi aplicación automática.

¿Pero me gustaría saber si es posible acceder a esta base de datos desde otro lugar que dentro de la red remota de mi aplicación autohosted?

Actualmente no he podido encontrar ninguna cadena de conexión o algo más que podría permitirme acceder a la base de datos de la web remota implementada, ¿alguien tiene una idea o una solución sobre esto?

¡Muchas gracias por su ayuda!

¿Fue útil?

Solución

It is actually possible. If you follow this post http://msdn.microsoft.com/en-us/library/office/apps/fp179902.aspx to include the database in your app, you have to create a SqlAzureConnectionString app setting.

When you publish this app and use it, the connectionstring is replaced with the connectionstring for the sql azure database. If you write this setting to a page, you are able to see the actual connectionstring. It will look something like this:

"Data Source=b2p09toyr4.database.windows.net;Initial Catalog=db_a6d1dee5_4ee6_47f3_ba44_9858f706f141;User ID=db_a6d1dee2_4ee6_47f3_ba45_9858f706f141_dbo;Password=21F4balh/453.Pq"

You are then able to create a connection with SQL Management Studio. (Don't forget to expand the options and connect to your database because you can't connect with the master database)

Licenciado bajo: CC-BY-SA con atribución
scroll top