Why is running a query on SQL Azure so much slower?
I created a trial account on Azure , and I deployed my database from SmarterAsp . When I run a pivot query on SmarterAsp\MyDatabase , the results appeared in 2 seconds . However, running the same query on Azure\MyDatabase took 94 seconds . I use the SQL Server 2014 Management Studio (trial) to connect to the servers and run query. Is this difference of speed because my account is a trial account? Some related info to my question the query is: ALTER procedure [dbo].[Pivot_Per_Day] @iyear int, @imonth int, @iddepartment int as declare @columnName Nvarchar(max) = '' declare @sql Nvarchar(max) =''