| Author |
Message |
jsong
Joined: 27 Jul 2012 Posts: 1
|
Posted: Fri Jul 27, 2012 10:06 pm Post subject: Sql Server 2012 function parsing error |
|
|
Hello,
I have a stored procedure with the following code which works in sql server 2012, but after checking into TFS, I'm now getting a parsing error on the "commit Changes" tab. I'm guessing it has something to do with the Percentile_cont function because it's new in sql 2012. I had to comment out this code in TFS so that the commit changes tab can work.
I'm using version 3.0.13 which should be compatible with 2012. Any ideas?
Thanks,
Jian
INSERT INTO mf.Pct (EffectiveDate, pL, pH, Low, High, ID)
SELECT Distinct EffectiveDate, @count, @count + 0.1,
PERCENTILE_CONT(@count) WITHIN GROUP (Order by Value) OVER( PARTITION BY ID,EFFECTIVEDATE),
PERCENTILE_CONT(@count+0.1) WITHIN GROUP (Order by Value)
OVER( PARTITION BY ID,EFFECTIVEDATE) Pct, ID
FROM mf.HistFactor |
|
| Back to top |
|
 |
andy.campbell.smith
Joined: 20 Oct 2011 Posts: 124 Location: Red Gate Software
|
Posted: Mon Jul 30, 2012 11:49 am Post subject: |
|
|
Although SQL Source Control will work with SQL Server 2012 and SSMS 2012, it still has trouble parsing functions that are new in SQL Server 2012. We're working on supporting the new functions, but for the time being there's not really much I can suggest here - we don't have a version of SQL Source Control that can handle this syntax right now. Sorry! _________________ Andy Campbell Smith
Red Gate Technical Support Engineer |
|
| Back to top |
|
 |
|
|
All times are GMT + 1 Hour
|
| Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group