小编Jo.*_*...的帖子

Azure SQL Server 中大容量插入的权限问题

用户在 Azure SQL Server 中运行批量插入命令时遇到以下错误。我使用的是 Azure SQL Server 而不是 SQL Sever。大多数与大容量插入授予权限相关的命令在 Azure SQL Server 中不起作用。

错误

You do not have permission to use the bulk load statement.
Run Code Online (Sandbox Code Playgroud)

在 Azure SQL Server 中尝试添加用户的命令

EXEC sp_addrolemember 'db_ddladmin', 'testuser'; 

ALTER SERVER ROLE [bulkadmin] ADD MEMBER testuser

GRANT ADMINISTER BULK OPERATIONS TO testuser
Run Code Online (Sandbox Code Playgroud)

错误

Msg 40520, Level 16, State 1, Line 5
Securable class 'server' not supported in this version of SQL Server.
Run Code Online (Sandbox Code Playgroud)

非常感谢您的帮助。

azure azure-sql-database azure-sql-server

4
推荐指数
1
解决办法
4340
查看次数

使用 Picasso 在 Kotlin 中获取目标空错误消息

我正在尝试使用 Json API 显示图像,但我收到 Target not null 错误消息。我有三个类,一个主要类,适配器类和模型类。我已经添加了 picasso 库,名称工作正常,没有问题,图像也有问题。任何帮助表示赞赏。

主要类:

var Test:String=catObj.getString("Test")
category.Test=Test
Picasso.get().load(category.Test).into(TestImage)---TestImage is my ImageView ID.
Run Code Online (Sandbox Code Playgroud)

适配器类:

class ViewHolder(itemView:View):RecyclerView.ViewHolder(itemView) {

    fun bindItem(Test:TestModel)
    {
        var name:TextView=itemView.findViewById<TextView>(R.id.CatName)
        var picture:TextView=itemView.findViewById<TextView>(R.id.CatImage)
        name.text=Test.name
        picture.text=Test.location

    }
}
Run Code Online (Sandbox Code Playgroud)

错误日志:

  java.lang.IllegalArgumentException: Target must not be null.
Run Code Online (Sandbox Code Playgroud)

android kotlin android-studio picasso

0
推荐指数
1
解决办法
1901
查看次数