azure-sql-database

How to expose Azure Sql Server database using OData

折月煮酒 提交于 2019-12-30 06:21:23
问题 Is there a way to create a Azure Sql Database and then expose it as a rest API so you may call restful calls to CRUD tables with OData? 回答1: My colleague wrote a blog on this topic explaining how you can expose an OData end point from a databases hosted on Azure. And if you want to try our product, you can read about the technical specifications and download the product on this SQL Azure OData page. 回答2: Although this is Salesforce related, this tutorial provides good insights on how to

Multiple site strategy on web role(s) and cloud service(s)

北城以北 提交于 2019-12-30 03:15:13
问题 We have 3 public facing web applications which we are migrating to Azure. All sites use port 80. OPTIONS As far as I understand, there are three different options when using Web Roles: 1. All 3 sites hosted in ONE web role in a single cloud service : HTTP access can be configured by hostHeader in ServiceDefinition.csdef This is the cheapest Requires that all projects need to be published at the same time The sites cannot be scaled separately, only as a whole 1 Cloud Service project in Visual

TransactionScope() in Sql Azure

♀尐吖头ヾ 提交于 2019-12-29 08:13:28
问题 Does Sql Azure support using TransactionScope() when performing inserts? Below is a code snippet of what I am trying to do. using (var tx = new TransactionScope(TransactionScopeOption.RequiresNew, new TransactionOptions() { IsolationLevel = IsolationLevel.ReadCommitted })) { using (var db = MyDataContext.GetDataContext()) { try { MyObject myObject = new MyObject() { SomeString = "Monday" }; db.MyObjects.InsertOnSubmit(myObject); db.SubmitChanges(); tx.Complete(); } catch (Exception e) { } } }

How to fix Django error: “ 'unicode' object has no attribute 'tzinfo' ” on database read

ε祈祈猫儿з 提交于 2019-12-29 08:00:07
问题 I am deploying my Django project on Windows Azure. I was using SQLite as a database server and everything was ok. When I have deployed My project, I decided to connect it with an SQL Azure Database but it seems that this solution created some errors. I am no longer able to edit users profiles. I get always this error : AttributeError at /admin/auth/user/1/ 'unicode' object has no attribute 'tzinfo' 回答1: I had same issue trying to use django-pyodbc-azure database backend with Django (1.5.1):

Scheduled Tasks with Sql Azure?

穿精又带淫゛_ 提交于 2019-12-29 07:42:21
问题 I wonder if there's a way to use scheduled tasks with SQL Azure? Every help is appreciated. The point is, that I want to run a simple, single line statement every day and would like to prevent setting up a worker role. 回答1: There's no SQL Agent equivalent for SQL Azure today. You'd have to call your single-line statement from a background task. However, if you have a Web Role already, you can easily spawn a thread to handle this in your web role without having to create a Worker Role. I

Adaptive server connection failed (DB-Lib error message 20002, severity 9)

核能气质少年 提交于 2019-12-29 01:43:14
问题 I'm sure this issue has been raised an uncountable number of times before but perhaps, someone could still help me. I am using pymssql v2.1.3 with Python 2.7.12 and the code that I used several times until yesterday to write data to my Azure SQL DB has somehow decided not to work anymore - for no apparent reason. The firewall is set, my IP is in the whitelist, I can connect to the database using SQL Server Management Studio and query the data but I still keep getting this error when

Windows Azure SQL Database - Identity Auto increment column skips values

安稳与你 提交于 2019-12-28 05:33:05
问题 Currently working on an ASP.Net MVC 4 application using Entity Framework 5. Used CodeFirst for initial development phase. But have now disabled the Automatic Migrations and designing new tables directly using SSMS and writing POCO. Everything is working good. Recently, identified a weird issue in Production. The records in one of the initially designed tables skipped auto-increment identity value by more than 900 numbers. This has happened 3 times within last 3 months. Debugged the

Cannot resolve symbol notifyDatasetChanged

那年仲夏 提交于 2019-12-25 18:49:13
问题 I am working with an application where i get records from my azure database and insert it into an array, and the listview must display my array. My error comes when i try to call the method notifyDatasetChanged , Here is my code: Button search; EditText Esearch; ListView list; BaseAdapter ADAhere; Connection connect; List<Map<String,String>> MyData = new ArrayList(); @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView =

Running Azure Node.js app locally - connecting to same database

余生长醉 提交于 2019-12-25 09:40:15
问题 Is it possible to run an Azure Node.js App Service locally, but connect to the same cloud SQL database? If so, when connecting to the locally running service, how do you connect a client to the local service? Assuming a client is connecting via an HTML/javascript app, the normal code would be client = new WindowsAzure.MobileServiceClient('https://myservice.azurewebsites.net'); <-- do you just change that url to the IP the local server is running on? 回答1: Yes, it is possible to get an Azure

T-SQL (azure compatible) get values from one column as a row of data

我怕爱的太早我们不能终老 提交于 2019-12-25 08:59:58
问题 I am having trouble getting a query from a table. I have a Product Table and an Images table [Images] table schema [Column name: data type ] [ImagetId: int ] [ProductId: int ] [url: nvarchr(max) ] [Size50: bit ] [Size100: bit ] [Size200: bit ][Size400: bit ] [Size600: bit ] [Size800: bit ] [Product] table schema [ProductId: int ] [Name: nvarchar(50) ] additional columns... The images table has 6 records for each Product and the Bit/Boolean fields from the Images table specify what size of