문제
MSSQL를 Docker로 사용중인데 권한 때문에 문제가 생김
원인
권한 부여를 안해서 당연히 에러가 생긴거임
해결
USE <db>
GRANT SELECT TO <user> -- 조회 권한
GRANT INSERT TO <user> -- 삽입 권한
GRANT DELETE TO <user> -- 삭제 권한
GRANT UPDATE TO <user> -- 갱신 권한
GRANT EXEC TO PUBLIC -- 프로시저 권한 (전체)
exec sp_defaultdb @loginame='login', @defdb='master' -- 해당 유저 default database 설정
참고
The EXECUTE permission was denied on the object 'xxxxxxx', database 'zzzzzzz', schema 'dbo'
I'm having problems executing a function. Here's what I did: Create a function using SQL Server Management Studio. It was successfully created. I then tried executing the newly created function and
stackoverflow.com
The SELECT permission was denied on the object 'Users', database 'XXX', schema 'dbo'
I moved a database from SQL Server 2012 to Azure. I don't want to use the user master, so I created a user test. This is what I did for database XXX on Azure: create user test from login test with
stackoverflow.com
How Do I Create A Database And User In Docker Using A Script?
I'm following the instructions here on how to connect to MS SQL Server using docker. After running the container you need to connect to do some setup: docker exec -it sql1 "bash" /opt/mssql-tools...
stackoverflow.com
'개발 > 트러블 슈팅' 카테고리의 다른 글
Could not convert socket to TLS (0) | 2022.10.06 |
---|---|
unable to find valid certification path to requested target (0) | 2022.09.22 |
[DB2] Operation not allowed for reason code "1" on table (1) | 2022.09.15 |
[JS] javascript 리터럴 jstl이랑 같이 사용하기 (0) | 2022.09.15 |
[Node] PeerJs close, disconnect 안되는 오류 해결 (0) | 2022.09.08 |