azure-sql-database

SQL Azure SPLIT ON UNIQUEIDENTIFIER GUID

瘦欲@ 提交于 2020-01-06 02:51:28
问题 Let's say there is an application generating random GUIDs corresponding to number of normalized records in a few tables. These records with GUID "tenant_id" need to be split into multiple federated members in SQL Azure. When the SPLIT AT command is issued, what ordering mechanism is used to split members at a specific point (tenant_id)? Is it similar to ORDER BY GUID_FIELD ASC/DESC resultset? Since GUIDs are generated randomly, what is the best way to create ranges with future splits? Thank

Does SQL Azure now support newsequentialid

我怕爱的太早我们不能终老 提交于 2020-01-06 02:30:07
问题 I saw this comment: "Late last week Azure launched a preview of the latest version of Azure SQL DB and in that preview, NewSequentialID is now supported, along with many other features that were previously not available." but I have been unable to find any details of this. Has anyone else found anything that will confirm SQL Azure now supports newsequentialid ? 回答1: NEWSEQUENTIALID() is supported in the latest V12 server version of SQL Database. The documentation can be found here: https:/

How to restore an Azure SQL Database to point-in-time using Azure management libraries for .NET

梦想与她 提交于 2020-01-05 08:16:13
问题 Below are for creating a database using Azure management libraries, and I would like to know how to restore an existing database to point-in-time on Azure. // Crate Authenticate var credentials = SdkContext.AzureCredentialsFactory.FromServicePrincipal("{clientId}", "{client-secret}", "{teantId}", AzureEnvironment.AzureGlobalCloud); // Connect Azure var azure = Azure .Configure() .WithLogLevel(HttpLoggingDelegatingHandler.Level.Basic) .Authenticate(credentials) .WithDefaultSubscription(); //

how to connect ms-botframework to azure database

半腔热情 提交于 2020-01-05 05:30:40
问题 How to connect .Net application BotFramework to database and store data in MS SQL azure? I want use stored procedure in db and save sent and recieved messages. Code Sample This code is work if I used connection string to localdb or local server Webconfig <connectionStrings> <add name="[ConnStr]" connectionString="Data Source=[SiteURL].database.windows.net;Initial Catalog=[Name];Persist Security Info=True;User ID=[User];Password=[Password]" providerName="System.Data.SqlClient" /> <

Acquiring Azure AD Token for Azure SQL Server

Deadly 提交于 2020-01-05 04:50:36
问题 I'm trying to develop a web application that uses a certificate to authenticate with AD and then acquires a token to connect to a SQL Azure DB. I've followed all the steps in https://azure.microsoft.com/en-us/documentation/articles/sql-database-aad-authentication/ and https://github.com/Azure-Samples/active-directory-dotnet-daemon-certificate-credential except I'm using the code sample from here - https://blogs.msdn.microsoft.com/sqlsecurity/2016/02/09/token-based-authentication-support-for

Connect an Azure App Service to an Azure SQL Database with Windows Authentication

假如想象 提交于 2020-01-05 04:11:11
问题 We have: an Azure App Service (like myappservice.azurewebsites.net ) (written in C# & .net core 2.2) An Azure SQL Server (like myserver.database.net ) Currently the App Service connects to the SQL Database via SQL Server Authentication (login+password). However, if possible, we would like to have Windows Authentication . i.e. the service should be able to login without sending username and password. That way we would not need to store any login information in our service. Is that possible?

Import data tier application is failing

Deadly 提交于 2020-01-04 09:29:08
问题 I'm getting the following error while restoring the database backup ( .bacpac file) into my on premise SQL Server 2016 instance. TITLE: Microsoft SQL Server Management Studio Could not import package. Warning SQL72012: The object [Azure_Data] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box. Warning SQL72012: The object [Azure_Log] exists in the target,

Azure SQL Server Error : The elastic pool has reached its storage limit. The storage usage for the elastic pool cannot exceed (204800)

蓝咒 提交于 2020-01-04 07:37:12
问题 When I am trying to update or insert multiple rows from the application or directly sql server database, I am getting the error as below. Msg 1132, Level 16, State 1, Line 1 The elastic pool has reached its storage limit. The storage usage for the elastic pool cannot exceed (204800) MBs. I do not know how to handle this. Please help. 回答1: You should proactively check the current size quota for your databases, to make sure it is set as expected. To do this, the following statement can be used

Is it possible to apply the dynamic data masking on already encrypted column in same table

橙三吉。 提交于 2020-01-04 06:31:32
问题 I was implemented the Always Encrypted and Dynamic data masking concepts in my azure SQL database on two different tables. But I have doubt like “Is it possible to apply the dynamic data masking on already encrypted column in same table”. I tried the above scenario it gives error like “The data type of column 'SSN' does not support data masking function 'partial'.”. I run the below query for applying the masking on already encrypted column. ALTER TABLE [dbo].[CustomerTables] ALTER COLUMN [SSN

SQL Azure Migration Wizard - small extra step needed?

久未见 提交于 2020-01-04 05:11:25
问题 I've recently migrated a couple of SQL 2008 databases to Azure using the 3.7 Migration Wizard from CodePlex. After completing the migration, everything works well, except that I don't have all the "normal" right click menu items in Management Studio - e.g. I don't have "Design", "Select Top 1000", etc I think the reason that these items is missing is because the logged in user (my SQL Azure admin) is not a user of the migrated database - or maybe its something else? If I just create a