【发布时间】:2020-01-18 11:57:28
【问题描述】:
Screenshot of Error我正在使用 Visio 2019,试图对 Azure SQL 服务器进行逆向工程。我已经使用我们的 DB-admin 用户和我的 admin azure 目录登录成功地创建了多个用户数据源以在向导中使用。当我得到以下信息时,数据库凭据已成功验证,并且我想要逆向工程的表/视图即将加载:
Visio 逆向工程数据库向导引发错误:
"Error! Cannot extract column definition for the table/view . The definition is not
available or you may not have sufficient privileges."
带有一个文本框,上面写着:
"Could not find server "database name"* in sys.servers. Verify that the correct server name was specified. If necessary, execute the stored procedure sp_addlinkedserver to add the server to sys.servers."
我既找不到 sys.servers 也找不到运行 sp.addlinkedserver,因为它不存在。不过,sys.sysservers 确实存在。
我为数据库名称加了星标,因为它没有显示“DB_2.0”的目标数据库,而是显示“DB_2”,这不是数据库的全名。
正如我上面提到的,我相信我有足够的权限,因为我已经尝试了管理员用户名和密码以及使用 azure 目录的管理员登录。所以这可能与没有 sys.servers 表有关?
有没有办法按照 Visio 的要求创建 sys.servers 表或创建存储过程 sp.addlinkedserver?是否建议使用 Azure SQL,我们数据库的命名约定是否与错误有关?
【问题讨论】:
-
不能为 Azure SQL 加载数据吗?
-
@JimXu 它可以连接到 Azure SQL 并允许我选择要为其创建 ERD 的视图/表,但是当它读取表和数据类型时,它会引发以上错误。
-
能否请您提供遇到错误时的步骤截图?
-
@JimXu 链接已发布
标签: sql-server azure-sql-database visio database-diagram