azure-sql-database

Unable to add Azure AD group with ':' in display name to Azure SQL, am I missing something?

孤者浪人 提交于 2020-07-23 07:24:33
问题 In our Azure AD, we have Security groups named with (:) in the name. So the format looks like SG:{Group Name} . When I try to add a group with (:) in the name to Azure SQL using a query below CREATE USER [SG:Developers] FROM EXTERNAL PROVIDER; I'm getting an error shown below Msg 15007, Level 16, State 6, Line 1 'SG:Developers' is not a valid login or you do not have permission. I am able to add groups with spaces or underscores in the name, so far its just (:) causing issues. I don't believe

Unable to add Azure AD group with ':' in display name to Azure SQL, am I missing something?

爷,独闯天下 提交于 2020-07-23 07:23:05
问题 In our Azure AD, we have Security groups named with (:) in the name. So the format looks like SG:{Group Name} . When I try to add a group with (:) in the name to Azure SQL using a query below CREATE USER [SG:Developers] FROM EXTERNAL PROVIDER; I'm getting an error shown below Msg 15007, Level 16, State 6, Line 1 'SG:Developers' is not a valid login or you do not have permission. I am able to add groups with spaces or underscores in the name, so far its just (:) causing issues. I don't believe

Unable to add Azure AD group with ':' in display name to Azure SQL, am I missing something?

99封情书 提交于 2020-07-23 07:21:26
问题 In our Azure AD, we have Security groups named with (:) in the name. So the format looks like SG:{Group Name} . When I try to add a group with (:) in the name to Azure SQL using a query below CREATE USER [SG:Developers] FROM EXTERNAL PROVIDER; I'm getting an error shown below Msg 15007, Level 16, State 6, Line 1 'SG:Developers' is not a valid login or you do not have permission. I am able to add groups with spaces or underscores in the name, so far its just (:) causing issues. I don't believe

How to replicate a computed hashed value in a SQL table?

妖精的绣舞 提交于 2020-07-23 06:23:06
问题 We have a column in a table that is a computed HASH: My question is, how do I replicate that computed value so that I can join on it? For example, given this row: I am trying this: select (CONVERT([uniqueidentifier],hashbytes('MD2',concat('ABC-123','en')))); Where ABC-123 would be the value for Phrase . But that gives me a very different hash value: A549AB46-7111-6833-F5A9-C0102F63E822 I assume because it's not using the same uniqueidentifier ? What do I need to do so that I can replicate the

How to replicate a computed hashed value in a SQL table?

我怕爱的太早我们不能终老 提交于 2020-07-23 06:22:12
问题 We have a column in a table that is a computed HASH: My question is, how do I replicate that computed value so that I can join on it? For example, given this row: I am trying this: select (CONVERT([uniqueidentifier],hashbytes('MD2',concat('ABC-123','en')))); Where ABC-123 would be the value for Phrase . But that gives me a very different hash value: A549AB46-7111-6833-F5A9-C0102F63E822 I assume because it's not using the same uniqueidentifier ? What do I need to do so that I can replicate the

How to replicate a computed hashed value in a SQL table?

↘锁芯ラ 提交于 2020-07-23 06:21:27
问题 We have a column in a table that is a computed HASH: My question is, how do I replicate that computed value so that I can join on it? For example, given this row: I am trying this: select (CONVERT([uniqueidentifier],hashbytes('MD2',concat('ABC-123','en')))); Where ABC-123 would be the value for Phrase . But that gives me a very different hash value: A549AB46-7111-6833-F5A9-C0102F63E822 I assume because it's not using the same uniqueidentifier ? What do I need to do so that I can replicate the

Azure SQL Grant Access for AD User in SSMS [closed]

坚强是说给别人听的谎言 提交于 2020-07-15 09:39:39
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I set an azure ad admin (global admin) for our azure sql server, now i tried to grant a ad user access to the sql database. I followed the instructions in this video https://www.youtube.com/watch?v=pEPyPsGEevw, because i didn't found a better explenation. As

Azure SQL Grant Access for AD User in SSMS [closed]

青春壹個敷衍的年華 提交于 2020-07-15 09:39:11
问题 Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last month . Improve this question I set an azure ad admin (global admin) for our azure sql server, now i tried to grant a ad user access to the sql database. I followed the instructions in this video https://www.youtube.com/watch?v=pEPyPsGEevw, because i didn't found a better explenation. As

iOS Swift: How to perform SQL SUM() function using MSQuery and NSPredicate?

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-29 03:49:16
问题 For example, I would like something similar to: select SUM[likes] from [MyAzureSQLService].[InstagramPost] where user == 'rain' Here, the "likes" is unsigned integer column in azure sql table "[MyAzureSQLService].[InstagramPost]", I wanted to query the sum number of all likes received by a specific user. My Swift code in iOS is like this: guard let table = client.table(withName: tableName) else { return } guard let query = MSQuery(table: table) else { return } query.predicate = NSPredicate

iOS Swift: How to perform SQL SUM() function using MSQuery and NSPredicate?

人走茶凉 提交于 2020-06-29 03:49:15
问题 For example, I would like something similar to: select SUM[likes] from [MyAzureSQLService].[InstagramPost] where user == 'rain' Here, the "likes" is unsigned integer column in azure sql table "[MyAzureSQLService].[InstagramPost]", I wanted to query the sum number of all likes received by a specific user. My Swift code in iOS is like this: guard let table = client.table(withName: tableName) else { return } guard let query = MSQuery(table: table) else { return } query.predicate = NSPredicate