每当我尝试在本地sql服务器上导入BACPAC时,我都会收到以下错误消息:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Could not import package.
Warning SQL0: The source contains users that rely on an external authentication provider that is not supported by the target. These users will be treated as users without logins.
Warning SQL72012: The object [DB_NAME_Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check …Run Code Online (Sandbox Code Playgroud) 我刚刚创建了我的第一个 Azure SQL Server 和数据库,现在正在尝试配置防火墙,以便我的 Web 应用程序可以连接并更改服务器上的单个数据库。
然而,这是不好的做法吗?我看到我的客户端 IP 地址列在 Azure 门户中我是否可以澄清我现在应该只允许该单个 IP 地址访问,然后当我将我的 Web 应用程序发布到 Azure 时,我将获得一个 IP 地址Web 应用程序存在并且仅限制对其的访问(假设人们只能通过我的前端应用程序进行数据库更改)。
谢谢
我的数据看起来像:
客户表
CustomerId CustomerName CustomerEmail
------------------------------------------
1 Ben Ben@gmail.com
2 Robert Robert@gmail.com
3 Paul Paul@gmail.com
Run Code Online (Sandbox Code Playgroud)
客户联系人表
CustomerContactId CustomerId ContactName ContactEmail
----------------------------------------------------------
99 1 Lisa Lisa@msn.com
98 3 Jane Jane@msn.com
97 3 Wendy Wendy@msn.com
Run Code Online (Sandbox Code Playgroud)
这是我正在寻找的结果:
[
{
"CustomerId": 1,
"Names": [ "Ben","Lisa" ],
"Emails": [ "Ben@gmail.com","Lisa@msn.com" ]
},
{
"CustomerId": 2,
"Names": [ "Robert" ],
"Emails": [ "Robert@gmail.com" ]
},
{
"CustomerId": 3,
"Names": [ "Paul","Jane","Wendy" ],
"Emails": [ "Paul@gmail.com","Jane@msn.com","Wendy@msn.com" ]
}
]
Run Code Online (Sandbox Code Playgroud)
我尝试过的: 我很尴尬地说我还没有接近:
CustomerId CustomerName CustomerEmail
------------------------------------------ …Run Code Online (Sandbox Code Playgroud) 我是 Azure SQL 数据库的新手。我有一个EXTERNAL DATA SOURCE如以下链接中列出的。
CREATE EXTERNAL DATA SOURCE [My_data_src] WITH (TYPE = RDBMS, LOCATION = N'myserver', CREDENTIAL = [my_cred], DATABASE_NAME = N'MyDB')
Run Code Online (Sandbox Code Playgroud)
去
在创建新的外部数据源之前,我需要查明它是否已经存在。是否有任何查询或 dmv 可以找到这个?
我是 Azure 云的新手。我正在尝试将用户分配的托管标识分配给 Azure Sql Server 以获取 Function App 资源。我添加了可以访问 Azure Sql Server 的用户。同时我尝试打开系统身份。
到底发生了什么:
从外部提供商创建用户 [UMI1]; 去 更改角色 db_datareader 添加成员 [UMI1]; 更改角色 db_datawriter 添加成员 [UMI1]; 去
连接字符串包含用户 ID=UM1
所以,我认为我在 sql 中创建用户时遇到问题。有关此问题的任何参考或回复都会有所帮助。先感谢您
azure azure-sql-server azure-functions azure-managed-identity
作为Azure SQL数据库自动化解决方案的一部分,我试图使用服务主体创建映射到Azure AD身份的 Azure SQL数据库用户。
结果是一条错误消息,提示:此时找不到主体'AAD_User_UPN_or_Group_Name'。请稍后再试。
可以按照完全相同的步骤,使用我自己的用户帐户创建数据库用户。
请在下面找到更多详细信息:
服务主体在Azure SQL数据库中执行以下T-SQL语句:
CREATE USER [AAD_User_UPN_or_Group_Name] FROM EXTERNAL PROVIDER;
Run Code Online (Sandbox Code Playgroud)
返回的错误消息是:
Principal 'AAD_User_UPN_or_Group_Name' could not be found at this time. Please try again later.
Run Code Online (Sandbox Code Playgroud)
当我自己的用户帐户触发相同的T-SQL语句时,该语句成功运行并创建了用户。
非常感谢您的帮助或建议。
azure azure-active-directory azure-sql-database azure-sql-server
使用 Azure SQLServer 我试图只将一列转换为 json 格式。数据位于 nvarchar 字段中。使用For Json Auto将转换所有字段和所有行。我需要的只是转换一列。
通过转换为 json,我的意思是可以在 SSMS 中的一个新窗口中点击查看它的数据。
假设表 (Logs) 有 2 列:LogId和LogData。LogData是nvarchar(max)并包含 json 数据。
我需要的是查询表并有一个可点击的logData列。
我正在尝试为Azure SQL实例配置HAProxy负载均衡器,我的配置文件如下;
defaults
mode tcp
balance leastconn
timeout client 30000ms
timeout server 30000ms
timeout connect 3000ms
retries 3
listen sql-db
bind *:81
mode tcp
balance leastconn
option log-health-checks
server DB-1 ********.database.windows.net:1433 check port 1433 inter 1000
Run Code Online (Sandbox Code Playgroud)
在Azure VM上定位SQL Server实例时,此配置文件可正常工作.但是,在针对Azure SQL时,由于登录失败,连接被拒绝:"无法打开服务器" ..."登录请求.登录失败.(.Net SqlClient Data Provider)"我100%确定用户名/密码是否正确.他们一定是迷路了.
任何想法为什么会这样?
谢谢你,杰森
我已成功创建 P2S Vpn 连接并在防火墙下添加虚拟网络以及 Azure 中 SQL Server 的虚拟网络。我在本地计算机中配置了 Windows VPN 客户端,并且能够建立与 Azure 的连接,但是当我打开 SQL Management Studio 并连接我的数据库时,它仍然要求登录 azure 并将我的公共 IP 列入白名单。我不知道自己哪里做错了。
我有源 csv 文件,其中有一列具有多个值(数据以逗号 (,) 分隔),因此我想使用数据工厂提取该特定的一列,并将该多条记录存储到具有不同值的表(在数据库中)中。列名
您能否建议我应该如何设计天蓝色数据工厂管道?
azure-sql-server ×10
azure ×5
sql ×2
sql-server ×2
bacpac ×1
firewall ×1
for-json ×1
haproxy ×1
t-sql ×1
vpn ×1