azure-sql-database

Import a database using AzureRM Powershell

…衆ロ難τιáo~ 提交于 2019-12-13 02:18:55
问题 There is a document named Import a BACPAC file to create a new Azure SQL database using PowerShell that covers how to import a bacpac file into SQL server under ASM. Is there a way to import a bacpac file into an Azure SQL Server using Azure Resource Management cmdlets. Following on from @juvchan answer I have been trying to get the following to work. $update = @{ "operationMode" = "Import" "storageKey"= "Key" "storageKeyType" = "Primary" "administratorLogin"= "adminlogin"

Azure Mobile Services with Existing Database (without Schema changes)

陌路散爱 提交于 2019-12-13 01:58:55
问题 As a disclaimer I warn that there may be malformed understandings going on here, hopefully not, but maybe. The Situation: There is an existing Windows VB Timesheet Application that deploys on customers Windows devices (not RT). This application creates a local SQL express store and synchronises with an Azure SQL DB via SQL data sync. The Azure SQL DB further sychronises with a master DB (also via SQL data sync) that is stored locally where I am contracted, the master data is typically only

How to truncate SQL database on Microsoft Azure periodically

£可爱£侵袭症+ 提交于 2019-12-13 00:47:52
问题 I have a SQL database running on Microsoft Azure. To preventing it from getting too big, I have to truncate it periodically (e.g., a day or two). truncate table xxx is the SQL that I need to execute. So what is the easiest way to achieve this? I prefer not writing any C# code unless I have to do so. Can I use a web job which continuously running a truncate SQL statement? Or can I use a built-in functionality of SQL database on the Azure to achieve this? Thanks! 回答1: SQL Azure does not yet

How can I connect to my SQL Azure-database using Microsoft Silverlight?

时间秒杀一切 提交于 2019-12-13 00:36:45
问题 I have a database online at Windows Azure. I want to connect to the database and show some tables in Microsoft Silverlight. I have created a Silverlight Application and published the website on Azure here! How do I connect to my SQL Azure database in Silverlight? 回答1: The same way as connecting to any other database! Personally, I use EntityFramework and create my own service. You can use EF and use RIA Services to create a lot of code for you though if you prefer. Add an Entity Model to your

Azure SQL - Login failed for user

99封情书 提交于 2019-12-12 20:28:48
问题 I am using a free azure subscription, have set up an SQL server (v12) and created a database onto it. However i cant seem to log in using the server admin credentials that i set when prompted during the SQL server credentials. Management Studio returns: Cannot connect to <server name>...Login failed for user 'mickey' SQLCMD -S <servername>.database.windows.net -U mickey@servername -P pass -q "select 1" Returns Sqlcmd: Error: Microsoft ODBC Driver 11 for SQL Server : Login failed for user ' Is

Azure SQL Database - Elastic Query to Azure VM SQL instance - SSL error

房东的猫 提交于 2019-12-12 16:15:13
问题 I need to connect from an Azure SQL Database to an Azure VM that has a SQL Server instance installed. Since linked servers are not supported by Azure SQL Databases, I went with the elastic query approach. I managed setting up the EXTERNAL DATA SOURCE and allowed connections on port 1433 but when executing the most simple query I get the following error message: "Error retrieving data from one or more shards. The underlying error message received was: 'A connection was successfully established

Can't connect to azure sql via ssms

孤街浪徒 提交于 2019-12-12 13:54:12
问题 I'm trying to connect Azure's SQL database via SQL Server 2008 R2 SP2. I'm using Azure with free trial subscription. I already search everywhere and tried these things: Allow inbounds and outbounds rule in windows firewall for port 1433 Check that TCP connections in SQL Server Configuration Manager is available and running on port 1433 Create server and database on azure portal and configure its ip allowance I connect with these settings Server Type: Database Engine Server Name: tcp:aaa

Token-based database authentication fails with “Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.”

折月煮酒 提交于 2019-12-12 13:10:51
问题 I'm having trouble getting token-based database authentication working. Connecting with Active Directory Password works, but when connecting with a token I receive the following error: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. This problem has been discussed here on Stack Overflow and here on MSDN, but no solution is available. This blog post suggests there is something wrong with user permissions, but it's rather vague. Configuration Acquiring a token succeeds, with the following

SQL Azure slow performance

不打扰是莪最后的温柔 提交于 2019-12-12 13:06:06
问题 While transforming some data to SQL Azure, I have noted an unexpected behavior. I did a quick test and this is the result: I have a single table in the DB with 1M records and the DB size is 230MB, this without the non-clustered index. I did a simple test by creating a new table with the same schema and just copied the data from one table to another like this: INSERT INTO [dbo].[lete_new] ([str_en] ,[str_en_fp]) SELECT [str_en] ,[str_en_fp] FROM [dbo].[lete] First of all, on me local

How secure is Azure SQL connection?

感情迁移 提交于 2019-12-12 12:41:11
问题 I am working on WPF app that connects to Azure SQL using EF 6 and defined connection string ( no Web Service to save money on Azure running SQL and Web server ). So my question is how secure is such connection? I have in connection string Encrypt=True ( so I am using SSL ). I am using AD user credentials to connect to DB itself ( combination of AD user and corresponding contained DB user, unfortunately username and password are in config files of app ). I have registered app in Azure AD and