Competition: What’s your favorite Redgate tool? Enter now.

checking in complaining about stored procs not compiling

ChrisAdkinChrisAdkin Posts: 2
I'm using source control, with SQL Server 2008 R2 and sub version. When I try to check in, Red Gate source control is complaining that a perfectly good stored proc which I have already checking via a different sub version client will not compile, this is what I'm getting:-

Errors occurred whilst parsing file C:\Users\chris\AppData\Local\Red Gate\SQL Source Control 1\WorkingBases\onys2ojg.axm\Stored Procedures\process_stream_1.up_dq_click_through.sql
'line 1:2959: expecting "Integer", found '@v_ct_batch_size''
'line 1:3288: expecting "end", found ';''
'line 1:10765: expecting "try", found ';''
'line 1:10765: expecting "end", found ';''
'line 1:10778: expecting "conversation", found 'TRY''
'CATCH' at line 1, column 10812
'CATCH' at line 1, column 11400
';' at line 1, column 11401
'line 1:11407: expecting "conversation", found ';''

Can someone point me in the correct direction as to resolving this issue.


  • Hi there,

    Thanks for your post. It sounds like your working base may be a bit messed up. If the sproc is already checked into SVN, you can try unlinking and relinking the DB to SQL Source Control.

    Alternatively, you can use SQL Compare PRO to perform a comparison against what exists in the live DB against the working base folder location, i.e. C:\Users\chris\AppData\Local\Red Gate\SQL Source Control 1\WorkingBases\onys2ojg.axm and see where the differences are in the sproc, and also against SVN assuming it is in there in the first place.


    Peter Peart
    Red Gate Software Ltd
    +44 (0)870 160 0037 ext. 8569
    1 866 RED GATE ext. 8569
Sign In or Register to comment.