azure-sql-database

How to connect On-premise database servers to sql azure database server

℡╲_俬逩灬. 提交于 2019-12-08 05:45:46
问题 I have 4 on-premise database server that has to be connected to Sql azure server as linked server.I will be querying these on-premise server from sql Azure database server.As far as I checked online I get the answer as it is not supported in Azure. Kindly advice on the same. 回答1: Azure SQL DB is previewing Elastic Database Query feature at this point in time that will help you query from Azure SQL DB to other DBs. You can get detailed information about the feature here. 来源: https:/

How to add a sql database to an elastic pool programmatically?

拈花ヽ惹草 提交于 2019-12-08 05:44:05
问题 I have the following console application which creates a ShardManagerDB and creates one database for each company on the main database. I can see on azure the databases created on the server however they are not on the elastic pool. Question: 1. Is this doable with the current API? 2. If not, what are other recommended approaches? using System.Data.SqlClient; using mynm.Data; using System.Linq; using mynm.Models.GlobalAdmin; namespace mynm.DbManagementTool { class Program { static void Main

Azure SQL Database connection exception (System.Data.SqlClient.SqlException is thrown )

▼魔方 西西 提交于 2019-12-08 05:18:45
问题 I'm working on an ASP.NET MVC project and I started from scratch. I just want to use the SQL database hosted on Azure in my project. System.Data.SqlClient.SqlException (0x80131904): Login failed for user 'myname'. This session has been assigned a tracing ID of '00dbcf81-35eb-4d92-b022-da1bca001e5f'. Provide this tracing ID to customer support when you need assistance. What I did: I set up the web.config connection string using the one Azure Management Portal provided. I copied and pasted

Error connecting to SQL Azure Database

会有一股神秘感。 提交于 2019-12-08 05:06:30
问题 The below error occurs often. I wonder if anyone has ever experienced this or what would be the reason? I use Entity Framework 4.0 and. NET 4.0 and Visual Studio 2010 and Windows Azure SDK 1.7 and 2.0. Below is the connection string: <add name="MyEntities" connectionString="metadata=res://*/Model.ModelMy.csdl|res://*/Model.ModelMy.ssdl|res://*/Model.ModelMy.msl; provider=System.Data.SqlClient; provider connection string=" data source=myserver.database.windows.net; initial catalog=MyDatabase;

Azure - Data not showing on Easy Tables

爷,独闯天下 提交于 2019-12-08 04:46:18
问题 I am using an Azure SQL back-end for my Xamarin mobile application. I am using Easy tables with Node.JS to handle my back-end. I have created a few tables using the easy tables creation wizard, but now I wish to manually migrate some of my old MySQL tables, such as my table named users from another database into my new Azure SQL database. 1) I have used the SqlMigration3 tool to convert the MySQL tables into Azure SQL, changed the schema to be the same as the Easy Table's schema, and they are

Can I send array of parameter to store procedure?

安稳与你 提交于 2019-12-08 04:16:13
问题 This question was migrated from Server Fault because it can be answered on Stack Overflow. Migrated 8 years ago . I have User table, it has UserId uniqueidentifier , Name varchar and IsActive bit . I want to create store procedure to set IsActive to false for many user, for example, if I want to deactive 2 users, I want to send Guid of those users to store procedure (prefer as array). I want to know how can I do it? P.S. I'm working on Microsoft SQL Azure 回答1: Along the same lines than Elian,

Failed to generate scripts for Sql Azure database: “Getting the list of objects from : failed”

不羁岁月 提交于 2019-12-08 03:17:31
问题 I follow http://msdn.microsoft.com/en-us/library/ee621790.aspx instructions and on get the following error: Getting the list of objects from 'MYDBNAME'. Failed Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> Microsoft.SqlServer.Management.Sdk.Sfc.InvalidVersionEnumeratorException: Operation not supported on version 11.0 SqlAzureDatabase. at Microsoft.SqlServer.Management.Smo.XmlReadDoc.LoadFile(Assembly a, String strFile) at Microsoft

Creating Collection in Azure Search Service using Indexer

纵饮孤独 提交于 2019-12-08 02:41:47
问题 I am using indexer to sync data from my SQL Database to Azure Search Service. I have a field in my SQL View, which contains XML data. The Column contains a list of string. The corresponding field in my Azure Search Service Index in a Collection(Edm.String). On checking some documentations, I found that Indexer does not change Xml(SQL) to Collection(Azure Search). Is there any workaround as to how I can get create the Collection from the Xml data? p.s I am extracting the data from a View, so I

Union can't be translated to SQL

做~自己de王妃 提交于 2019-12-08 02:34:25
问题 I'm using EFCore 2.2.3 and I have disabled local evaluation. I have the following queries var query1 = companyContext.Companies.Where(c => c.Name == name); var query2 = companyContext.Companies.Where(c => c.Id == 10); If i execute them on their own they work correctly. await query1.ToListAsync(); await query2.ToListAsync(); But if i try to var result = await query1.Union(query2).ToListAsync(); i get the following error: InvalidOperationException: Error generated for warning 'Microsoft

Change the connection string dynamically (per request) on Entity Framework 7 / MVC 6

半世苍凉 提交于 2019-12-08 02:14:41
问题 I have a MVC 6 application on which I need to connect to a different database (i.e. physical file but same schema) depending on who is accessing to it. That is: each customer of the web application will have it's data isolated in an SQL database (on Azure, with different performances, price levels, etc.) but all those databases will share the same relational schema and of course, the Entity Framework context class. var cadConexion = @"Server=(localdb)\mssqllocaldb;Database=DBforCustomer1