Connect to SQL Azure containing backend for MS Access Web App

Vikas picture Vikas · Apr 27, 2013 · Viewed 9.9k times · Source

Ok not sure what to enter in the subject line so apologies if it stands unclear.

I created a simple web app using MS Access 2013. It simply had one table with sample data in it. The I launched it to my share point. Before we go ahead, I would like to tell you that I am using Office 365 enterprise version where we need to admin everything like Lync/SharePoint/Exchange etc.

So as per Microsoft blogs and articles and discussions all over, and even the following screenshot suggests that the data stored in the Office 365 is stored in a SQL Azure database for office 2013 web app.

What next

So as the next step, the instructions over web says that if we choose "From Any Location" and enable "Read Write Connection", it should allow you to access the data from any window like SQL Server Management Window.

The Data Connectivity options

Ok, my credential looks like this:

Credentials: Oscillate Infotech Pvt Ltd DB

Now, when I go to SQL Server Management Studio and use the above credential, and try to login, I get the following error:

Oscillate Infotech Pvt Ltd: Error

I am assuming that there is some setting in our admin page I need to change which can allow me to connect. Any help? I think it seems pretty straight forward to connect it but it is not connecting.

Any help?

Do we have to fix anything like BCS? Please help.

Edit: I have already got two downvotes so please note that I have tried reading more than 50 different web pages discussing this and none of it said it can be problem at all. Whatever solution they could offer, I have tried it. Why downvote without commenting? For fun eh?

Thanks, Vikas B

Answer

Vikas picture Vikas · May 16, 2013

I am adding this answer in detail because it was really something very easy, yet very difficult to find. So it may help others as well.

While working with Access Web Apps, the data is stored in SQL Azure server, since there is no SQL Azure subscription along with Office 365 Subscription.

The outcome is, that by default, you have set the Connect to Database to "". In such a case, you will need to provide the database name explicitly because you don't have the access to point your request to default database.

Please see the following screenshot,

Enter Database Name

You will need to enter the database name here, if you don't then the firewall rule will come into picture and your request will be rejected.

Simple, yet strong.

Thanks guys to help me resolve this.

EDIT: If you are still unable to connect, please make sure that you have the latest ODBC driver for connecting to SQL Server 2012. You can download from the Microsoft here:

Microsoft Link for downloading ODBC Driver

Thanks, Vikas