在数据库 java NetBeans 中创建表权限被拒绝 [英] Create table permission denied in database java NetBeans

查看:86
本文介绍了在数据库 java NetBeans 中创建表权限被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法在连接到 MS SQL 服务器的 netbeans java 中创建表

错误-在数据库中创建表权限被拒绝

我如何获得权限.请提出一些解决方案.

解决方案

要创建表,您的用户必须具有对目标架构的 ALTER 权限和对数据库的 CREATE TABLE 权限.这些权限可以由数据库所有者授予.

如果此 SQL Server 实例在您的 PC 上运行,请使用 SSMS 与 Windows 集成身份验证从提升的会话或使用 SA 帐户进行连接,并授予目标用户创建表的权限.连接到目标数据库运行

 将 SCHEMA::DBO 上的更改授予 SomeUser将创建表授予某些用户

或者使该用户成为数据库级管理员

授予某些用户控制权

not able to create table in netbeans java connected to MS SQL server

Error- Create table permission denied in database

How can I get the permissions. Please suggests some solutions.

解决方案

To create a table your user must have ALTER permission on the target schema and CREATE TABLE permissions on the database. These permissions can be granted by the database owner.

If this SQL Server instance is running on your PC, connect using SSMS with Windows Integrated auth from an elevated session, or using the SA account and grant the target user the rights to create tables. Connected to the target database run

GRANT ALTER ON SCHEMA::DBO TO SomeUser
GRANT CREATE TABLE TO SomeUser

Or to make that user a database-level admin

GRANT CONTROL TO SomeUser

这篇关于在数据库 java NetBeans 中创建表权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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