azure-sql-database

Does SQL Azure automatically geo-replication automatically failover?

五迷三道 提交于 2020-01-01 09:17:18
问题 We have a geo-replicated database in SQL Azure (Premium) and are wondering if we are pointing to the South Central US database that is the master, if that goes down do we have to manually change our connection strings in our code (C# .Net / Entity Framework 6) to point to the new database in say North US? We are looking for a way to have a single connection string and then Azure do the under the covers to now point to the new database if the master ever goes down. Is that possible? Update on

Azure database concurrent usage issues

让人想犯罪 __ 提交于 2019-12-31 13:30:14
问题 Just wanted to run this by you all to see if there are any bright ideas as I have exhausted all of my ideas after an entire day, night and morning of searching. The issues we’re encountering invariably centre around database connectivity when under concurrent usage (selenium test), e.g. timeouts, dropped/closed connections, database server unreachable. The issue does seem to be restricted to Azure as we’re yet to encounter the issue locally even when running the same selenium test on the same

I need to automate SQL Azure database backup in SQL Script files. How can i do so?

倖福魔咒の 提交于 2019-12-31 09:06:23
问题 Presently i am generating SQL scripts everyday to take the backup of SQL Azure database. I need to automate this process using some freeware. How can i achieve this? Note:- I need to take the backup in form of SQL Script to some local machine. 回答1: Option 1: Run some code/script to backup the database You could run the SQL using the SQLCMD utility. http://msdn.microsoft.com/en-us/library/ms162773.aspx To schedule this, just use the Windows Task Scheduler. http://msdn.microsoft.com/en-us

I need to automate SQL Azure database backup in SQL Script files. How can i do so?

廉价感情. 提交于 2019-12-31 09:04:02
问题 Presently i am generating SQL scripts everyday to take the backup of SQL Azure database. I need to automate this process using some freeware. How can i achieve this? Note:- I need to take the backup in form of SQL Script to some local machine. 回答1: Option 1: Run some code/script to backup the database You could run the SQL using the SQLCMD utility. http://msdn.microsoft.com/en-us/library/ms162773.aspx To schedule this, just use the Windows Task Scheduler. http://msdn.microsoft.com/en-us

SqlCommandBuilder() creates insert/update for underlying tables instead for a view

亡梦爱人 提交于 2019-12-31 01:57:09
问题 I have two schemas, like this: Schema 'data' --> holds tables, and nobody has access to them from outside Schema 'ui' --> holds views which are accessibly from outside; the idea is that you can select/delete/update/insert on these views. Thus, I am doing ownership chaining. For example: create table data.tblTest (TestKey int not null primary key); create view ui.vwTest as select * from data.tblTest; Now, if I connect as a user with SQL Studio, everything is OK: select * from ui.vwTest; --

Design in Query Editor disabled for Azure databases

大城市里の小女人 提交于 2019-12-31 01:43:08
问题 When I try to manage an Azure Database query in SQL Managements Studio 2012 I see that the "Design in Query Editor" option is disabled. It is enabled for other databases but not for Azure. Is there a way to enable it? Thanks 回答1: Unfortunately, this is a by design issue. Not all SSMS functionality from on-premise SQL Server is supported when connected to Azure SQL database, "Design Query in Edit" greys out because it's not supported for azure sql database. For more information, please refer

SQL Azure VIEW DATABASE STATE permission denied in database 'master'

血红的双手。 提交于 2019-12-30 20:35:27
问题 When I execute the following query: SELECT * FROM sys.dm_io_virtual_file_stats(NULL, NULL) I get the error: Msg 262, Level 14, State 1, Line 4 VIEW DATABASE STATE permission denied in database 'master'. Msg 297, Level 16, State 1, Line 4 The user does not have permission to perform this action. But I able to execute this query using the provisioned (by SQL Azure portal) administrator user. I am unable to GRANT VIEW DATABASE STATE for master (using the provisioned administrator user) to any of

SQL Azure VIEW DATABASE STATE permission denied in database 'master'

試著忘記壹切 提交于 2019-12-30 20:31:13
问题 When I execute the following query: SELECT * FROM sys.dm_io_virtual_file_stats(NULL, NULL) I get the error: Msg 262, Level 14, State 1, Line 4 VIEW DATABASE STATE permission denied in database 'master'. Msg 297, Level 16, State 1, Line 4 The user does not have permission to perform this action. But I able to execute this query using the provisioned (by SQL Azure portal) administrator user. I am unable to GRANT VIEW DATABASE STATE for master (using the provisioned administrator user) to any of

SQL Azure doesn't support SqlCacheDependency? is there any replacement for that

北战南征 提交于 2019-12-30 09:45:10
问题 How can I implement the SQL caching dependency while SQL Azure doesn't support SqlCacheDependency. 回答1: The MSDN article Caching in ASP.NET with the SqlCacheDependency Class describes how SqlCacheDependency is implemented. Starting with SQL Server 2005, the SqlCacheDependency class is able to take advantage of SQL Server Service Broker and Query Notifications. Since SQL Server Service Broker was introduced with SQL Server 2005, the implementation of SqlCacheDependency for earlier versions of

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