Why can't I see tables in SSMS - azure

I recently created a Microsoft Azure SQL Data Warehouse and used the AdventureWorks sample database. When try to access the database in SSMS, I can not see any of the database Tables, yet I am able to query them.
Researching on the internet, led me to believe this might be a permission issue, so I right clicked the database, selected Properties | Permission to review the View permission. However, when I this, I get the following error message:
I've also upgraded to the latest edition of SSMS, I also dropped and reloaded all the tables making sure I used dbo as the Schema.
As anyone come across this problem and do you have a workaround or fix.

In scripting options, make sure that the engine edition is set as “Microsoft Azure SQL Data Warehouse Edition” and engine type is “Microsoft Azure SQL Database”.
Tools -> Options -> SQL Server OE -> Under General scripting options
Please let us know if this issue persists. We have a fix in the upcoming release for SSMS which will automatically detect the database source to populate these settings.
Thanks!

Related

Connect Power BI with Exact Online more efficiently than through HTML

I am using Microsoft Power BI with Exact Online using Data Access Point on https://data-access-point.com using queries such as select * from exactonlinexml..aroutstandingitems. However, the URL must contain the user name and password to allow Data Access Point to connect to Exact Online on my behalf.
This is not desired behaviour; I would like it to be more easy to change the password and also I would like that the pbix file to not contain the user name and especially password.
I've tried generating the pbix file contents by hand, but the format seems to change as Microsoft Power BI further matures and this causes major versioning issues.
How can I avoid embedding the user name and password for Exact Online the Data Access Point URL for Power BI?
When the distribution of the pbix files with embedded Exact Online user logon code and password is out of your control or does not meet your security standards, then you can use the ADO.Net provider for Exact Online. However (I work there) it is not a free product as currently Data Access Point. But it works fine and is compatible on SQL level (both support SQL v2 grammar).
Steps to install (might improve in the future):
Register the ADO.NET provider in machine.config.
In Power BI:
Get Data -> Other -> Blank Query or Edit Queries -> New Source -> Blank Query.
Advanced Editor and use the following as source.
let
Source = AdoDotNet.Query
( "Invantive"
, "provider=ExactOnlineAll;apiUrl=https://start.exactonline.nl;"
, "select * from PayablesListOverdue"
)
in
Source
When you need another source as ExactOnline, replace ExactOnlineAll by the corresponding provider such as Teradata or CbsNl. There is yet no support for distributed queries.
When you need another country than NL, use the corresponding URL, such as https://start.exactonline.co.uk. It does not work for France and Spain.
And then update the SQL query (put it all on one line or copy/paste from an editor which allows you to enter multi-line statements.
Click 'Done'.
Grant permission when asked (Power BI can be persistent about that, be persistent too).
When Power BI asks for your credentials, select 'Database' and enter your full Exact Online credentials.
Remember to specify a useful name.
Close and apply.
Enjoy.
You can also install the Custom Connectors for Power BI from ado.net-provider.cloud. First enable preview feature on July 2017 or later release.
Note! The custom connector program of Microsoft is not yet fully available as of 2020 for certifications by 3rd party. As an alternative connect to Exact Online using the OData connector Power BI and Power Query ship with and register a virtual database on Invantive Cloud.
And then choose a connection such as Exact Online:
And then choose a table.

Can't View Code or Script out Stored Procedures or Tables In Azure SQL Data Warehouse

Is there functionality in Azure SQL Data Warehouse similar to SQL Server's right-click -> Modify in SSMS for stored procedures?
Is there functionality in Azure SQL Data Warehouse similar to SQL Server Management Studio's right-click -> Script Table As... for tables?
I am running into inconveniences when trying to make modifications to my SP's and tables in my Azure Data Warehouse because I cannot do either of these things....I have to script out my SP/table and save that script somewhere so I can make modifications without having to rewrite it.
What I have tried:
In Visual Studio (2015 Enterprise, Update 1, Installed latest version of Data Tools yesterday), I right-click on the asset in the SQL Server Object Explorer and select "View Code"...the result of this is an error popup that says "Object reference not set to an instance of an object."
In SSMS (2014 v12.0.4213.0) none of my tables show up in the Object Explorer, and if I right-click -> Modify on a stored procedure, I get the following error:
The only way right now that I can think to get the code is to write selects against sys.sql_modules and sys.tables et al.
Any insight would be great!
SQL Data Warehouse does not currently support SSMS. This is a high priority work item for the service and we are working to enable support soon.
I can script out objects from Visual Studio Community 2015 (which is free, as in beer).
I've got the Azure DW registered in SQL Server Object Explorer - which is a bit clunky if you're used to SSMS - and can script an object by right-clicking and selecting "View Code".
If you change anything, you generally need to refresh the tree at the database level before the right-click functions work again.
For SSDT support, including view code, you must be running the preview version.
https://msdn.microsoft.com/en-us/library/mt204009.aspx

SSAS require special privileges to create/edit a named query?

I am trying to make modifications to a named query in a cube and the data source view (.dsv) won't allow me to make edits or create a new named query. It gives me a login error even though I can successfully do a test connection in the data source dialog and can login successfully with SSMS.
The error is: "Login failed for user "
If I instead use the Windows authentication I am able to do everything; however, I would like to use the SQL Server Authentication option.
Are there privileges that need to be set for this? I'm pretty sure I've tried giving this user everything from db_owner etc in my local environment and still no luck.
I was wondering if maybe SSAS requires a specific role to allow SQL Server Authentication to be used for editing/creating named queries in the data source view.
Please refer to the following steps to slove this issue:
In the SSDT development interface, double-click on your data source.
In the Data Source Desginer dialog, please click "Edit".
Please select "SqlClient Data Provider", and then use your SQL Account for the data source.
Follow this link
(https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b5f05388-42e0-4fb6-92a9-d7d3e08aa98c/ssdt-2012-named-query-problem?forum=sqlanalysisservices)

how to update an existing Visual Studio 2012 SQL Server Database project from a database?

I'm trying to use VS 2012 SQL Server Database project for versioning control of our database schema. However, our database schema is being updated by another team/tool, instead of through the Database project. Whenever it's updated, I have to manually update the Database project files - very tedious and error-pron. I'm wondering if there is a way to auto refresh all the schema changes from the updated database (just like the EF UI design tool which has a 'Update model from database' menu)?
Thanks!!
You can try using Schema Compare to compare & update the schema changes. Learn more:
http://msdn.microsoft.com/en-us/library/dd193250(v=vs.100).aspx
With the disclaimer that it's still a 'beta' feature (for now), you can now use SQL Source Control to link your database with a database project. This integrates into SQL Server Management Studio. This means that you will get little blue indicators overlaid on the Object Explorer each time a change gets made to the database that isn't synced to your project. It doesn't matter where the change gets made, be it in SSMS or otherwise.
There's a 28-day trial, so we'd encourage you to try it and let us (Red Gate) know if you come across any issues.

Is it impossible to view and edit T-Sql statements from within Visual Studio 2012?

I am thinking of migrating our database from SQL Server to SQL Azure, but I am a little concerned about the problems with the tooling I've been having.
Specifically, I haven't been able to "design" a T-SQL query directly from VS while working with local Sql Server 2012 Express database. For instance, previously in VS2012 I could go to "Show table data", then display the SQL used to generate the data and then add "order by" clause. But now in VS2012 I don't see a way to show t-sql statements (unless I want to write them from scratch, which I don't).
Thanks for clearing this confusion up for me. Also, can anybody point me to some online documentation describing these changes? I was looking for it but couldn't find anything :-(
Thanks a lot!
Jan

Resources