azure-sql-database

How to enable SQL Authentication with ARM Template?

爷,独闯天下 提交于 2019-12-12 06:56:12
问题 I have an ARM template which deploys multiple Azure VMs with the following images: "SQL2008R2SP3-WS2008R2SP1", "SQL2012SP4-WS2012R2", "SQL2014SP2-WS2012R2", "SQL2016SP2-WS2016", "SQL2017-WS2016" The SQLIaaS VM Extension is not leaving the SQL Server in SQL Authentication mode, and not creating the SQL Authentication account. Otherwise everything else works fine. Here's the snippet for the SQLIaaS part of the ARM template. Any ideas why SQL Auth is not being set up? { "apiVersion": "2015-06-15

The wait operation timed out Win32Exception (0x80004005): The wait operation timed out azure

社会主义新天地 提交于 2019-12-12 06:38:44
问题 Following error comes when retrieving large amount of data from sql azure. I have already implement the Transient Fault Handling but still getting this error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ComponentModel.Win32Exception: The wait operation timed out Source Error: An unhandled exception was generated

Azure SQL Database size growing out of control DBCC SHRINKDATABASE doesn't work

家住魔仙堡 提交于 2019-12-12 06:30:34
问题 Azure SQL database size in portal is 164GB. There are a lot of binary large objects passing through the database, those records are being deleted but the space is not getting reclaimed. DBCC SHRINKDATABASE doesn't help, it reports many more used pages than the sum of used_page_count from sys.dm_db_partition_stats. DBCC SHRINKDATABASE results DbId FileId CurrentSize MinimumSize UsedPages EstimatedPages 5 1 19877520 2048 19877208 19877208 5 2 17024 128 17024 128 sum of used_page_count from sys

Change port in azure sql server

一笑奈何 提交于 2019-12-12 06:01:24
问题 Is there any option to change the lising port in azure sql server ? Is there any log in azure sql server ? Thks for helpers 回答1: No, you cannot change the port in Azure SQL Server. Your database is hosted on load balanced cloud server instances which are out of 'customer' control. If you require the service to be presented on another port, one option is to create a VM that performs the NAT/port-remapping for you - but I'd question the wisdom. If I had to guess, I'd assume you're trying to

Insert into table via stored procedure from client application using always encrypted AzureKey vault

╄→尐↘猪︶ㄣ 提交于 2019-12-12 05:28:04
问题 I'm created a client application that do all the encrypt and decrypt values using Always Encryption. I've used Azure Key vault to store my Keys. I've followed this. It worked for me fine with the hardcoded query (INSERT INTO ....) But when I tried with a stored procedure, it didn't work. I've already referred to this Stack Post. But the solutions/answer didn't solve my problems unfortunately. So I've decided to open a new question. This is my C# code SqlCommand cmd = _sqlconn.CreateCommand();

Getting vague error message when attemtping to create a SQL Database using AzureResourceManager mode in Azure Powershell

回眸只為那壹抹淺笑 提交于 2019-12-12 05:26:23
问题 In the example below (added carriage returns for readability) I am able to create a resource group and Sql Server just fine. When I run line #19 I get the vague error message: BadRequest: An error occurred while processing this request. I've hit a wall without the proper feedback to help me troubleshoot. I can create databases in AzureServiceManager mode just fine, but I'd like to be able to use resource groups to manage my databases. There is so little information available for this scenario

SQL Azure - cross-database queries

試著忘記壹切 提交于 2019-12-12 04:49:08
问题 We have two databases let say 'D1' and 'D2'. There is one table in each database, say T1 in D1 and T2 in D2. Now I want to write a store procedure in database D1 which will access table in database D2 something like below code... USE D1 GO Create or replace sp_test ( --other detials SELECT * FROM D2.dbo.T2 ) GO Any idea how can I do this? Note: Earlier we used to have both the databases on to same server. So I didn't face any problem. But now after migrating to Azure I don't have any idea how

What is the TableController class for and where are its methods used?

孤人 提交于 2019-12-12 04:33:21
问题 I've been starting out with Azure and have chosen to set up a Mobile Service using .NET in VS. I've been learning about the constituents of the Azure Todo get-started server project. One thing I'm struggling to understand (even with extensive Googling) is what the TableController methods are for? I understand that TableController exposes the table to HTTP requests? But when I access data from my client I'm using ".LookupAsync" or ".UpdateAsync" methods on the Table returned by my

Count number of strings returned from Azure query

守給你的承諾、 提交于 2019-12-12 04:26:13
问题 I am trying to count the number of rows from my azure database table in my android java code. Unfortunately there is no count() method built into the azure library. The closest thing to it is the includeInlineCount() method. I used the following line of code: final MobileServiceList<Crime> result = mToDoTable.includeInlineCount().execute().get(); Which returns the value of the first column for each row. The value of result looks something like this: [column1_row1_String, column1_row2_String,

How to call a local method from the linq query

岁酱吖の 提交于 2019-12-12 04:25:33
问题 In my web api i need to execute a method from linq query itself. My linq query code snippet belongs to method is shown below which calls local method to get required data. var onlineData = (from od in db.RTLS_ONLINEPERSONSTATUS let zoneIds = db.RTLS_PERSONSTATUS_HISTORY.Where(p => p.person_id == od.PERSONID).OrderByDescending(z => z.stime > startOfThisDay && z.stime < DateTime.Now).Select(z => z.zone_id).ToList() let zoneIdsArray = this.getZoneList((zoneIds.ToArray())) let fzones =