azure-sql-database

Puzzled about Credential Details for Vertically Scaling SQL Azure using Azure Automation?

本小妞迷上赌 提交于 2019-12-11 03:01:28
问题 I am trying to upscale and downscale my SQL Azure instances using Azure Automation. I am using a gallery runbook called "Set-AzureSqlDatabaseEdition.ps1" which has been created by Joseph Idziorek. The link is: SQL Azure vertical scale Runbook The parameter examples are: .EXAMPLE for Set-AzureSqlDatabaseEdition -SqlServerName bzb98er9bp -DatabaseName myDatabase -Edition Premium -PerfLevel P1 -Credential myCredential However I am confused what should go into "Crediential". Is this the SQLServer

Can I restrict SQL Server to execute code only when some code is selected?

筅森魡賤 提交于 2019-12-11 02:54:11
问题 The other day I was trying to hit another button on the menu but hit Execute - which executed the whole code and ended up deleting some tables. I have always found this scary that hitting one button can execute the whole code. I want SQL Server to execute code only when something is selected. Is it possible? Or can SQL Server prompt before executing a query? 回答1: If you wrap your code in NOEXEC then you effectively stop the code from running unless you select the code inside them. The code

20s of PAGEIOLATCH_SH on Azure SQL Database with execution plan of 0.06 subtree cost

爷,独闯天下 提交于 2019-12-11 02:47:10
问题 (Azure support is giving vague answers, so I'm turning to Stack Overflow with hope! :)) Situation User complains of timeout errors on a query. I run the same query twice (same parameters) from MSMS. First run takes looong (23s or sometimes 50s), second, third, etc. runs take <1s. Execution Plans are identical and have a subtree cost of 0.0671.. The difference I do notice is a WaitStats section in the first Execution Plan with the following values: WaitCount: 2751 WaitTimeMS: 6 WaitType:

ASP.NET Universal Providers and Session State

穿精又带淫゛_ 提交于 2019-12-11 02:28:22
问题 I'm developing an ASP.NET MVC 4 website and I'm using the Microsoft ASP.NET Universal Providers. I plan to deploy to Windows Azure and use SQL Database. In order to initialize memberships, profiles and roles on my local SQL Server 2008 database, I created a new user via the ASP.NET Web Site Administration Tool. How do I initialize sessions? When my application runs, naturally I get a SqlException saying "Invalid object name dbo.Sessions." When testing on Windows Azure, this wasn't an issue;

Emulate/Simulate SQL Azure Locally?

廉价感情. 提交于 2019-12-11 02:26:11
问题 Slightly OT from regular MS development stuff. I would like to write my next .NET 4.0 app using MSSQL 2008 as the DB, but configure the store and access methodologies in such a way as to be "Azure ready", so when the new fiscal year starts in the summer we can conceivably do something low impact like just change a connection string (I know there would be more to it than that) and we can just use SQL Azure. I did see the stuff at http://www.microsoft.com/en-us/sqlazure/videos.aspx Have any

Configuring Azure db as read-only

跟風遠走 提交于 2019-12-11 02:25:47
问题 Is there a way to configure an Azure sql database as read-only temporarily. In my attempt to create a readonly user, I've ran the following CREATE LOGIN reader WITH password='****' -- successful CREATE USER readerUser FROM LOGIN reader; -- successful EXEC sp_addrolemember 'db_datareader', 'readerUser'; -- failed and the last statement failed with the error Cannot alter the role 'db_datareader', because it does not exist or you do not have permission. 回答1: If you really wanted to add a read

Encrypting data in SQL Server Azure database with separate key for each user's data

这一生的挚爱 提交于 2019-12-11 02:06:55
问题 I'm trying to create a service based on an Azure SQL Database backend. The service will be multi-tenant, and would contain highly sensitive information from multiple "clients" (potentially hundreds of thousands), that must be strictly isolated from one another and secured heavily against data leaks. "by design" Using so many individual databases would not be feasible, as there will be a lot of clients with very little information per client. I have looked into the transparent encryption

How to check whether database user already exists in Azure SQL Database

好久不见. 提交于 2019-12-11 02:05:47
问题 My new client is planning to use Azure managed SQL Database services. I am using dacpac in order to deploy the database. In the dacpac, I have a post-deployment script in order to create a sql user as follows IF NOT EXISTS (SELECT name FROM sys.server_principals WHERE name = 'myusername') BEGIN CREATE LOGIN myusername WITH PASSWORD = '******'; END GO However, it is throwing the following error when I try to apply dacpac in Azure (which is compiled with target platform - Microsoft Azure SQL

It is possible use the same sql azure instance from two different cloud service of two different subscription?

徘徊边缘 提交于 2019-12-11 01:56:19
问题 I have one Microsoft Azure subscription with one cloud service and one sql azure instance. Now I want create another cloud service with a different subscription (using a different microsoft account). With this second cloud service, can I use the same sql azure instance of the first subscription? (I need to share data between the two cloud service) Or there may be performance issues? Thanks in advance 回答1: Yes. Azure SQL DB instance can be accessed from different subscription as long as you

Execute Stored Procedure in Azure Logic App - Bad gateway error

痴心易碎 提交于 2019-12-11 01:47:13
问题 When I execute the stored procedure from logic app designer, I'm getting bad gateway error. The stored procedure which I'm trying to call create procedure test as select * from testable test table contains 100000+ rows. The results of stored procedure are placed in Blob/FTP. error Duration: 0s Start time: 2017-08-11T17:37:57.8096605Z End time: 2017-08-11T17:37:58.0909952Z Status: BadGateway Can anyone please help me? 来源: https://stackoverflow.com/questions/45650565/execute-stored-procedure-in