azure-sql-database

Error deploying to SQL Azure using EF 6 alpha3 Code First and Migrations creating __MigrationHistory table

浪尽此生 提交于 2019-12-14 01:32:09
问题 I'm using EF 6 alpha 3 code first. When I try to create the database on SQL Azure running the Update-Database command I get the following error: Tables without a clustered index are not supported in this version of SQL Server. Please create a clustered index and try again. I tracked down the error to the __MigrationHistory table creation sql command. CREATE TABLE [dbo].[__MigrationHistory] ( [MigrationId] [nvarchar](255) NOT NULL, [ContextKey] [nvarchar](512) NOT NULL, [Model] [varbinary](max

VSTS Build Task that runs script on multiple shards

不打扰是莪最后的温柔 提交于 2019-12-13 22:13:22
问题 We use Azure SQL Databases, and have a "shard" structure using the Elastic Library. We are starting the transition over to Visual Studio Team Services and want to use their Build and Release process to deploy to development and production environments. Is there a build task that will execute a SQL script on all our shards (ensuring that it runs successfully and follows some retry conditions). The scripts will be idempotent. Bonus points if we can also have a task that will generate the SQL

SQL Azure Schema Issue

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 22:05:48
问题 I'm getting an email regarding a Schema Issue on my SQL Azure Database and it reads something like this: "Invalid column name 'False'" Error code : 207 However it doesn't appear to have any more information and I wouldn't even know where to start because the schema was created before I started in the project, but I suspect this is coming from a Stored Procedure or View. This is all being reported in Azure Portal, but I have no idea how to proceed. Is there any other way to get the suggestions

Azure sql server backup to Azure blob - CherrySafe replacement

风流意气都作罢 提交于 2019-12-13 19:22:32
问题 I am new to Azure SQL server and trying to understand how do I backup Azure SQL databases to Azure blob few times a day. My company is currently using [Cherry Safe][1] to backup Azure SQL Databases but Cherry Safe is shutting down in 2 weeks. As I read more about it, it seems like I can configure export to Azure blob but I do not see that option. I see history of exports but I do not know where is the configuration to schedule or change it. For long term retention, I see an option to

Azure with Azure SQL Server: ArgumentException: Value does not fall within the expected range

核能气质少年 提交于 2019-12-13 19:08:59
问题 Never seen this on our local servers, but after deploying the MVC4 application and the SQL Server database to Azure we sometimes get the following exception, how to tackle this problem? [ArgumentException: Value does not fall within the expected range.] System.Transactions.Oletx.IDtcProxyShimFactory.ConnectToProxy(String nodeName, Guid resourceManagerIdentifier, IntPtr managedIdentifier, Boolean& nodeNameMatches, UInt32& whereaboutsSize, CoTaskMemHandle& whereaboutsBuffer,

Why is my MVC 5 application trying to access Local DB

风流意气都作罢 提交于 2019-12-13 17:09:09
问题 I have been developing an MVC 5 application on my local machine, and having just tried to public a test version to Azure, I have found this new error. My connection strings have no reference to a LocalDB, and I can't find anything in my code that wants to create or access a LocalDB. Yet I am receiving an error related to an attempt to create/access localDB: The connection string specifies a local Sql Server Express instance using a database location within the application's App_Data directory

pymssql on Windows can connect to local SQL Server but not to Azure SQL

空扰寡人 提交于 2019-12-13 15:54:38
问题 Trying to connect to an Azure SQL DB (v12) using pymssql, I am able to connect query and write to my local MSSQL instance using pymssql. I am getting an "Adaptive Server connection failed" failed error and my research seems to point to FreeTDS, but I have not installed FreeTDS on my machine. Using the tsql utility, i am able to connect to the Azure SQL instance Why would I fail to connect using pymssql? pymssql connection string import pymssql conn = pymssql.connect(server='<severname>

SQL Azure SPLIT AT Backend Process and Resource Throttling

放肆的年华 提交于 2019-12-13 15:52:20
问题 When the SPLIT AT command is issued, the database is split into 2 new federated members. Will these 2 members sit on the same server? will they have the same amount of I/O, CPU resources? If the application will have to grow to 50 members, is there anything else needed aside from SPLIT AT command to scale out? Will these 50 members be split across multiple servers? Is there a separate SQL Azure Server account needed for this operation? What are the quantifiable limits when the Resource

How to copy SQL Azure schema to another SQL Azure database? [closed]

送分小仙女□ 提交于 2019-12-13 15:47:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I have developed/managed my dev database in SQL Azure, but I can't figure out how to copy the schema of my dev SQL Azure database so I can upload it to my production SQL Azure database? I have heard of other third party tools, but is this the best way? If so, what is a good tool to use for this? 回答1: http:/

How do you set up a foreign key in SQL Azure?

邮差的信 提交于 2019-12-13 13:24:10
问题 How do you set up a foreign key in SQL Azure? I have a database now on the Azure system. The tables in the database have an intended use such that there is one main, logically centralized table and then there are a number of tables which each describe some column in the main table. For example, if I have an age classification column in the main table, I might have a separate table which lists some categories of the age classification (as a string) and some associated index. Then the index