Connecting Azure Mobile Service database to Excel - excel

I have a Windows Store app that uses Azure Mobile Services backend. I want to be able to do some analysis on the data in my database tables for which I need to import that data into Excel. How do I do that?

You have a couple of options. First, the data in the Azure Mobile Services is stored in a "regular" SQL Azure database. So you can connect to it using a tool such as SQL Server Management Studio, and export the data.
Another option would be to save the data locally using the Command-Line Interface (CLI). This document on MSDN talks about using the CLI for administration of mobile services. The CLI also has options to read data from tables, so you can use that as well - but the result will not be on an Excel-compatible format. it supports both a text-based format and JSON; you'll likely want the JSON option which is easier to parse and create some Excel-friendly format such as CSV.

You can find a walk through of using Excel to access your Mobile Services data here: http://thejoyofcode.com/Using_excel_to_access_your_Mobile_Services_data.aspx

Related

How can I query data in an Azure Analysis Service from a ASP.NET Core application?

I have an cloud application that dumps all its data into an Azure Data Lake.
Using Azure Data Factory, I have built a pipeline that extracts and transforms the data from the lake and saves it in local .csv files.
These .csv files are accessible in an Azure SQL Data Warehouse as external files that are CTAS as proper SQL tables.
I have created an Azure Analysis Service instance that is hooked up to the warehouse, provides additionnal information out of the existing data and caches it.
Question
I want to make this data available from a Web API. I have created a ASP.NET Core application and I would like this application to connect the service to query the data.
Knowing that the client libraries (ADOMD) are all .NET Framework libraries that can't loaded in a .NET Core app, how should I do this?
There is now an official version of ADOMD.NET for .NET Core available. See another answer here for details.
There are no official .NET Core-compatible ADOMD.NET yet:
https://github.com/dotnet/corefx/issues/20809
https://feedback.azure.com/forums/908035-sql-server/suggestions/35508349-adomd-core
You can try this unofficial port of "Microsoft.AnalysisServices.AdomdClient".
If your hosting environment is windows, you can create simple .NET Framework-based microservice that handles requests to SSAS from your main ASP.NET Core app
I tried the "Unofficial.Microsoft.AnalysisServices.AdomdClient" for getting data out of the cube via REST Api. It worked really well and the response time is great. I am just not confident that more advanced stuf (partition management. . .) will work with this package, since it does not seem to be developed regularly.

Is it possible to use Azure Analysis Services as the backend to a web app hosted on an Azure App Service

Instead of AzureSQL --to- App Service website
AzureSql --to-> Azure Analysis Service --to--> App Service Website
The only insructions we see online is how to connect AAS to Powerbi, Excel Etc. Is it possible to use it as a backend to a website?
You can't seamlessly connect to analysis services from azure sql. Linked server feature is not available on azure sql, instead we get https://learn.microsoft.com/en-us/azure/sql-database/sql-database-elastic-query-overview which doesn't really help you in this scenario.
Atm your only option is to connect to AAS, get records you want, insert it to database and do normal query.
In MS SQL server you can define analysis services as linked server and query it directly from from tsql with https://learn.microsoft.com/en-us/sql/t-sql/functions/openquery-transact-sql but even in this case it might be a good idea to copy result of open query to sql table first and then use that table in joins. MS SQL doesn't really know how many records will be returned by open query so in many scenarios it will produce sub optimal plans for queries that use open query results.

How to get data from Azure Table Storage to SharePoint Online

I need to get data from Azure table storage and populate in SharePoint O365 site as a list. I found a way to achieve if it's from SQL Azure but couldn't able to find for Azure Tables. Kindly share your inputs.
Azure Table and SharePoint both have APIs, so in the base case you can import from one and export to others using their APIs. However, it seems you are looking for a tool, not to write code.
To export from Azure Tables you can use the AzCopy Tool (http://aka.ms/azcopy) to export the contents into a Json-formatted local file. Then, you can use whatever tool you use to import into SharePoint, as long as it understands Json files.

Azure Mobile Services, DB options

I am trying to get to grips with Azure Mobile Services and am a little lost about which Azure services I should be using for what. When you set up a new Azure Mobile Service you only get the option to create it with Microsoft SQL Server as the database. Can you configure it to use the documentDB service instead?
Also a lot of what I read about Azure Mobile Services seem to be setup around storing data for a particular user. Is this the correct place to store data and query it for all the systems users rather than an individual or should that be handled elsewhere?
thanks
Andy
using the .NET backend, you have a choice of using Azure SQL Database,MongoDB or Table Storage. There's no out of the box support yet for DocumentDB, but you can make it work as shown here
what you store in the storage listed above is up to you, there is no specific reason/restriction/limitation that's its only for user specific data. the samples just happen to show that.
You may use any backend database service. It's true you have to set up SQL when you create a new mobile service space. And the SDK has a Table provider that maps to SQL (or MongoDB). However, you can ignore all that if you want. As long as you can access the appropriate driver for your database-of-choice, you can make calls to the database from the API backend methods. This is especially true when building custom API methods.

Connect Azure Data Marketplace to SQL Server 2008 R2

Is there a way to connect SQL Server 2008 R2 to the Azure Data Marketplace to enable data import?
Are there any ODBC or JDBC drivers for the Azure Data Marketplace?
I'm a bit confused by the question. Is this about publishing data through the Windows Azure Marketplace and sourcing it from SQL Server? Or is it about accessing published data from an application and bringing that data into your own app?
If the former:
You may choose to host your data in SQL Server. When you sign up for data hosting in the Windows Azure Marketplace, you'll provide the requisite connection strings for your servers. You don't have to worry about ODBC/JDBC drivers. See the data publishing documentation for more details.
If the latter: Data may be accessed via HTTP/OData, not ODBC/JDBC. It's a metered consumption model, so you need to subscribe to a particular data feed, which then gives you an access token. Check out this video from TechEd last year to see more about this, along with a .NET code sample. You can easily access data from any other language as well.
If your goal is to access the data feed directly from SQL Server: I'm no expert in CLR Stored Procedures, but if CLR SP's supported code that can access a web service endpoint, I guess you could write a CLR SP to access a data feed, pull data down, and populate local tables. I have no idea if this is supported or advisable...

Resources