azure-sql-database

Cloud Database problem while connecting thru SSMS

老子叫甜甜 提交于 2019-12-12 01:30:15
问题 I have created a cloud database and was able to connect successfully thru SSMS. Now I want to create a table in that. Henceforth after the successful connection ( in am doing thru SSMS) when I am trying to connect to the database i.e. MyFirstCloudDB database which is available in the Available Databases section of SSMS, I am getting the error message " The database MyFirstCloudDB" is not accessible. What to do now? EDIT: I have success accomplished my work. But what I have done is that after

Long-term backup retention list is not available

扶醉桌前 提交于 2019-12-12 00:50:38
问题 If user is owner of the resource group and SQL server instance in it, he/she can configure LTR polices. However, when trying to list them in Available backups tab... nothing is there. Same applies to the DB restore when Long-term backup retention is selected. Is anyone aware of some role or resource access that could resolve this? p.s. Vault is not used any more. [RESOLUTION] 'SQL Server contributor' role on the subscription level resolves it. Anyway, thanks everyone. 回答1: As a workaround,

Azure Mobile Service: Cannot insert any records to table?

左心房为你撑大大i 提交于 2019-12-11 20:22:34
问题 I created an azure mobile service and set up all the database tables properly (tested them). However when I try to insert a record to my SQL table through my android app, the record doesn't get added. (Yes my SQL table is ready for the mobile service as well. Changed the Schema as well) I don't get an error either. Here's my code: @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.login_screen); final String mobileServiceUrl

Failed to parse XML blob

删除回忆录丶 提交于 2019-12-11 18:41:39
问题 I'm having problems authenticating against dbs on azure. All the details are right but when I click connect I get the following error: TITLE: Microsoft SQL Server Management Studio ------------------------------ Error connecting to 'tcp:xyz.database.windows.net,1433'. ------------------------------ ADDITIONAL INFORMATION: Failed to connect to server tcp:xyz.database.windows.net,1433. (Microsoft.SqlServer.ConnectionInfo) ------------------------------ One or more errors occurred. (mscorlib) --

Azure logic app with Condition

最后都变了- 提交于 2019-12-11 18:36:48
问题 I am creating the logic app when I want to send an email when there are duplicate entries created in my database, and until those are not removed email should be triggered after some interval As per Logic App, we can create a trigger on SQL when data is inserted or modified as bellow So I selected the first option then I am adding another action which will run my SQL script to check the logic of duplicate entries and last I have added another action to send an email. Now I want my last action

Cannot connect to SQL server - client side issue

浪子不回头ぞ 提交于 2019-12-11 18:09:08
问题 I might be the million'th person posting about this, but others' solutions haven't helped me. I have a database on Microsoft SQL Azure. I an trying to connect to it using the Visual Studio 2010's "Connect to Database" Tool. From my Windows 7 machine, I can connect to it very easily. But from my Windows Server 2008R2 machine i am getting the classic error - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not

Create a table with a primary key and a separate unique column in SQL Azure Federation

六眼飞鱼酱① 提交于 2019-12-11 18:07:11
问题 How could I create a uniqueidentifier ID column and a unique nvarchar(256) email address column in SQL Azure Federation? I'm not a SQL guy, so I don't know how to set a unique constraint or if it's possible to do that in a federated database. Edit: I found a TSQL query to create a unique constraint, but I'm getting the following error: "A unique or clustered index on a federated table must contain the federated column" I think my federated column is the ID column. 回答1: just follow what the

Error dropping index on SQL Azure database: Incorrect syntax near the keyword 'ON' (user context = dbo)

。_饼干妹妹 提交于 2019-12-11 16:48:34
问题 I have a database in SQL Azure and I am wanting to use a script to drop all the column store indexes. I am connecting using SSMS using the SQL admin login of the SQL Server. I am using this script: declare @sql nvarchar(max); set @sql = N''; select @sql = @sql + N'DROP INDEX ' + OBJECT_SCHEMA_NAME(i.OBJECT_ID) + '.' + i.name + N' ON ' + OBJECT_SCHEMA_NAME(i.OBJECT_ID) + '.' + o.name + '; ' FROM sys.indexes AS i INNER JOIN sys.tables AS o ON i.[object_id] = o.[object_id] where i.name is not

“No suitable driver” error when using sparklyr::spark_read_jdbc to query Azure SQL database from Azure Databricks

馋奶兔 提交于 2019-12-11 15:54:00
问题 I am trying to connect to an Azure SQL DB from a Databricks notebook using the sparklyr::spark_read_jdbc function. I am an analyst with no computer science background (beyond R and SQL) or previous experience using Spark or jdbc (I have previously used local instances of R to connect to the same SQL database via odbc), so I apologise if I've misunderstood something vital. My code is: sc <- spark_connect(method = "databricks") library(sparklyr) library(dplyr) config <- spark_config() db_tbl <-

Azure SQL: What is the cost of running a specific SQL query like create database as copy

梦想的初衷 提交于 2019-12-11 15:31:44
问题 What are the costs of running the following operation in Azure? drop database MyDB; create database MyDB as copy of MyDB_Clean; The scope of the above operation is to restore an existing database to its clean version to improve web site performance. It will run once every day via an Azure web job and would like to assess if this would be feasible in terms of costs. MyDB_Clean used space = 35 MB, allocated space 48 MB, using Tiers S0/S1/S2 回答1: What are the costs of running the following