azure-sql-database

how to schedule a stored procedure in AZURE

好久不见. 提交于 2019-12-03 14:17:51
I have a stored procedure that I want it to run in every mid nigh but my data base is in aZure How can I schedule a task using sql agent? Azure Automation: Your SQL Agent in the Cloud: https://azure.microsoft.com/en-us/blog/azure-automation-your-sql-agent-in-the-cloud/ make a small powershell script and schedule it in the azure dashboard. You can use Azure Web Job and create a console App that just call your stored procedure and schedule it to run every mid night. Here's a sample of how to use Azure Web Job: https://azure.microsoft.com/en-us/documentation/articles/web-sites-create-web-jobs/

How to use SqlAzureExecutionStrategy and “Nolock”

╄→гoц情女王★ 提交于 2019-12-03 13:07:07
To deal with SQL timeouts I'm trying to use SqlAzureExecutionStrategy ( https://msdn.microsoft.com/en-us/data/dn456835.aspx ) The problem I am running into is it prevents "user initiated transactions" which seem to be the recommended way to implement "with (nolock)" in EF ( http://www.hanselman.com/blog/GettingLINQToSQLAndLINQToEntitiesToUseNOLOCK.aspx , NOLOCK with Linq to SQL ). example code public AspnetUser GetAspnetUserByUserName(string userName) { using (var tx = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions() { IsolationLevel = IsolationLevel

How do i run aspnet_regsql on sql azure? [duplicate]

给你一囗甜甜゛ 提交于 2019-12-03 12:52:27
This question already has answers here : Migrating ASP.NET Membership Database to SQL Azure (3 answers) Possible Duplicate: Migrating ASP.NET Membership Database to SQL Azure How do I run aspnet_regsql on sql azure database? I made it work the hard way, by exporting all db objects over. However, I seriously believe that there's an easier way. Please help. AvkashChauhan When you run aspnet_regsql on sql azure database, the error occurs only because SQL Azure does not support the USE statement to switch database contexts when it executes commands against SQL Azure databases. To work around this,

Connect to SQL Azure containing backend for MS Access Web App

大城市里の小女人 提交于 2019-12-03 12:32:42
问题 Ok not sure what to enter in the subject line so apologies if it stands unclear. I created a simple web app using MS Access 2013. It simply had one table with sample data in it. The I launched it to my share point. Before we go ahead, I would like to tell you that I am using Office 365 enterprise version where we need to admin everything like Lync/SharePoint/Exchange etc. So as per Microsoft blogs and articles and discussions all over, and even the following screenshot suggests that the data

SQL Azure and Indexes

半腔热情 提交于 2019-12-03 12:22:05
is that true that SQL Azure rebuilds / reorganizes index automatically? We have a database on Sql Azure and experiencing performance degradation and I suppose this is a urban-legend. Can you help me? Thanks, Marco SQL Azure does not rebuild indexes automatically while the statistics are updated automatically. If you have a specific reason to force the rebuild it, you have to directly issue the command. This nice post helps you create a script to dynamically rebuild all indexes in a SQL Azure db . Sql Azure offers few nice amenities with it, as follows: Intelligent Performance Performance

Why is SQL Server Object Explorer in Visual Studio so slow?

断了今生、忘了曾经 提交于 2019-12-03 11:40:03
问题 I just created a new SQL Server Database in Azure and then opened it in Visual Studio 2015 using the link in the Azure Portal. I had to add my IP to the firewall but otherwise the process went smoothly. However, when I am trying to interact with the database server via SQL Server Object Explorer it is painfully slow. Expanding any of the folders in my Database (e.g., Tables folder) takes 10 to 30 seconds. The database is brand new, so the only things it has are whatever Azure creates when it

Create an new administrator level login in Azure SQL?

好久不见. 提交于 2019-12-03 11:07:28
I need to replace my old admin login/user with a new one. I tried the following: CREATE LOGIN newDbAdmin WITH password='123isTheBestPasswordEver' CREATE USER newDbAdmin With this I'm then also able to log into Azure SQL via Microsoft SQL Server Management Studio. However it doesn't seem to be an admin level login+user. I'm unable to create tables and a few other things that admins can do. I suspect I need to GRANT permissions to certain schemas (dbo?) or something along those lines ... So, what's the right way to create user+login on Azure SQL with the same level of privileges as the original

Azure Tables or SQL Azure?

狂风中的少年 提交于 2019-12-03 10:54:45
问题 I am at the planning stage of a web application that will be hosted in Azure with ASP.NET for the web site and Silverlight within the site for a rich user experience. Should I use Azure Tables or SQL Azure for storing my application data? 回答1: Azure Table Storage appears to be less expensive than SQL Azure. It is also more highly scalable than SQL Azure. SQL Azure is easier to work with if you've been doing a lot of relational database work. If you were porting an application that was already

What is the azure table storage query equivalent of T-sql's LIKE command?

[亡魂溺海] 提交于 2019-12-03 09:35:18
I'm querying Azure table storage using the Azure Storage Explorer. I want to find all messages that contain the given text, like this in T-SQL: message like '%SysFn%' Executing the T-SQL gives "An error occurred while processing this request" What is the equivalent of this query in Azure? There's no direct equivalent, as there is no wildcard searching. All supported operations are listed here . You'll see eq, gt, ge, lt, le, etc. You could make use of these, perhaps, to look for specific ranges. Depending on your partitioning scheme, you may be able to select a subset of entities based on

How to set Azure SQL to rebuild indexes automatically?

限于喜欢 提交于 2019-12-03 09:23:15
问题 In on premise SQL databases, it is normal to have a maintenance plan for rebuilding the indexes once in a while, when it is not being used that much. How can I set it up in Azure SQL DB? P.S: I tried it before, but since I couldn't find any options for that, I thought maybe they are doing it automatically until I've read this post and tried: SELECT DB_NAME() AS DBName ,OBJECT_NAME(ps.object_id) AS TableName ,i.name AS IndexName ,ips.index_type_desc ,ips.avg_fragmentation_in_percent FROM sys