azure-sql-database

Connecting to Azure SQL with Python

荒凉一梦 提交于 2019-12-06 10:09:30
问题 I am trying to connect to a SQL Database hosted in Windows Azure through MySQLdb with Python. I keep getting an error mysql_exceptions.OperationalError: (2001, 'Bad connection string.') This information works when connecting through .NET (vb, C#) but I am definitely not having any luck here. For below I used my server's name from azure then .database.windows.net Is this the correct way to go about this? Here is my code: #!/usr/bin/python import MySQLdb conn = MySQLdb.connect(host="<servername

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

自闭症网瘾萝莉.ら 提交于 2019-12-06 09:47:44
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:21821) File "_mssql.pyx", line 577, in _mssql.MSSQLConnection.__init__ (_mssql.c:6214) File "_mssql.pyx"

Cannot enable Full-Text search on Azure SQL Database V12

不羁的心 提交于 2019-12-06 09:33:47
问题 I'm trying to enable Full-Text search on my Azure SQL Database. I upgraded my DB to V12 Standard instance. The upgrade has got completed successfully. I say that because the Status says "Online" on the portal. However, when I execute this command below, CREATE FULLTEXT CATALOG ftCatalog AS DEFAULT; it throws an error saying, Msg 9972, Level 16, State 100, Line 2 Database is not fully started up or it is not in an ONLINE state. Try the full-text DDL command again after database is started up

SQL Azure Premium tier is unavailable for more than a minute at a time and we're around 10-20% utilization, if that

China☆狼群 提交于 2019-12-06 08:27:28
问题 We run a web service that gets 6k+ requests per minute during peak hours and about 3k requests per minute during off hours. Lots of data feeds compiled from 3rd party web services and custom generated images. Our service and code is mature, we've been running this for years. A lot of work by good developers has gone into our service's code base. We're migrating to Azure, and we're seeing some serious problems. For one, we are seeing our Premium P1 SQL Azure database routinely become

WCF disabling UseNagleAlgorithm while connecting to SQL Azure

时间秒杀一切 提交于 2019-12-06 08:21:17
Have a bunch of WCF REST services hosted on Azure that access a SQL Azure database. I see that ServicePointManager.UseNagleAlgorithm is set to true. I understand that setting this to false would speed up calls (inserts of records < 1460 bytes) to table storage - the following link talks about it. My Question - Would disabling the Nagle Algorithm also speed up my calls to SQL Azure? Nagle's algorithm is all about buffering tcp-level data into a smaller # of packets, and is not tied to record size. You could be writing rows to Table Storage of, say, 1300 bytes of data, but once you include tcp

Change the connection string dynamically (per request) on Entity Framework 7 / MVC 6

一笑奈何 提交于 2019-12-06 07:09:54
I have a MVC 6 application on which I need to connect to a different database (i.e. physical file but same schema) depending on who is accessing to it. That is: each customer of the web application will have it's data isolated in an SQL database (on Azure, with different performances, price levels, etc.) but all those databases will share the same relational schema and of course, the Entity Framework context class. var cadConexion = @"Server=(localdb)\mssqllocaldb;Database=DBforCustomer1;Trusted_Connection=True;"; services.AddEntityFramework().AddSqlServer().AddDbContext<DAL.ContextoBD>

Creating Collection in Azure Search Service using Indexer

北城以北 提交于 2019-12-06 07:01:05
I am using indexer to sync data from my SQL Database to Azure Search Service. I have a field in my SQL View, which contains XML data. The Column contains a list of string. The corresponding field in my Azure Search Service Index in a Collection(Edm.String). On checking some documentations, I found that Indexer does not change Xml(SQL) to Collection(Azure Search). Is there any workaround as to how I can get create the Collection from the Xml data? p.s I am extracting the data from a View, so I can change the Xml to JSON if needed. UPDATE on October 17, 2016: Azure Search now automatically

Does Azure SQL Data Warehouse have a way to split strings?

◇◆丶佛笑我妖孽 提交于 2019-12-06 06:18:15
问题 Doing some research, I see that there are no good options to split strings in Azure SQL Data Warehouse. It doesn't have the new STRING_SPLIT() function or OPENJSON() function. It also doesn't allow SELECT statements in user defined functions to try and create your own like many of the custom splitter functions the community has made. Thus, I figured I would pose the questions: Does SQL Data Warehouse have ways to split strings and what are the best options to take here? Use Case You have a

How to add retry logic to ASP.NET Membership Provider for Azure SQL?

时间秒杀一切 提交于 2019-12-06 06:11:04
问题 We have a database of ASP.net sqlMembershipProvider based users on an Azure SQL database. It has become apparent that the out of the box sqlMembershipProvider 4.0 does not have the required retry logic for Azure SQL connections which can drop out due to throttling or can expire. It is possible to implement our own membership provider that has this functionality but it would have to be exactly the same database interactions as the standard sqlMembershipProvider 4.0 in order to work with the

Reduce Azure SQL Database Size

你离开我真会死。 提交于 2019-12-06 05:52:33
问题 I'm doing my best an deleting rows and rebuilding indexes but the size of the database is growing really fast and I can't see the effect of my operations. Is there a cause for this and is there a way to reduce the size of the database other than row deletion and index rebuild? Thank you very much 回答1: Please run the following special store procedure and let us know which database file is getting bigger. sp_helpfile If the log file is getting bigger, please run below statement to recover space