azure-sql-database

Azure SQL Sync between Subscriptions

馋奶兔 提交于 2019-12-24 09:01:38
问题 I have 2 subscriptions which have the same database and they would need to sync the data. Is this posible to achive with Azure SQL Sync. Reason why we have 2 Subscriptions is becouse one of it is customers and other one is clients. If this is not possible what would be the best way to sync 2 databses between azure subscriptions. Azure SQL data sync 回答1: This the answer provided by Microsoft Azure SQL Data Sync team: Thanks for contacting us. We do support sync databases across subscriptions.

Unable to publish DACPAC to Azure SQL Database using sqlpackage.exe

℡╲_俬逩灬. 提交于 2019-12-24 08:25:47
问题 When trying to apply a DACPAC to an Azure SQL Database I'm getting the following from sqlpackage.exe: *** An error occurred during deployment plan generation. Deployment cannot continue. The Element or Annotation class SqlDatabaseOptions does not contain the Property class CatalogCollation. I've managed to use VS2017 with SSDT to create a package and then deploy it to another database using the SQL Server Object Explorer but it fails when I use sqlpackage.exe found in C:\Program Files (x86)

Azure SQL maintenance

人盡茶涼 提交于 2019-12-24 07:38:23
问题 Im currently working with a quickly growing Azure SQL database. As I've read here and Microsoft docs that there is no SQL Server Agent to schedule tasks such as rebuilding indexes. My question is what is the best practice for setting up some sort of maintenance and whats the best way to rebuild the indexes without pegging the DB or making the table unavailable? Rebuilding indexes on some of these tables are freeing 5 - 30GBS of space depending on size, but taking the table offline. 回答1: you

Azure Search Service - Import from SQL Server on Azure VM failing ('Data source payload should specify at least one of datasource name and type)

一个人想着一个人 提交于 2019-12-24 06:58:16
问题 I'm attempting to add a new data source from a SQL Server on Azure VM for a search service and indexer I'm creating through the Azure web portal. It's my understanding that I can create an index, import this data, then create an indexer to regularly push data to the index. I'm adding the connection string for our SQL Server and getting a successful message when clicking "Test Connection". The tables show up in a drop-down list, and I select one. When I click "OK" on creating the new data

Retrieve data from Azure HDInsight with PySpark

空扰寡人 提交于 2019-12-24 05:04:57
问题 I have the credentials and the URL for access to an Azure database. I want to read the data using pyspark but I don't know how to do it. Is there a specific syntax to connect to an Azure database? EDIT After I used the shared code I received this kind of error, any suggestion? I saw that in a sample that i have on the machine they use ODBC driver, maybe this is involved? 2018-07-14 11:22:00 WARN SQLServerConnection:2141 - ConnectionID:1 ClientConnectionId: 7561d3ba-71ac-43b3-a35f-26ababef90cc

Which DB driver to use DbVisualiser with Azure SQL?

人盡茶涼 提交于 2019-12-24 04:03:31
问题 I have earlier used Microsoft SQL Server Management Studio here with Azure SQL here but I want to try DbVis (a platform independent alternative). I am trying DbVis in OSX. I could find JDBC driver for SQL Server here but not sure whether this required to use DbVis with Azure SQL in OSX. Which driver do I need to select to connect to the Azure SQL in DbVis? Trial 1. Error with admin credentials The settings are Server name myDB.database.windows.net as Database URL Azure SQL admin as Database

SQL Server Integrated Security from an Azure Web Site

懵懂的女人 提交于 2019-12-24 03:43:24
问题 When running an ASP.Net website on IIS I can specify the Active Directory (AD) username that the website runs in the context of in the App Pool settings. I can then create a connection string with Integrated Security = true to access my database. It's then possible to secure DB resources based on that AD user. Is this possible in Windows Azure when connecting a Web Site to a VM hosting an SQL database? Firstly it does not seem possible to specify the virtual network of the Web Site so I am

make a backup for azure database

断了今生、忘了曾经 提交于 2019-12-24 03:15:01
问题 I need to make a backup to my azure database, I'm trying with this command: "C:\Program Files\Microsoft SQL Server\120\DAC\bin\SqlPackage.exe" /Action:Export /SourceServerName:"tcp:MyDataServer.database.windows.net,1433" /SourceDatabaseName:MyDatabase /SourceUser:MyUser /SourcePassword:MyPass /TargetFile:C:\backups\backup.bacpac but it seems that the format that downloads it is "bacpac" and I need it to be ".bak", I tried to change the extension but says: "The TargetFile argument must refer

Sql Azure: Very slow performance on WITH statement query

谁都会走 提交于 2019-12-24 02:45:24
问题 I'm trying to get my head around the usage of the WITH statement in sql azure. I have an initial query, which then needs to be filtered 2 times. If I just run the initial query, it runs fast. But as soon as I add the additional filters, the query runs so slow it never finishes and azure force closes the connection. So, the first WITH statement, which on it's own runs very quick -> CREATE TYPE BrokerAccountAndTimeType as TABLE ( [BrokerAccountId] [bigint], [TimeUTC] [datetime] ); GO CREATE

Azure error - connection string difficulties

限于喜欢 提交于 2019-12-24 02:14:19
问题 I am working with an mvc5 application in vs 2015. I am getting errors whenever I attempt to access items from the database Login failed for user '{your_username}'. When I go azure portal "allow access to azure services" setting is on with my client Ip address listed. I think my connection string is not configured correctly. I can't figure out how to correctly configure it on my local machine and with azure. I have kept my the connection string in my web config to my local server which worked