error parsing file right after CREATE statement
merk
Posts: 17
I'm trying to use sql source control. This is a new install on a new machine. I've linked my dev database to the source control (SVN). I'm on the 'get latest' tab and that is where i get the error. In this case the full error is:
Errors occurred whilst parsing file C:\Users\Ian\AppData\Local\Red Gate\SQL Source Control 3\Transients\05j54fiv.xrc\Stored Procedures\dbo.spViewProductStatisticByUserID.sql
'' at line 7, column 7
So far the error message is always the same, the only difference is the particular file it's complaining about and the line and column. It seems to be complaining about the same 3 or 4 files, although it seems to change randomly which of the 4 it's going to complain about.
The one commonality between them is that it always seems to indicate the problem is right after the CREATE statement.
As an example, here is line 7 column 7 from from the above file:
CREATE PROCEDURE [dbo].[spViewProductStatisticByUserID]
Anyone have any ideas whats going on here? I already tried deleting all the files in that folder, had no effect.
Errors occurred whilst parsing file C:\Users\Ian\AppData\Local\Red Gate\SQL Source Control 3\Transients\05j54fiv.xrc\Stored Procedures\dbo.spViewProductStatisticByUserID.sql
'' at line 7, column 7
So far the error message is always the same, the only difference is the particular file it's complaining about and the line and column. It seems to be complaining about the same 3 or 4 files, although it seems to change randomly which of the 4 it's going to complain about.
The one commonality between them is that it always seems to indicate the problem is right after the CREATE statement.
As an example, here is line 7 column 7 from from the above file:
CREATE PROCEDURE [dbo].[spViewProductStatisticByUserID]
Anyone have any ideas whats going on here? I already tried deleting all the files in that folder, had no effect.
Tagged:
Comments
The line number in the error often doesn't seem to translate back to an actual line number when viewing the script (this happens to me with SSMS too) so we'd probably need to see the full script to understand what's happening. It's possible you're using some syntax our parser doesn't understand, especially if using some of the new SQL 2012 functions. The actual "create" line you posted looks normal enough.
Redgate Software
I think that SQL Compare has recently been updated with support for this, so hopefully it'll make its way into the next build of SQL Source Control in a week or two.
Redgate Software