azure-sql-database

'OutputDataConversionError.TypeConversionError' when inserting data into Azure SQL Database table from Azure Stream Analytics

元气小坏坏 提交于 2019-12-11 12:09:26
问题 I am trying to learn Azure IoT. What i am trying to is to send MQTT message to IoT Hub. And from IoT hub, i am using Streaming Analytics to output the data into SQL Database. But currently in Streaming Analytics Output, i have this error: [9:12:30 AM] Source 'OUTPUTSQL' had 1 occurrences of kind 'OutputDataConversionError.TypeConversionError' between processing times '2019-05-23T01:12:30.5631321Z' and '2019-05-23T01:12:30.5631321Z'. This is the data that i am trying to save {"ActionBy":"admin

Implementing table joins in the Mobile Apps Node.js backend using SQL

ぃ、小莉子 提交于 2019-12-11 11:12:10
问题 Since Azure Mobile Apps does not provide a way to create relationships between tables I decided to create a custom API in my Node.js backend to return data from related tables. The idea was to implement the joins in the backend using SQL, like explained at the Mobile Services Doc. The problem is that I'm using the new Mobile Apps and not the old Mobile Services, so the above code does not work anymore. As I understand the architecture changed from Mobile Service to Mobile Apps and the Node.js

Can linked server providers be installed on a SQL Azure Database instance?

孤街醉人 提交于 2019-12-11 10:48:27
问题 Is it possible to install drivers on a SQL Azure Database instance (i.e, on the underlying host OS) so that linked servers with particular providers can be installed? (I am assuming the creation of linked servers on a SQL Azure Database instance is possible). 回答1: NO. You can install nothing on Windows Azure SQL Database (WASD) Instance. And the only "linked server" option for WASD, is when you add WASD as a linked server to your local SQL Server. You can read more on recent updates to WASD

Script to Delete Azure SQL Database if serverName is Null

半城伤御伤魂 提交于 2019-12-11 10:44:52
问题 We have some solutionDB(lets say solution100) that stuck in the creating state so the serverName would be NULL, I have to delete the solutionDB if the ServerName is null. So first I have to get the list of SQL databases and server names, iterate through the list, and then delete the solutionDB if the serverName is NULL. 回答1: From what you describe, I guess that you are creating an SQL Database with a new SQL Server. But, the creation is stuck at server level, which means the SQL server has

Empty Login Name When Showing sys.processes

﹥>﹥吖頭↗ 提交于 2019-12-11 10:37:05
问题 As per the issue here: SQL Query continues running for a very long time if search term not found I faced an issue that my Azure website hits 100% DTU very fast as soon as I publish the search feature to the public. After further investigation, I ran the following query to show all processes on my database: SELECT DB_NAME(dbid) as DBName, COUNT(dbid) as NumberOfConnections, loginame as LoginName FROM sys.sysprocesses WHERE dbid > 0 GROUP BY dbid, loginame The weird thing is that in addition to

Problem while connecting to cloud database

笑着哭i 提交于 2019-12-11 10:09:56
问题 I am encountering a problem while connecting to the cloud database. In SqlCmd I have used like: sqlcmd -U servername@username -P myPassword -S servername.database.windows.net -d MyFirstCloudTestDB And it is correct. The error message is : Msg 40615, Level 14, State 1, Server servername, Line 1 **Cannot open server 'servername' requested by the login. Client with IP address ' 124.40.110.238' is not allowed to access the server.** Msg 18456, Level 14, State 1, Server servername, Line 1 Login

Saving changes very slow via Datacontext

岁酱吖の 提交于 2019-12-11 09:33:09
问题 I am working on MVC3 .NET Project with Entity framework and SQL Azure Database. When i try to save multiple records at once in a table it takes several minutes to finish the operation! I use the same Datacontext for adding Object and saving changes also i've tried to use multiple Datacontexts but the results are the same. 回答1: In addition, please check out the following documents: Entity Framework performance considerations: http://msdn.microsoft.com/en-us/library/cc853327.aspx SQL Azure

Comparison between Azure SQL cost vs DocumentDB/CosmosDB cost

情到浓时终转凉″ 提交于 2019-12-11 09:23:57
问题 Did anyone run any comparison between Azure SQL cost vs DocumentDB/CosmosDB cost? The RU that's presented in the Azure CosmosDB cost is not clear to me. E.g., 1 request in 1 TB db cannot be equal with 1 request in 1 GB db. 回答1: First, you cannot reliably generalize a comparison of cost between relational Azure SQL cost and NoSQL CosmosDB cost, because they are significantly different things. They are not interchangeable, they would require different data modelling depending on planned usage

No default service level objective found of edition “GeneralPurpose”

孤者浪人 提交于 2019-12-11 08:47:01
问题 I am getting this error No default service level objective found of edition "GeneralPurpose" in SSMS when creating database in Azure SQL 回答1: Please download the latest SQL Server Management Studio version from here. Version 18.0 has many fixes related to Azure Managed Instances. It is a limitation of the free subscription you are using at this time. ""'Free Trial subscriptions can provision Basic, Standard S0 through S3 databases, up to 100 eDTU Basic or Standard elastic pools and DW100

How do you comment your db schema objects in SQL Azure database project?

﹥>﹥吖頭↗ 提交于 2019-12-11 08:17:48
问题 As far as I understand sp_addextendedproperty is not available in SQL Azure databases as of now. So.. How do you comment your tables, columns, sprocs and other objects in your database project? 回答1: Here is an example of a database table declaration with comments: 回答2: For anyone encountering this now, as at April 2018, sp_addextendedproperty is (now) available and works (at least for attaching descriptions to columns!) 来源: https://stackoverflow.com/questions/12458292/how-do-you-comment-your