Azure SQL Data Warehouse - how to drop a database? - azure-sqldw

How to drop an Azure SQL Data Warehouse database? drop database T-SQL command does not apply to ASDW.

This is a doc bug. You can connect to the master database and run:
DROP DATABASE <database name>
I've already updated the docs to reflect this.

Azure SQL Data Warehouse does not support DROP DATABASE as per the current documentation:
Delete your database via the Azure portal.

Related

Can we create pipelines to run DAX queries on Azure Analysis Service Tabular Models from ADF or Synapse Analytics?

How can we create ADF pipeline to run DAX query from ADF(or Synapse Analytics) to AAS Tabular Models and get the data stored into tables in Azure Data Warehouse Tables or in a .csv file?
I've read about creating a .Net library for connecting to Analysis Services servers and querying data from .NET code. Is there any other approach?
You can create a linked server mapping to aas on the sql server.
Create a linked service in adf to the sql database and query the aas via the sql database.
https://datasharkx.wordpress.com/2021/03/16/copy-data-from-ssas-aas-through-azure-data-factory

AWS DMS - Migrate - only schema

We have noticed that if a table is empty in SQL Server, the empty table does not come via DMS. Only after inserting a record it starts to show up.
Just checking, is there a way to get the schema only from DMS?
Thanks
You can use Schema conversion tool for moving DB objects and Schema. Its a free tool by AWS and can be installed on On-Prem server or on EC2. It gives a good report before you can actually migrate the DB schema and other DB objects. It shows how many Tables, SP's Funcs etc can be directly migrated and shows possible solutions too.

Toad Data Point to export sql statement from Oracle to Sql Server?

How can I export data from an Oracle database to a sql server database using Toad Data Point 3.8?
We have a remote Oracle database, and I need to export data from that DB to a sql server database. It's the same thing as the sql server Import/Export utility, but using Toad Data Point. I have read-only access to the remote Oracle DB, but I have owner access to the local sql server DB.
What I've tried:
I was looking at this Toad link but I don't have a Schema Browser; I only have and "Object Explorer". I right-click on the table, but I don't see the option "Copy Data to Another Schema".
I then tried right-clicking table and "Export Wizard", but I don't see an option to export to another database. All the options are to hard file (sql script, CSV, tab-delimited, etc). I would choose "Sql Script" but there's so much data that the script would just be enormous.
Finally, I tried "Data Export Wizard" and I don't see an option to export to a sql server database. So I'm stuck.
I ended up using the Import Wizard, from the Oracle DB to the SQL Server DB. Very simple.

How to read data from a POSTGRESQL database using DAS?

We are working on the ETL. How to read data from the POSTGRESQL data base using streams in DATA ANALYTICS SERVER and manipulate some operations using the streams and insert the manipulated data into another POSTGRESQL data base on a scheduled time. Please share the procedures to follow.
Actually, you don't need to publish data from your PostgreSQL server. Using WSO2 Data Analytics Server (DAS) you can pull data from your database and do the analysis. Finally, you can push results back to the PostgreSQL server. In DAS, we have a special connector called "CarbonJDBC" and using that connector you can easily do this.
The current version of the "CarbonJDBC" connector supports following database management systems.
MySQL
H2
MS SQL
DB2
PostgreSQL
Oracle
You can use following query to pull data from your PostgreSQL database and populate a spark table. Once spark table is populated with data, you can start you data analysis tasks.
create temporary table <temp_table> using CarbonJDBC options (dataSource "<datasource name>", tableName "<table name>");
select * from <temp_table>;
insert into / overwrite table <temp_table> <some select statement>;
For more information regarding "CarbonJDBC" connector please refer following blog post [1].
[1]. https://pythagoreanscript.wordpress.com/2015/08/11/using-the-carbon-spark-jdbc-connector-for-wso2-das-part-1/

Sitecore Analytics reports - Is this only for Analytics database, can I use master database to generate reports?

I was trying to create a report from master database in analytics reports. (Stimulsoft Report Designer)
As it explains in the reports cookbook, I have created a "mrt file" (Report UI) and a report definition item in Engagement analytics.
I have configured the datasource item as query item
(/sitecore/system/Settings/Analytics/Reports SQL Queries/Visit Pages).
It worked.
But then I tried with a query using the master database, in the SQL query item I specifically mentioned the database as 'testProjectMaster' to point to master database. It did not work!
Then I figured out that in "/sitecore/system/Settings/Analytics/Reports SQL Queries/Visit Pages" item and other query items, it does not specify the database, that means by default sitecore queries the analytics database.
Is this a limitaion in sitecore, cant we query the master databse for reports? Are there any good resources to follow on creating reports?
I suggest taking the SQL from the Visit Pages report and running it in SQL Server Management Studio. There, you will be able to quickly see what's preventing your query from running. If I had to venture a guess, I would suspect that your SQL user account does not have db_datareader access to the master database.
The default SQL queries provided by Sitecore assume that the DMS is configured as the default database in the connection string. This, however, does not prevent you from querying other databases or doing cross-database joins like so:
SELECT TOP 100 * FROM Pages
INNER JOIN Sitecore_Master.dbo.Items AS MasterItems ON Pages.ItemId = MasterItems.ID
A word of caution.. from my experience, this can really slow down your reports as it does not take advantage of indexing and creating indexed views doesn't work across multiple databases.