Questions tagged [contained-database]
18 questions
42
votes
2 answers
How to restore a "contained" database?
I recently tried to restore to my local development SQL Server a backup from a network instance. To my surprised I received the following error message:
Msg 12824, Level 16, State 1, Line 3 The sp_configure value 'contained
database…
David
- 1,229
- 1
- 9
- 12
6
votes
1 answer
SQL Server - How does contained database user password expiration work?
I've recently started working with contained databases and I do not understand if/how contained database users have passwords that expire.
MSDN documentation says they do - With a SQL Server login, there's the option box to Enforce Password…
Will Southwood
- 101
- 6
6
votes
3 answers
Contained DB Collation error
When changing a database to partially contained I am getting the following error:
Cannot resolve the collation conflict between "Latin1_General_CI_AS"
and "Latin1_General_100_CI_AS_KS_WS_SC" in the EXCEPT operation.
Errors were encountered in the…
Tom
- 1,529
- 4
- 26
- 42
4
votes
2 answers
sp_Blitz fails with collation error
SQL Server version (output from select @@VERSION): Microsoft SQL Server 2017 (RTM-CU19) (KB4535007) - 14.0.3281.6 (X64) (Build 14393: )
Installed sp_Blitz from Brent Ozar, stored procedure creates successfully.
Version info from the code: SELECT…
SJWales
- 85
- 7
3
votes
1 answer
sp_help_revlogin for contained database users?
I've been using sp_help_revlogin for a long time to transfer server principals from one SQL instance to another.
Is there a sp_help_revlogin equivalent that can output create scripts for partially contained database users? I understand that if I…
Craig Efrein
- 9,418
- 11
- 53
- 94
2
votes
3 answers
How can I send mail from a contained database is SQL Server?
How can I send mail with a user within a contained database is SQL Server using Database Mail?
I tried using msdb.dbo.sp_send_dbmail but since any users local to the contained database do not see msdb, therefore msdb.dbo.sp_send_dbmail is…
gemisigo
- 323
- 1
- 3
- 11
1
vote
1 answer
Disable password policy for partially-contained database
I'm stuck in a situation where I need to create a new user for a partially-contained database (SQL Server 2016). The password is short, so I get an error:
Password validation failed. The password does not meet Windows policy requirements because it…
Ives
- 13
- 3
1
vote
0 answers
What are the disadvantages of contained database in ms sql 2017
What are the disadvantages of contained database in Microsoft SQL Server 2017? I want to introduce contained database in my organization. I would like to know what limitations exist. Reasons why I should not implement it would be useful too.
Azirila
- 11
- 1
1
vote
0 answers
Replication Alternatives for Contained Databases
My team and I are in the process of designing a new application using the microservice architecture approach. Each application is going to to be responsible for releasing changes to its own database using a tool not unlike flyway…
Gee2113
- 11
- 1
1
vote
0 answers
Unlink Windows login from database user in SQL Server contained database
I'm migrating databases from SQL Server 2012 to Server Server 2017, and switching SOME of them to partially contained. I've done SQL Server backups and restores to actually move the databases, and switched them to partially contained. When I then…
M Herbener
- 101
- 5
1
vote
2 answers
Azure SQL Database "Login failed for user" contained users.
I'm having a similar issue to this question (https://dba.stackexchange.com/posts/123094/edit)! I have followed the following article: https://azure.microsoft.com/en-gb/documentation/articles/sql-database-manage-logins/ and just cannot get it to…
Stephen Neal
- 13
- 1
- 4
0
votes
1 answer
Support of SQL Server Containers running on container orchestrators
The Microsoft documentation states the following about the supportability of SQL Server Containers running on container orchestrators:
Microsoft supports deploying and managing SQL Server containers by
using OpenShift and Kubernetes.
Starting from…
yersan
- 103
- 2
0
votes
0 answers
AAD users lose access to database after import
I googled for the last few days but I got a bit confused and I do not know how to proceed further. Also, I'm not a DBA and I was just faced with this situation for the first time.
Using sqlpackage.exe I'm exporting a bacpac from a PRD DB and import…
Roxananana
- 1
- 1
0
votes
1 answer
Contained User within a Non-Contained Azure SQL Database
While granting access to Azure SQL databases I have been creating Contained Users directly in the SQL database like so:-
CREATE USER [email@domain.com] FROM EXTERNAL PROVIDER;
As this has been working fine, and users need to add the database name…
Porkster
- 132
- 7
0
votes
1 answer
Can a contained database SQL User be mapped to a remote user in a linked server?
Using SQL Server 2017 Standard CU8 on Windows Server 2016. I've create a contained database user (user defined only within a database with Containment type: partial) with type SQL user with password (so, not a Windows-based user account). In a…
M Herbener
- 101
- 5