azure-sql-database

SQL Azure Firewall Rules on New Portal

只谈情不闲聊 提交于 2020-01-13 10:41:27
问题 We've been using SQL Azure for about a year now. In order to directly access the server outside of Azure you need to add a firewall rule in SQL Azure. That's good. The old portal had a way to do this and it was easy enough even if it was icky Silverlight. However, as far as I can tell, the old Silverlight portal is retired. And the new portal does NOT have a way to manage firewall rules. Am I missing something? Microsoft still says you can access the "current portal" here, but clicking it

Azure SQL Serverless tier never shuts down

荒凉一梦 提交于 2020-01-13 02:54:30
问题 I'm experimenting with the Serverless tier in Azure SQL, but the database never "sleeps" because it seems that Azure is continually querying the database behind the scenes. I created the database via and ARM template. The "Compute utilisation" and "App CPU Billed" charts on the database overview show that the database is being hit regularly (even though I am not making any queries myself). The Top queries in "Query Performance Insight" are: (@ip_address_value bigint,@start_ip varchar(45)

How do I find the maximum database space and the used database space in SQL Azure?

爷,独闯天下 提交于 2020-01-10 05:48:05
问题 In SQL Azure each database has a size limitation (adjustable). In order for my service to not suddenly come to a halt I'd like to be able to programmatically find the current maximum size and current actually used space (and generate and alert once some threshold is reached). Looks like sp_mstablespace can be used to solve this problem, but this stored procedure is not available in SQL Azure. How do I find the current maximum allowed size and current actually used space in a SQL Azure

How can I Schedule a Sql job in Microsoft Azure SQL database?

只愿长相守 提交于 2020-01-09 18:58:27
问题 I have one SQL Agent maintenance job which checks the index fragmentation within a database and rebuilds indexes if required. This is running well in my test server (Microsoft Sql Server 2012). But my production server is in Azure. Now I want to schedule that job to Azure. SQL Agent does not exist in Azure SQL database so how can I schedule a Sql Job in Azure Db? 回答1: Since this question was first asked, there is now another alternative to handle this problem: Azure Functions Here are a

MS SQL Database with 10m rows, convert varchar to int on column

牧云@^-^@ 提交于 2020-01-07 06:26:41
问题 We've inherited a database, it's got 10m rows and a query like this, that runs quite often: SELECT SUM(CONVERT(INT,numSeconds)) AS total_dwell from [dbo].[Orders] where category='Shoes' AND CONVERT(INT,numSeconds)<300 numSeconds is an integer, numbers from 0 through to 2000, but the column type is nvarchar - we need to convert to INT without loosing any data, and the table is huge. Any ideas or suggestions on how we can do this? Thanks all. 回答1: This works and is Atomic (all or nothing) if

Is Always Encrypted method Encrypts data's the before moving(inserting into) Azure Database

时间秒杀一切 提交于 2020-01-07 03:18:05
问题 I'm Just figuring is there any way to Encrypt the data before transmitting into the Azure SQL. Actually I've developed a Azure Web App. I've have a requirement to encrypt the data's into Azure SQL DB in the App Server itself. I can find some reference to encrypt the data's in AzureDB like Always Encryption , Symmetric Keys But all the references leads to encrypt the Data's with in the SQL Server (In other words, the data's would be transmitting as a plain text from App Server to SQL server

Inline table-valued function without a parameter

前提是你 提交于 2020-01-06 12:37:51
问题 I am still pretty new to Azure platform, and learning SQL language. I have a question about creating a user-defined inline Table-valued function (without need a parameter) on Azure platform. Since accessing to Azure platform on my SQL Server Management Studio, whenever I create a log file by using the system built-in function GetDate() , it shows the date and time in UTC time zone, but I want my current time zone (Easter Time Zone) which is 4 hours behind of UTC. So, I am wondering if anyone

Azure Stream Analytics job expensive for small data?

大兔子大兔子 提交于 2020-01-06 05:51:36
问题 In order to write sensor data from an IoT device to a SQL database in the cloud I use an Azure Streaming Analytics job. The SA job has an IoT Hub input and a SQL database output. The query is trivial; it just sends all data through). According to the MS price calculator, the cheapest way of accomplishing this (in western Europe) is around 75 euros per month (see screenshot). Actually, only 1 message per minute is send through the hub and the price is fixed per month (regardless of the amount

“Keyword not supported: authentication” when using Active Directory Password against AAD in Azure Web App

我是研究僧i 提交于 2020-01-06 05:18:25
问题 I'm have an Azure Web App where I've set the connection string to point to an Azure SQL DB. I'd prefer to use an Azure Active Directory username/password for authentication so I used the following connection string: Server=tcp:mydb.database.windows.net,1433;Initial Catalog=mytable;Persist Security Info=False;User ID={your_username};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Authentication="Active Directory Password"; This causes my app to

Migrating NHibernate 3.3 to 5, getting Method not found: System.Data.IDbCommand NHibernate.AdoNet.AbstractBatcher.get_CurrentCommand() with SqlAzure

坚强是说给别人听的谎言 提交于 2020-01-06 03:49:00
问题 I am busy migrating a project from NHibernate 3.3.3.4 to 5.1.3. I have picked up an error when committing a transaction or flushing the session. The error I am currently receiving is as follows: Method not found: 'System.Data.IDbCommand NHibernate.AdoNet.AbstractBatcher.get_CurrentCommand()'. I have looked into the NHibernate 5.1.3 code and release notes and I can see that there has been a change to the CurrentCommand property getter for the AbstractBacther class. In this major release of