Cannot view object schema Azure Datawarehouse

拟墨画扇 提交于 2020-01-06 05:29:10

问题


Attempting to view the a view or procedure:

from SQL Server Management Studio 17.4 in Azure SQL Datawarehouse notes the error:

I can however, delete and create any object that I want.

How can I work to ensure I can view the objects definition?

UPDATED

Concerning setting the options in SSMS to SQL Datawarehouse, there is not that option:


回答1:


Please change this setting under Tools... Options. That should resolve the error. I wish we didn't have to change this but at lease we have a workaround.

In SSMS 17.5 there are a few more options. You can have it automatically detect what type of database you're connected to and script accordingly. Or you can force it to script for a particular database type like the following screenshot.

It appears there is a bug in certain versions of SSMS (such as 17.5) where if the DW user isn't also a user in the master database then scripting fails. The easy fix for this is having the server admin connect to the master database and run:

CREATE USER MyUserNameHere FROM LOGIN MyUserNameHere;  



回答2:


Sorry you're seeing this. I've been able to repro this on SSMS 17.4 and 17.5. We are looking at this now.

This seems to be a defect in the upgrade path for 17.5 as this should be supported without having to change the script settings. We are investigating this and will try to get an update out as soon as possible.



来源:https://stackoverflow.com/questions/48812652/cannot-view-object-schema-azure-datawarehouse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!