azure-sql-server

Connect to Azure SQL server via AAD Authentication using EF Core

我怕爱的太早我们不能终老 提交于 2020-01-02 05:13:51
问题 Azure SQL servers support AAD authentication, and I want my applications to connect to SQL server using AAD authentication and not SQL server admin credentials. I am using EF core to connect to SQL, how do I enable EF Core to use AAD authentication. My application is deployed in Azure App Service and it has MSI extension enabled, so I am looking forward to using Microsoft.Azure.Services.AppAuthentication for getting the token from AAD. 回答1: Connect to Azure SQL server via AAD Authentication

Azure SQL Server Elastic Pool - automatically add database to pool

戏子无情 提交于 2019-12-30 09:26:11
问题 Currently we have an Azure SQL Server and each time we create new web app, we use EF Core Code First to generate the database. However after the database is created we manually go to Azure portal and add the newly created database to the Elastic Pool inside the Azure SQL Server. Is it possible to somehow automate the process so that each newly created database either via portal or generated using EF or whatever, it will be automatically added to the Pool? 回答1: You can use Transact-SQL to

Azure Search Service - Import from SQL Server on Azure VM failing ('Data source payload should specify at least one of datasource name and type)

一个人想着一个人 提交于 2019-12-24 06:58:16
问题 I'm attempting to add a new data source from a SQL Server on Azure VM for a search service and indexer I'm creating through the Azure web portal. It's my understanding that I can create an index, import this data, then create an indexer to regularly push data to the index. I'm adding the connection string for our SQL Server and getting a successful message when clicking "Test Connection". The tables show up in a drop-down list, and I select one. When I click "OK" on creating the new data

Using Polybase to load data into an existing table in parallel

断了今生、忘了曾经 提交于 2019-12-19 04:39:40
问题 Using CTAS we can leverage the parallelism that Polybase provides to load data into a new table in a highly scalable and performant way. Is there a way to use a similar approach to load data into an existing table? The table might even be empty. Creating an external table and using INSERT INTO ... SELECT * FROM ... - I would assume that this goes through the head node and is therefore not in parallel? I know that I could also drop the table and use CTAS to recreate it but then I have to deal

SQL for Dates with no ClosePrice for all companies

半腔热情 提交于 2019-12-13 09:48:59
问题 I have a fact table where I have ClosePrice for Company Tickers and TradingDates. I also have a dimCalendar table where all dates are there and a flag is maintained for Trading Holidays. Somehow I need to have a new fact table or materialized view or something for reporting purposes where I need to have ClosePrice for every day including TradingHolidays. ClosePrice for trading holidays should be previous trading day's close price for that CompanyTicker. Then I need to have another column for

Azure SQL: What is the cost of running a specific SQL query like create database as copy

梦想的初衷 提交于 2019-12-11 15:31:44
问题 What are the costs of running the following operation in Azure? drop database MyDB; create database MyDB as copy of MyDB_Clean; The scope of the above operation is to restore an existing database to its clean version to improve web site performance. It will run once every day via an Azure web job and would like to assess if this would be feasible in terms of costs. MyDB_Clean used space = 35 MB, allocated space 48 MB, using Tiers S0/S1/S2 回答1: What are the costs of running the following

Restore Azure SQL Database LTR back-up via the Portal after deleting the original Azure SQL Server

一世执手 提交于 2019-12-11 01:04:35
问题 I can't find a straight answer to this question so hoping someone here came across this. As the LTR backups are tied to the subscription there should be a way to restore a backup even if the original SQL Server that hosted the database is deleted. How can these be viewed and restored via the Portal after the SQL Server is deleted? Or via other means. 回答1: Currently there isn't a built-in method to restore the entire server. When a server is deleted (soft deleted) then you should call Azure

Azure SQL Server, is it possible to disable server admin (after creation)?

只愿长相守 提交于 2019-12-07 21:14:09
问题 Case I want to work with Azure SQL Server, as noted in the best practices how to secure Azure SQL Server it is good to use AAD account for accessing your server/database instead of SQL Accounts. I read several posts on the documentation site of Microsoft and blogs, but I cannot find that it is possible to disable/remove the Server Admin account, after you have the Azure SQL Server and an created AAD SQL Administrator and attached it to Azure SQL Server. I know Server Admin Login and Password

How to create BAK file from azure sql db

拥有回忆 提交于 2019-12-07 07:40:06
问题 I want to move my azure sql db to another host. However my new host allows to import sql db backup-files (.BAK) only; I found out how to generate .BACPAK files with SQL Server Management Studio but I could not find a way to create a BAK-file from my azure sql db. Please help. 回答1: However my new host allows to import sql db backup-files (.BAK) only; SQL Azure doesn't provide a native way to generate '.bak' format backup file. If you did need this format file, you could import the BACPAC File

How to create BAK file from azure sql db

让人想犯罪 __ 提交于 2019-12-05 17:17:34
I want to move my azure sql db to another host. However my new host allows to import sql db backup-files (.BAK) only; I found out how to generate .BACPAK files with SQL Server Management Studio but I could not find a way to create a BAK-file from my azure sql db. Please help. However my new host allows to import sql db backup-files (.BAK) only; SQL Azure doesn't provide a native way to generate '.bak' format backup file. If you did need this format file, you could import the BACPAC File to a local SQL Server which supports importing BACPAC File. After that, a new User Database will be created.