azure-sql-database

Azure SQL Azure AD Authentication Failure

♀尐吖头ヾ 提交于 2019-12-21 20:07:24
问题 I am trying to connect to my Azure SQL Database that has a Azure Active Directory Database Contained User from my .NET Application (Sitecore). I have the adalsql.dll installed on the VM hosting the .NET Application. However, when I attempt to connect, I receive the following error: Failed to authenticate the user test@mytest.onmicrosoft.com in Active Directory (Authentication=ActiveDirectoryPassword). Error code 0xCAA20064; state 10 AADSTS50055: Force Change Password. Here is my

Getting Error The argument 'nameOrConnectionString' cannot be null, empty or contain only white space with Azure Database

牧云@^-^@ 提交于 2019-12-21 17:36:11
问题 I am having my database and other storage on azure cloud storage.i am using Entity Code first appoach but problem is when i am trying to read connection string from cloud storage using CloudConfigurationManager.GetSetting() i am getting below error: Error:The argument 'nameOrConnectionString' cannot be null, empty or contain only white space. An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code This is my Azure project:Demo.Web.Azure

Azure SQL Creating Database Scoped Credential

自作多情 提交于 2019-12-21 17:25:33
问题 I'm trying to create a scoped credential in azure SQL using SSMS. CREATE DATABASE SCOPED CREDENTIAL [cred-name] WITH IDENTITY = [db-user], SECRET = 'password' I keep running into the error message stating "Incorrect syntax near 'cred-name'. Expected '='." I'm not sure how my syntax is incorrect as I've done this exact command successfully in the past so I'm not sure what has changed. I thought maybe it was just intellisense that was messing up so I updated my SSMS instance from 17.3 to 17.7

Set Service Tiers when create Azure SQL database from VS C#

a 夏天 提交于 2019-12-21 12:24:10
问题 Is it possible to set the Microsoft Azure SQL Database service tiers when creating a new database from Visual Studio in C#? Currently, I can connect to the Azure SQL server and create table with no problem but for some reason (maybe Microsoft Default) the databases will be created in Web which is the service tier that going to be retired. I would like to set the default service tiers to either be Basic, Standard, or Premium depends on the needs. What I found so far is when I call this method

Why does Azure Database perform better with transactions

只愿长相守 提交于 2019-12-21 09:37:38
问题 We decided to use a micro-orm against an Azure Database. As our business only needs "inserts" and "selects", we decided to suppress all code-managed SqlTransaction (no concurrency issues on data). Then, we noticed that our instance of Azure Database responded very slowly. The " rpc completed " event occured in delays that are hundreds times the time needed to run a simple sql statement. Next, we benchmarked our code with EF6 and we saw that the server responded very quickly. As EF6 implements

Why does Azure Database perform better with transactions

谁说胖子不能爱 提交于 2019-12-21 09:36:04
问题 We decided to use a micro-orm against an Azure Database. As our business only needs "inserts" and "selects", we decided to suppress all code-managed SqlTransaction (no concurrency issues on data). Then, we noticed that our instance of Azure Database responded very slowly. The " rpc completed " event occured in delays that are hundreds times the time needed to run a simple sql statement. Next, we benchmarked our code with EF6 and we saw that the server responded very quickly. As EF6 implements

SQL AAD Token Based Authentication - Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON

强颜欢笑 提交于 2019-12-21 07:37:45
问题 Requirement - I am trying to connect to azure SQL DB from a asp.net MVC application and the connection type to azure SQL DB is "token based" and below are the set up done from my end. a. Created an AAD application( ex : MTSLocal ) with certificate based authentication. b. Added permission to the above AAD in SQL. CREATE USER [MTSLocal] FROM external provider; c.In code level I am trying to get a access token by using Client ID( obtained from step a.) and certificate and the resource I am

Azure SQL Database Connectivity Issues - Too many connections?

。_饼干妹妹 提交于 2019-12-21 03:31:36
问题 I have a site which is a white label (Multiple versions of the same site) which I've launched recently. There isn't a great deal of traffic yet - mainly bots but probably 800 users per day. It is hosted on Azure with an Azure database in addition to an admin panel located on a non-azure server. Both sites connect to the same Azure database. There are also some worker roles running to process data - 99% of the time they aren't doing anything, but they check regularly. I have always experienced

What is the azure table storage query equivalent of T-sql's LIKE command?

て烟熏妆下的殇ゞ 提交于 2019-12-21 03:13:21
问题 I'm querying Azure table storage using the Azure Storage Explorer. I want to find all messages that contain the given text, like this in T-SQL: message like '%SysFn%' Executing the T-SQL gives "An error occurred while processing this request" What is the equivalent of this query in Azure? 回答1: There's no direct equivalent, as there is no wildcard searching. All supported operations are listed here. You'll see eq, gt, ge, lt, le, etc. You could make use of these, perhaps, to look for specific

What is the azure table storage query equivalent of T-sql's LIKE command?

可紊 提交于 2019-12-21 03:13:17
问题 I'm querying Azure table storage using the Azure Storage Explorer. I want to find all messages that contain the given text, like this in T-SQL: message like '%SysFn%' Executing the T-SQL gives "An error occurred while processing this request" What is the equivalent of this query in Azure? 回答1: There's no direct equivalent, as there is no wildcard searching. All supported operations are listed here. You'll see eq, gt, ge, lt, le, etc. You could make use of these, perhaps, to look for specific