使用Visual Studio连接到Azure SQL数据库 [英] Connecting to Azure SQL database with Visual Studio

查看:398
本文介绍了使用Visual Studio连接到Azure SQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Visual Studio的新手,我正在尝试在Visual Studio中创建我的第一个表格模型,已经使用powerBI一年左右。

I new to Visual studio, and I am trying to create my first tabular model in Visual studio, having already been using powerBI for a year or so.

我有一个Azure SQL数据库设置,导入了一些初步数据表。我可以通过SSMS和PowerBI访问数据库 - 我可以将数据导入PowerBI。

I have an Azure SQL database setup, with some preliminary data tables imported. I can access the database fine through SSMS and through PowerBI - and I can import the data into PowerBI.

当"获取数据"时通过Visual Studio中我的表格项目中的电源查询,我可以很好地登录数据库,我甚至可以预览各种数据表并在电源查询中打开它们。但是,当我尝试导入数据时 - 它可以超过
第一阶段的处理 - 我得到以下错误

When "Getting data" through power query in my tabular project in visual studio, I can login into the database fine, i can even preview the various data tables and open them in power query. However, when i try to import the data - it can get past stage one of the processing - and i get the following error

"无法保存修改服务器。返回错误:'OLE DB或ODBC错误:很抱歉,评估期间发生错误.." 

当一张桌子出现时列的标题 - 但没有实际数据。

欢迎任何建议

谢谢,

劳伦斯

thanks,
Laurence

推荐答案

嗨Laurence,

Hi Laurence,

我相信有需要解决的项目级属性/配置。我将引用一个Stack Overflow线程,其中包含一些可能让您关闭的步骤。这里的想法是引导您,以便您发现一些丢失或不正确的
配置,如果更正,可能会解决问题。

I believe there is project level property/config that needs to be addressed. I am going to reference a Stack Overflow thread that includes some steps that might get you close. The idea here is to direct you so that you discover some a missing or incorrect configuration that, if corrected, might fix the issue.

分析项目:无法保存对服务器的修改。返回错误:'OLE DB或ODBC错误:我们不能
将值null转换为类型逻辑

这是一个教程,用于指导您使用SQL Server数据工具(SSDT)设置分析服务项目,如果您在使用Visual Studio时遇到太多问题,这可能是更好的方法。

This is a tutorial that walks your through setting up an analysis service project with SQL Server Data Tools (SSDT), which might be a better way to go, if you experience too many issues with Visual Studio.

第1课:在Analysis Services项目中定义数据源视图

我有一个问题。您是连接到Azure SQL Server实例上托管的Analysis Service数据模型还是Azure SQL数据库中的这些表?如果它们是数据库中的物理表,这可能是问题,在Visual Studio或Analysis Service论坛中可能会更好地询问此论坛问题
,但是,这里是为了帮助您。 

I do have a question. Are you connecting to an Analysis Service Data Model hosted on a Azure SQL Server instance or are these tables within an Azure SQL Database? If they are physical tables in a database, this might be the issue and, this forum question might be better asked in the Visual Studio or Analysis Service forum(s) but, here to help you. 

问候,

Mike


这篇关于使用Visual Studio连接到Azure SQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆