azure-sql-database

Azure Logic App - JSON to XML Conversion

本秂侑毒 提交于 2019-12-08 01:38:48
问题 This looks pretty obvious but somehow its not working for me. I am trying to build a solution in Logic App on Microsoft Azure but I am stuck to convert JSON object to XML. My requirement is to execute a Stored Procedure and save the response in XML format. By default SQL Execute Stored Procedure Action returns the response in below JSON format, { "OutputParameters": { }, "ReturnCode": 0, "ResultSets": { "Table1": [ { "ProductID": 680, "Name": "HL Road Frame - Black, 58", "ProductNumber": "FR

Entire local database sync with sql azure

若如初见. 提交于 2019-12-08 01:30:10
问题 I am developing a windows application which is using local database. I want to add a function to sync all local data to the sql azure. Currently I used following code. It enabled me to sync one particular table successfully., here is "Author_Master" string sqlazureConnectionString = "XXXX"; string sqllocalConnectionString = "Server=localhost;Database=Enh_Branchwise_Master_Bookshop;Trusted_Connection=True"; using (SqlConnection serverCon = new SqlConnection(sqlazureConnectionString)) using

Connect to Azure SQL using Azure Active Directory from an Azure Website?

梦想的初衷 提交于 2019-12-08 01:06:46
问题 A have an Azure Website running which connects to an Azure SQL through Entity Framework 6. Everything runs and I'm using standard username/password (sql login) to connect. Now, I would like to switch over to using AAD for authenticating to sql. I already have an AD Application set up for the website. My question is: How do I connect with my cert or clientid/clientSecret? How do I ensure that the SqlAzureExecutionStrategy is still in function Any guidance is much appreciated Thanks! 回答1: There

Developing for SQL Azure offline

丶灬走出姿态 提交于 2019-12-08 00:57:19
问题 This is probably a stupid question, but I'd like to start moving a couple of web apps over to azure. I'm not doing anything particularly difficult in them and have solved all of my development concerns (deployment is another can of worms) so far except for one thing. How do I work on these projects without connecting to azure? That is, I frequently work in places with wifi that is flat out horrid or non-existent. How do I set things up so I can still work against a database if I cannot

Why can I connect to Azure MS SQL with tsql but not pymssql?

此生再无相见时 提交于 2019-12-08 00:35:06
问题 Where I am today: TDSVER=7.3 tsql -H example.database.windows.net -U me -D ExampleDB -p 1433 -P notreallymypassword This does not: >>> import pymssql >>> pymssql.connect('example.database.windows.net', user='me', password='notreallymypassword', database='ExampleDB', tds_version='7.3') It fails with Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pymssql.pyx", line 635, in pymssql.connect (pymssql.c:10734) File "_mssql.pyx", line 1902, in _mssql.connect (_mssql.c

Need a SQL Server function to convert local datetime to UTC that supports DST

风流意气都作罢 提交于 2019-12-07 22:19:39
问题 We are migrating an application to Azure, but currently all of our dates are stored as Eastern Standard Time. Since SQL Azure is on UTC and many of our dates are generated from a getdate() call, we're going to have issues if we leave everything as it is. It seems that the option that will provide the least long term headache is to just convert all of our stored dates to UTC, and have them converted to local time on the front end. Unfortunately it seems that there isn't a built-in way to

Azure sql query is slow when an indexed column used in where clause has a particular value

我们两清 提交于 2019-12-07 21:40:31
问题 Instance: Azure SQL S2 instance We have a candidates table which has ~1.7Million records. candidates table is indexed on non-primary key AccountID. AccountID:646 has 80K rows and AccountID:10 has 365K rows. When we fire select top(10) from table where non_pk_indexed_col=int Select top(10) from candidates where accountid=10 the query completes with 00:00:00 time taken Select top(10) from candidates where accountid=646 , the query completes with 01:45:00 time taken Why would the same query take

Azure SQL Server, is it possible to disable server admin (after creation)?

只愿长相守 提交于 2019-12-07 21:14:09
问题 Case I want to work with Azure SQL Server, as noted in the best practices how to secure Azure SQL Server it is good to use AAD account for accessing your server/database instead of SQL Accounts. I read several posts on the documentation site of Microsoft and blogs, but I cannot find that it is possible to disable/remove the Server Admin account, after you have the Azure SQL Server and an created AAD SQL Administrator and attached it to Azure SQL Server. I know Server Admin Login and Password

Using ASP.NET 4.0 membership provider with Azure Mobile Services

流过昼夜 提交于 2019-12-07 16:55:49
问题 Ive come up against a major problem. I am building a system which emloys a ASP.NET 4 Web App > Azure SQL > Azure Mobile Service > Windows Phone 8 app. The data is inputed into the Web Site which is already hosted on azure and which employs the Membership Provider and hence its default tables. This data is stored already successfully on Azure SQL db. My major obstacle is Azure Mobile Services requires each and every table on it to have their primary key to be called "id" - lower case! Crazy in

SQL duration time calculation

浪子不回头ぞ 提交于 2019-12-07 16:24:49
问题 I have a table of historic bus positions at a given time, recorded once per second. The schema looks like this: BusID int not null, BreadcrumbID int not null identity (1, 1), BusStopID int null, Timestamp datetime not null I want to generate a bus stop schedule based on historic trips. A bus is "at a stop" if its BusStopID corresponds to the stop, and is not "at a stop" if the BusStopID is null. I need to generate the average times the bus is at each stop. So basically, I need to do the