azure-sql-database

Transactional Access of Azure Blob Storage

北城以北 提交于 2019-12-18 20:48:28
问题 I would like to store files in Azure Blob Storage. So far so good. I also would like to store addtional meta-data about the file; for that I use a Azure SQL Database (so I can easily query for files on the blob storage). So when I add a new file to the store I would like to make sure, that the blob as well as the meta-data was successfully written. So using something like a transaction-context comes to my mind. Is there any way, to create such a transaction-context using blob storage as well

Not able to do cross database query in SQL Azure

偶尔善良 提交于 2019-12-18 16:16:13
问题 I have 2 DB on same SQL Azure server and i have same table(TB1) on both DB, now i want to read data from TB1 of DB2 and insert data into TB1 of DB1. I am using below query but getting error. insert into TB1 select 1,* from [DB2].dbo.TB1 Error Message Msg 40515, Level 15, State 1, Line 16 Reference to database and/or server name in 'DB2.dbo.TB1' is not supported in this version of SQL Server. 回答1: Yes, you can use the Elastic Query Features on SQL Azure.It's the only way you can perform the

SSMS - SQL Azure v12 preview - unknown property IsNativelyCompiled

☆樱花仙子☆ 提交于 2019-12-18 13:54:23
问题 When I try to view stored procedures in a SQL Azure database (V12 preview) in Management Studio (2014) I get the following error. TITLE: Microsoft SQL Server Management Studio Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&LinkId=20476 ------------------------------ ADDITIONAL INFORMATION: unknown property IsNativelyCompiled (Microsoft.SqlServer.Management.Sdk.Sfc) For help,

Simple select count(id) uses 100% of Azure SQL DTUs

梦想的初衷 提交于 2019-12-18 13:05:36
问题 This started off as this question but now seems more appropriately asked specifically since I realised it is a DTU related question. Basically, running: select count(id) from mytable EDIT: Adding a where clause does not seem to help. Is taking between 8 and 30 minutes to run (whereas the same query on a local copy of SQL Server takes about 4 seconds ). Below is a screen shot of the MONITOR tab in the Azure portal when I run this query. Note I did this after not touching the Database for about

Linux python3 - Can't open lib 'SQL Server'

百般思念 提交于 2019-12-18 12:18:32
问题 I am trying to connect to an Microsoft Azure SQL server database. This is how i am trying to connect: conn = pyodbc.connect('DRIVER={SQL Server};SERVER=%s' % (self.config.get("Sql", "DataSource")), user= self.config.get("Sql", "UserId"), password=self.config.get("Sql", "Password"), database=self.config.get("Sql", "Catalog")) I am getting an error while excuting this line. The error: pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found (0)

Linux python3 - Can't open lib 'SQL Server'

被刻印的时光 ゝ 提交于 2019-12-18 12:18:12
问题 I am trying to connect to an Microsoft Azure SQL server database. This is how i am trying to connect: conn = pyodbc.connect('DRIVER={SQL Server};SERVER=%s' % (self.config.get("Sql", "DataSource")), user= self.config.get("Sql", "UserId"), password=self.config.get("Sql", "Password"), database=self.config.get("Sql", "Catalog")) I am getting an error while excuting this line. The error: pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'SQL Server' : file not found (0)

implementing out-of-process cache using Redis in windows azure

拈花ヽ惹草 提交于 2019-12-18 11:36:22
问题 I've been working on a webpage that displays a table from a database I have in my azure cloud. In order to reduce calls to the DB directly for performance improvement I would like to build a cache for the page. Currently, I hold an in-memory cache (in-process) for the reads of the table. Now I would like to make an out-of-process cache, that should be updated from when writes are made, meaning inserts or updates (because after a value is updated or added, the in-memory cache will be no longer

Handshake exception occurring when connecting to SQL Server Azure with .NET 4.5

北战南征 提交于 2019-12-18 11:35:26
问题 So I opened up some code that hasn't been touched in about 2 months. Last time I opened the application all unit tests passed. Now with no code changes all my data unit tests fail with the following error: Initialization method PerTrac.Pictor.Data.Test.RequestLogRepositoryShould.CreateLog threw exception. System.Data.EntityException: System.Data.EntityException: The underlying provider failed on Open. ---> System.Data.SqlClient.SqlException: A connection was successfully established with the

SQL Azure Profiling

旧街凉风 提交于 2019-12-18 11:00:25
问题 I read on the MS site that SQL Azure does not support SQL Profiler. What are people using to profile queries running on this platform? 回答1: I haven't got too far playing around with SQL Azure as yet, but from what I understand there isn't anything you can use at the moment. From MS (probably the article you read): Because SQL Azure performs the physical administration, any statements and options that attempt to directly manipulate physical resources will be blocked, such as Resource Governor,

Autoscaling Azure SQL Database

為{幸葍}努か 提交于 2019-12-18 10:39:25
问题 We have an application that uses Azure SQL for the database backend. Under normal load/conditions this database can successfully run on a Premium 1 plan. However, during the early morning hours we have jobs that run that increase database load. During these few hours we need to move to a Premium 3 plan. The cost of a Premium 3 is about 8 times more, so obviously we do not want to pay the costs of running on this plan 24/7. Is it possible to autoscale the database up and down? Cloud services