azure-sql-database

How do I add my Azure Sql Server Admin User to 'Sysadmin' Server Role?

送分小仙女□ 提交于 2019-12-25 08:47:54
问题 I'm attempting to migrate a Sql Db from a local server to Azure using the new Data Migration Assistant v2.0 (announced here). It seems to have connected to my source (a local SQL 2014 server, Windows Auth) and destination (Azure V12 SQL, server admin username and password) servers correctly, but gives the following error when attempting to get to the 'Add Database' step. Provided credentials for target server 'fooserver.database.windows.net' have insufficient server-level permissions to

Azure REST API: How to get SQL Server users/admin

穿精又带淫゛_ 提交于 2019-12-25 08:14:02
问题 In the Azure Portal, when navigating to a SQL Server, I can see/edit it's users and AD Admin. Is there a way to get/list all users & admin(s) of SQL Server via API? Looking thru the Azure API Reference I couldn't find any such API. Edit: By SQL Users I mean users set via: By AD Admin I mean the user set via: 回答1: Users: via powershell or via REST - see "List role assignments at a specific scope" AD Administrator: via powershell- see "Provision an Azure AD administrator for Azure SQL Server by

Can't connect Node.js server to Azure SQL Database

拜拜、爱过 提交于 2019-12-25 07:35:33
问题 I'm running a simple Node.js server on Heroku. I've set up an Azure SQL database and I'm just trying to establish a connection to it from the server. I'm using tedious.js to connect. As far as I can tell, I'm following the patterns in the docs, but the connection doesn't go through. This is the code I have (altered username and password). For now, the connect function is called upon a GET request to the "/data" page from my browser, but the page never loads and the connection never goes

how can i synchronize different column's name in 2 differents database tables? [closed]

早过忘川 提交于 2019-12-25 06:44:26
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Hi i would like to sync 2 different database and tables and columns.i created SYNC app. by using a sync framework.it is hosted by azure. also i've read below articles: http://jtabadero.wordpress.com/2011/08/19/part-4-synchronizing-tables-with-different-table-names-and-column-names/ http://www

SQL Server Express equivalent for EXTERNAL DATA SOURCE

不打扰是莪最后的温柔 提交于 2019-12-25 05:13:13
问题 As per https://azure.microsoft.com/en-us/documentation/articles/sql-database-elastic-query-getting-started-vertical/, it is now possible for one database in Azure SQL to query other Azure SQL databases. For my use case, I plan to have one database serving reference data for other databases, which fits nicely to Topology 1 (vertical sharding). This is great for a deployed environment, but for local development I typically develop using SQL Server Express. As of SQL Server 2012 Express, the

Entity Framework and inconsistent performance with processing the results of a query

混江龙づ霸主 提交于 2019-12-25 04:29:09
问题 Just setup New Relic on our site and we noticed some odd spikes in one of our webapi calls. At this point I have the problem boiled down to a single EF query that I moved out to its own method so I could use New Relic to instrument it.. The only thing the method does is //I changed this from ToListAsync to ToList to see if it would help var result = Context.Data.Where(x=> x.id = id).ToList(); return result; That's it.. Using New Relic and also logging out all the SQL queries I'm fairly

Site down: error log pattern of login failure x20, then invalid object name x20, then again login failure x20

孤街醉人 提交于 2019-12-25 03:26:34
问题 Our Orchard CMS with multi-tenancy just went down. We have since brought it back online by restoring a version of the database, and then recycling the application pool. Communicating with the restored database continued to fail until we recycled the app pool. The post-mortem analysis of the error log from yesterday had zero errors, and the error log from today has about forty errors with the following pattern: About 20 SqlException errors reporting "invalid login" for two of the tenant

Loading ORC Data into SQL DW using PolyBase

时间秒杀一切 提交于 2019-12-25 02:57:31
问题 I am trying to load ORC file format via PolyBase but I am facing below problems. Problem:1 I have a CSV file which below code converts the csv file to ORC format but its selecting data from permanent table. If I remove "as select * from dbo.test" then create external table is not working. Permanent table contains 0 record. create external table test_orc with ( location='/TEST/', DATA_SOURCE=SIMPLE, FILE_FORMAT=TEST_ORC ) as select * from dbo.test ---Permanent Table Problem:2 If I select the

Retrieve FQDN of Azure SQL from a linkted template

我们两清 提交于 2019-12-25 01:56:08
问题 I'm looking for a valid property to retrieve FQDN of a managed Azure SQL server from a deployment of linked template. The one below seems not to be valid [reference(variables('sqlDeployment')).outputs.fullyQualifiedDomainName.value]" and where can I find all supported parameters? It seems to be challenging to find enough info from Microsoft Docs. 回答1: Looks like your linked template did not have an output property named as 'fullyQualifiedDomainName'. To get an output value from a linked

Azure App Service can't access SQL Server - Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'

寵の児 提交于 2019-12-25 00:15:11
问题 I have an app service in Azure operating as an API for a system I'm designing. As the API is responsible for accessing the database directly, I obviously don't want to be storing connection strings containing credentials anywhere if possible, so am looking to use Managed Identities to grant the App Service access to the database (also hosted on Azure). Within the Azure portal, I've enabled System-Assigned Identity within the Settings section of the App Service, then given the service the role