How do i sql export table structure and data to firebase? - sql-server

I am working on Xamarin Mobile App. I had SQL as my server database. However hosting SQL on Amazon or Microsoft is costing a lot. So I need to move to Firebase. I am very new to firebase.
How do I SQL export table structure and data to firebase?

Firebase is a NoSQL database. You cannot simply export the data from SQL and import it into Firebase.
I recommend that you read about NoSQL data modeling, watch out Firebase for SQL developers video series and then read the Firebase Database documentation.

Related

How can I replicate an existing data warehouse on Azure?

I am new to Azure and have no prior experience or knowledge regarding working with Azure data warehouse systems (now Azure Synapse Analytics Framework)
I have access to a "read only" data warehouse (not in Azure) that looks like this:
I want to replicate this data warehouse as it is on Azure cloud. Can anyone point me to the right direction (video tutorials or documentation) and the number of steps involved in this process? There are around 40 databases in this warehouse. And what if I wanted to replicated only specific ones?
We can't do that you only have the read only permisson. No matter which data warehouse, we all need the server admin or database owner permission to do the database replicate.
You can easily get this from the all documents relate to the database backup/migrate/replicate, for example: https://learn.microsoft.com/en-us/sql/t-sql/statements/backup-transact-sql?view=sql-server-ver15#permissions,
If you have enough permission then you can to that. But for Azure SQL datawarehouse, now we called SQL pool (formerly SQL DW), we can't replicate other from on-premise datawarehouse to Azure directly.
The official document provide a way import the data into to Azure SQL pool((formerly SQL DW)):
Once your dedicated SQL pool is created, you can import big data with
simple PolyBase T-SQL queries, and then use the power of the
distributed query engine to run high-performance analytics.
You also could use other ETL tool to achieve the data migration from on-premise datawarehouse to Azure. For example using Data Factory, combine these two tutorials:
Copy data to and from SQL Server by using Azure Data Factory
Copy and transform data in Azure Synapse Analytics by using Azure
Data Factory

How to query "Daily Active Users" (Microsoft Dataverse Analytics) via SQL?

What's the backend database query of this Microsoft Dataverse Analytics dashboard?
I'm trying to workaround Dataverse analytics by accessing the transactional database behind that dashboard, I'm interested in getting Daily Active Users (DAU) shown above but via a SQL query and reading directly from the backend database.
It appears that the DB is this https://learn.microsoft.com/en-us/dynamics365/customer-engagement/web-api/entitytypes?view=dynamics-ce-odata-9 but I have not been able to comprehend the data model and I'm unable to find the tables to get DAU. Any thoughts?
Thanks
Basically you have to do everything what is MS doing in behind the scenes. CRM online is SaaS model and we don’t have access to Azure SQL server directly. But what you can do is, one of these options:
Use “Data export service” to replicate the data to your own Azure SQL server, then build Power BI on your own from the data
You can use REST Web API to pull the data and visualize (May not be so much flexible)
Based on your need and urgency, you may wait or use preview version of TDS endpoint, for read-only direct SQL access. Read more

Export data from sharepoint database

In my sharepoint site, users save some data. Now I want to export the data. I know Export to Excel is available under List tab, but I want to do this in another way and I decided to access sharepoint database directly.
In SQL Server Management, I opened my site's database and there are many tables. In which table user data stored? There is no table named with my site's name.
I opened some tables but couldn't find the data.
There are couple of ways, but using SQL directly in case of SharePoint is bad.
You can use:
Export to Excel
SQL Server Integration with SharePoint List Adapter
SharePoint .NET Server, CSOM, JSOM, and REST APIs
Sharepoint Search
Direct SQL queries on SharePoint databases Part I, Part II

Determining how Dynamics CRM-2011 custom entity is stored in SQL Server CCRM database

A custom entity for storing email templates is created in my Dynamics CRM - 2011 on-premise instance. I can see the entity in CRM instance but not able to find it in SQL Server CCRM database. Any help on how to query the entity schema in DB?
I have to move all the templates stored to a new on-premise CRM instance. Is there a better way to achieve this?
Thanks.
You should be able to find two tables:
[YourOrganization_MSCRM].[dbo].[EntitySchemaNameBase]
[YourOrganization_MSCRM].[dbo].[EntitySchemaNameExtensionBase]
Copying data directly into the CRM SQL database is unsupported. In general, the only supported direct use of CRM's SQL database is to read from the Filtered Views and create custom indexes.
It would be best to copy the templates to the new instance in a supported way. Supported ways to import data into CRM include writing custom code against the SOAP or REST Organization Services, using an ETL tool that provides a Dynamics CRM Connector (such as Scribe or KingswaySoft on SSIS), and the Bulk Import Wizard.
Depending on how much data you're moving, the easiest way to go is probably to export to Excel and import into the new system via the Bulk Import Wizard.
Otherwise, the CRM 2011 SDK provides the DLL's and examples for writing C# to hit the SOAP service, as well as an example JavaScript library for using the REST endpoint (sdk.rest.js).

Firebase for a Web Application

I am currently working on a new Web Application. I really love the idea behind firebase (augularfire) for the realtime data sync. But I can't figure out how to organize all the data, make each customer (enterprise) have his own data, and ensure no data is shared between each enterprise.
In a regular MySql server, I can create a database per enterprise (best implementation for speed and security) or simply add a table Enterprise and a table Customer with enterprise_id. Which is the best approach in a Firebase DB?

Resources