azure-sql-database

Is 'FOR XML' (RAW, AUTO, PATH) supported in SQL Azure

点点圈 提交于 2020-01-04 04:37:04
问题 MS SQL Server supports extracting relational data using FOR XML (RAW, AUTO, PATH). Is this feature supported in SQL Azure? If not, has anyone tried workarounds. Thank you for your help in advance. 回答1: Yes. I use FOR XML PATH and FOR XML RAW in SQL Azure with no problems. Haven't needed to use the AUTO option yet. 来源: https://stackoverflow.com/questions/12851167/is-for-xml-raw-auto-path-supported-in-sql-azure

How do you UPDATE an identity column in SQL azure? Is it possible?

好久不见. 提交于 2020-01-04 02:17:05
问题 I have this code: ALTER TABLE FishSticks ADD MyNewIdentityColumnId INT IDENTITY(1,1) NOT NULL SET IDENTITY_INSERT FishSticks ON UPDATE FishSticks SET MyNewIdentityColumnId = MyOldColumnId However it says: Cannot update identity column 'MyNewIdentityColumnId'. I assume this is due to SQL Azure, but I didn't have much success googling. It seems that changing a column to be an identity while preserving data is a huge difficulty. 回答1: SET IDENTITY_INSERT only works for INSERTS and that error is

Unable to display SQL Azure table definition in Visual Studio 2013

久未见 提交于 2020-01-03 17:17:13
问题 The error I am getting is: Problem loading: The designer encountered an error while loading the table definition I can view the data within the tables inside VS just fine and can even query the data too. This is a fresh install on my computer. What I have tried: Tried viewing the table in both "Server Explorer" and "SQL Server Object Explorer." Checked if my login credentials has permissions to create tables in the "Management Portal." Installed SSMS and still cannot show the design of the

How to log SQL using entity framework 4.3 (code first) and SQL Azure database

妖精的绣舞 提交于 2020-01-03 15:34:36
问题 I realize this similar question has been asked a few times, and I have tried the recommendations in those questions without success. I am using the entity framework (4.3) and running against SQL Azure (on a federated database). I'd like to be able to log the SQL that is being generated by the entity framework. I've used the Entity Profiler Framework and while that is helpful during development, I am not sure it would be helpful during production. I can't use SQL Profiler as this is a SQL

Azure SQL high wait time on “VDI_CLIENT_OTHER”

让人想犯罪 __ 提交于 2020-01-03 08:34:19
问题 We're benchmarking our app with different scales of an Azure SQL database, and we're having a hard time saturating the db. Among other things, we've executed this query: SELECT * FROM sys.dm_os_wait_stats ORDER BY wait_time_ms DESC The top row of the result was something like wait_type waiting_tasks_count wait_time_ms max_wait_time_ms signal_wait_time_ms VDI_CLIENT_OTHER 19560 409007428 60016 37281 What is this wait time? What exactly have we been waiting for during those 409000 seconds

Inserting 1000 rows into Azure Database takes 13 seconds?

北慕城南 提交于 2020-01-02 14:07:09
问题 Can anyone please tell me why it might be taking 12+ seconds to insert 1000 rows into a SQL database hosted on Azure? I'm just getting started with Azure, and this is (obviously) absurd... Create Table xyz (ID int primary key identity(1,1), FirstName varchar(20)) GO create procedure InsertSomeRows as set nocount on Declare @StartTime datetime = getdate() Declare @x int = 0; While @X < 1000 Begin insert into xyz (FirstName) select 'john' Set @X = @X+1; End Select count(*) as Rows, DateDiff

Sql Azure Data Sync Agent invalid key error mesage

萝らか妹 提交于 2020-01-02 12:04:10
问题 Windows 8 64 bit DAta sync agente ver. 4.0.89.0 Error message , I tried reinstall 3 times data sync and 4 tiems new agent and new key also. No prosy or internet fire wall one no other fire wall software also. Please enter a valid agent key to proceed. The key must be generated from SQL DAta Sync web portal agent key 16f25226-2a20-49c3-acfc-062057c42b41:gWpFO0NHm4Xq9bw7fLzo8YS49iSowEDQToYpbMCKqFk= id:LocalAgentUX_Info, rId:, sId:00000000-0000-0000-0000-000000000000, traceLevel:Warning, version

FREETEXTTABLE Alternative

你。 提交于 2020-01-02 12:01:46
问题 We're looking to move a database from a local SQL 2008 server to SQL Azure however we use FREETEXTSEARCH which is currently unsupported. Is there an alternative to FREETEXTSEARCH that we could use that is supported on AZURE, and/or can you write a custom function that does the same thing? 回答1: I would take a look at Lucene.Net. It is great free text search engine. There is a Azure version available. It powers the search on StackExchange network. Lucene on Azure. 回答2: You can use FULLTEXT

FREETEXTTABLE Alternative

核能气质少年 提交于 2020-01-02 12:00:14
问题 We're looking to move a database from a local SQL 2008 server to SQL Azure however we use FREETEXTSEARCH which is currently unsupported. Is there an alternative to FREETEXTSEARCH that we could use that is supported on AZURE, and/or can you write a custom function that does the same thing? 回答1: I would take a look at Lucene.Net. It is great free text search engine. There is a Azure version available. It powers the search on StackExchange network. Lucene on Azure. 回答2: You can use FULLTEXT

Seamless EF Migrations from Staging > Production with Schema Change

一笑奈何 提交于 2020-01-02 05:58:10
问题 I have a simple web app. It consists of an Azure Web App with Staging and Production slots. When there are no DB migrations to consider, I can easily achieve a seamless update by: Deploy App to Staging Swap Staging <> Production Slots This gets trickier when I have a DB migration to handle. Right now what I do is: Deploy App to Staging When deployment is ready, run update-database to Prod (no staging database) Swap Staging <> Production Slots This means that I still effectively have downtime