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
Related
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
I want an alternative for Master data services(MDS) which is not cloud based. Main agenda is to retrieve the data from Microsoft SQL server in excel format, make the changes in excel and upload it back to SQL server. Need a application with fronted which does that.
Kindly recommend. Thanks!
Currently I have a web app that imports Excel files, parses them (using openXML) then imports the data into SQL Server. The user does not need to predefine the Excel template as long as he sends the file in the same order of the database table he wants to insert it, if a value is not compatible with a column type, the system generates a log error file which basically says: "Excel Address -> A1, Value -> XXXXX (string), Expected -> (Date yyyy/mm/dd).
On parsing the file I check if the formats are compatible with the db table
I want to migrate this service to the cloud, specifically azure since I use Visual Studio to develop and the integrations facilitate the job. However I'm a little lost on the multiple services and if its possible to even do this kind of work.
I would like to store the files in Azure Blob storage then send to Data Lake(?) to import the data to a SQL Server database, is this possible? Are these the services I should use?
The simplest (and probably cheapest) solution I can think of given these constraints would be to upload to an Azure Function. Your Azure Function can then perform the parsing and insert records into the SQL database. It can also return an HTTP error code and message if the parsing cannot complete due to data errors.
The downside of Azure Functions is runtime constraints. If you are pushing so much data that you run into those constraints, you could spin up an Azure WebApp to do the same thing.
Can't you just create your tables in Azure SQL and then change your current web application to connect to Azure SQL instead of your on-premise SQL Server?
Azure SQL is basically a SQL Server in the cloud with a few differences (nowadays the on-premise versions also contains most of the Azure features).
If you are lucky you would just need to change your connection string:)
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).
I've seen many solutions to sync SQL Server data TO SharePoint, but nothing to sync SharePoint lists to SQL Server.
Does anyone know of a solution? Commercial is fine.
Alternatively, I'll need to write a web part that creates relationships between multiple SharePoint lists. Unfortunately, Some are InfoPath libraries with no lookup fields so I can't use the SPQuery CAML joins.
I've found the Camelot .NET Connector but the syntax doesn't seem to support joins, and the SLAM! SharePoint List Association Manager which may work for me but would rather just sync the data to SQL Server and create my reports from there.
EDIT:
SLAM! SharePoint List Association Manager does what I was looking for in real time.
You can write your own SSIS ETL process to extract the list data from SharePoint and load it into SQL server tables. There is a free SharePoint list adapter on codeplex to assist with this. Take a look at SharePoint List Source and Destination