azure-sql-database

Azure SQL server max pool size was reached error

ぐ巨炮叔叔 提交于 2019-12-05 10:23:41
We have azure sql server, while connecting more than 40 concurrent users we getting below error. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. While doing the load test we getting the error.we directly executing a stored procedure using a tool([ http://www.datamanipulation.net/sqlquerystress/][1] ). For a single user stored procedure will return the result in 1 sec. Hardware details for azure is Standard SERVICE TIERS and s2(50DTU) PERFORMANCE LEVEL.

Automated Export Failed

爷,独闯天下 提交于 2019-12-05 10:15:27
As admin for an Azure subscription I am getting emails reporting: Automated SQL Export failed for {server:database} at 9/5/2013 12:00:11 AM. The temporary database copy to export from could not be made. I deleted this server, without explicitly removing the automated export configuration. First question: how do I tell Azure to stop trying to do the export? Second question: newbie mistake (if so please let me know what I failed to do) or bug? Thanks! Terence Siganakis I believe that this might be because the schema of the database has changed, which has resulted in an object (stored procedure,

tSQL to set up user with View Definition permission on SQL Azure

跟風遠走 提交于 2019-12-05 09:31:14
I'm trying to export a SQL Azure database to a .bacpac file using the Azure portal. The administrator username on my database contains a * . When I use it in the username field I get this error. The login name must meet the following requirements: It must be a SQL Identifier. It cannot be a system name, for example: - admin, administrator, sa, root, dbmanager, loginmanager, etc. - Built-in database user or role like dbo, guest, public, etc. It cannot contain: - White space like spaces, tabs, or returns - Unicode characters - Nonalphabetic characters ("|:*?\/#&;,%=) It cannot begin with: -

Create a linked server in SQL Azure database [duplicate]

自作多情 提交于 2019-12-05 09:13:49
This question already has answers here : I need to add a linked server to a MS Azure SQL Server (5 answers) Closed 3 years ago . We have using two databases that is used for cross database queries.One is named azureDB1 and another is azureDB2.These databases resides on my Azure cloud SQL Server.Our scenario is to call a stored procedure that resides in azureDB2 from azureDB1.For this we have tried to create a linked server using "sp_addlinkedserver" stored procedure.But we got error message that "Could not find stored procedure 'SP_ADDLINKEDSERVER'". We need solution for create linked server

Entity Framework Database Initialization: Timeout when initializing new Azure SqlDatabase

倖福魔咒の 提交于 2019-12-05 08:51:24
I have an ASP.NET MVC application. When a new customer is created via CustomerController I run a new background task (using HostingEnvironment.QueueBackgroundWorkItem ) to create a new Azure SqlDatabase for that customer. I use Entity Framework Code First to create/initialize the new database. Here's the code: // My ConnectionString var con = "..."; // Initialization strategy: create db and execute all Migrations // MyConfiguration is just a DbMigrationsConfiguration with AutomaticMigrationsEnabled = true Database.SetInitializer(strategy: new MigrateDatabaseToLatestVersion<CustomerDataContext,

SQL Azure Firewall Rules on New Portal

孤人 提交于 2019-12-05 08:47:55
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 takes you to the new one: https://www.windowsazure.com/en-us/home/features/portals/ Michael Kennedy In the

Azure Online SQL Database Management is Unavailable

瘦欲@ 提交于 2019-12-05 08:07:19
I am trying to host a sql server on azure to communicate with a node app. I have gone through the process of creating the database server and the database itself successfully. Now, I would like to edit my database structure. From what I have found online , there should be a way to access the database through the management portal with Azure. Every tutorial and other piece of advice I have found (including the MSDN page linked), has instructed me to find the online db management software by clicking a "manage" button on the page that displays my db. However, when I navigate to the proper page,

Is it possible to get Identity Field value before saving it in entity framework

荒凉一梦 提交于 2019-12-05 07:56:30
I have a customer and sales table CUSTOMER -------------- Id (int auto increment) Name SALES --------------- Id (int auto increment) CustomerId (int) OrderTotal (decimal) With Guid i can do this. dbTransaction = dbContext.Database.BeginTransaction(isolationLevel); var customer = new Customer() { Id = Guid.NewGuid(), Name = "John Doe" }; var sales = new Sales() { Id = Guid.NewGuid(), CustomerId = customer.Id, OrderTotal = 500 }; dbContext.SaveChanges(); dbTransaction.Commit(); How can i do this if my primary key is int (with DatabaseGeneratedOption.Identity)? You cannot. The ID that goes into a

Error Installing pymssql on Mac OS X Yosemite

两盒软妹~` 提交于 2019-12-05 07:03:46
I receive the following error when installing pymssql on OS X Yosemite 10.10.3 - has anyone gotten around the following error? I am using FreeTDS (v0.91.112) version 7.1 and Python 2.7.6 - the tsql utility connects to a SQL Database with no issue. sudo pip install pymssql Error : Command "/usr/bin/python -c "import setuptools, tokenize; __file__='/private/tmp/pip-build-T5Usla/pymssql/setup.py'; exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-uZGqK4-record/install- record.txt --single-version-externally-managed -

Azure Function execution speed is extremely slow and inconsistent

余生长醉 提交于 2019-12-05 06:12:51
I am writing few Azure Functions script that reads and write from/to an internal database and display relevant information into a webpage. I noticed extreme slowness or even timeout in the web UI when loading the web page which calls the Azure Function script. After further investigation, I realized that the following: Azure Function scripts sometimes takes anywhere between 10 seconds to more than 1 minutes to connect to SQL database. Sometimes the scripts will run in few millisecond and sometimes it will take more than 3 minutes to completely run the script. Here is my Azure Function script: