Error parsing file when attempting to commit changes

A SQL Server Management Studio add-in to source control your database in Subversion or Team Foundation Server.

Error parsing file when attempting to commit changes

Postby tlentine » Thu Aug 23, 2012 8:24 pm

I am using SQL Server Management Studio 2012 with SQL Source Control Version

When attempting to either Commit Changes or Get Latest I repeatedly receive an error similar to the following:

There was an error parsing the file "%appdata%\\local\\Red Gate\\SQL Source Control 3\\Transients-Vault\\some gibberish\\Tables\\TableName.sql

The odd thing is that if I refresh the page the same error will appear with a different table or sproc name.

I am unable to move past these sets of errors to check code in or pull code from source control.

Any idea what might be causing this issue and how to correct it?

Thanks in advance.
Posts: 3
Joined: Thu Sep 29, 2011 2:08 pm

Also getting parsing file error

Postby Marie » Sat Sep 01, 2012 6:15 pm

I am evaluating both SQL Connect and SQL Source Control to improve our SQL developer experience as the Visual Studio tools have a long way to go yet. But at initial set up with either tool, I have run across the "error parsing" message on a number of our stored procedures. I've tried cleaning up the queries but some of them are quite simple (i.e. Update table set column = value where id = @id). There's not much to fix with that query but somehow I cannot get past this error. Is there a way around this issue?

I am using SSMS 10.50.2500.0 with TFS 2012. I also tried against TFS 2010 but got the same error.
Posts: 1
Joined: Sat Sep 01, 2012 6:03 pm

Error parsing file when attempting to commit changes

Postby pmiskell » Mon Sep 10, 2012 3:10 am

In my case, every single file has a GO statement without a newline character in front of it (e.g.:


It should look like this:


Maybe the linefeed/carraige return is incorrect in the file generated by Redgate Source Control.
Posts: 2
Joined: Mon Sep 10, 2012 3:00 am

Postby stanori » Mon Sep 10, 2012 11:17 pm


Thanks for your post. If you are using any new SQL Server objects that were introduced with SQL Server 2012, they are not yet compatible with SQL Source Control and will throw errors.

We have opened a support case and will be following up with you shortly.

Best Regards,
Steve Tanori
Steve Tanori
Product Support
Red Gate Software Ltd.
Posts: 84
Joined: Mon Apr 23, 2012 12:13 pm

Thx for the info

Postby pmiskell » Sun Sep 16, 2012 10:50 pm

That makes sense. I scripted a database from Azure to a local server. I probably forgot to change the destination server type to Local SQL Server with the tool I use for database migration.

The wierd part is Source Control has no problem with the Azure server. Only the local server.

Posts: 2
Joined: Mon Sep 10, 2012 3:00 am

Return to SQL Source Control Previous Versions

Who is online

Users browsing this forum: No registered users and 0 guests