在数据库 java NetBeans 中创建表权限被拒绝 [英] Create table permission denied in database 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屋!